Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 104.9 kB / 16.27 MB, free: 6.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 189.8 kB / 17.2 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.826/0.826, allocations: 135.2 MB / 426.2 MB, free: 4.156 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 63.89 kB / 0.506 GB, free: 8.363 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3397/0.3416, allocations: 80.92 MB / 0.5851 GB, free: 25.41 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002259/0.3439, allocations: 1.473 MB / 0.5865 GB, free: 24.25 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.000759/0.3447, allocations: 422.6 kB / 0.5869 GB, free: 23.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.709e-05/0.3448, allocations: 0 / 0.5869 GB, free: 23.93 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 9.191e-05/0.3449, allocations: 11.86 kB / 0.5869 GB, free: 23.92 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 8.546e-05/0.345, allocations: 25.31 kB / 0.5869 GB, free: 23.91 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.3455, allocations: 232.8 kB / 0.5872 GB, free: 23.74 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002783/0.3458, allocations: 319.2 kB / 0.5875 GB, free: 23.57 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.807e-05/0.3459, allocations: 13.14 kB / 0.5875 GB, free: 23.56 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002062/0.3461, allocations: 187.6 kB / 0.5876 GB, free: 23.47 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.3462, allocations: 104.7 kB / 0.5877 GB, free: 23.41 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.132e-05/0.3463, allocations: 18.34 kB / 0.5878 GB, free: 23.41 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.82e-05/0.3464, allocations: 19.25 kB / 0.5878 GB, free: 23.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 8.675e-05/0.3465, allocations: 77.92 kB / 0.5879 GB, free: 23.36 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.3466, allocations: 123.8 kB / 0.588 GB, free: 23.27 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000234/0.3468, allocations: 292.3 kB / 0.5883 GB, free: 23.08 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.3469, allocations: 0.625 kB / 0.5883 GB, free: 23.08 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3469, allocations: 1.156 kB / 0.5883 GB, free: 23.08 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.3469, allocations: 1.062 kB / 0.5883 GB, free: 23.08 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009604/0.3478, allocations: 0.6944 MB / 0.5889 GB, free: 22.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.3479, allocations: 10.61 kB / 0.5889 GB, free: 22.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.202e-05/0.348, allocations: 30.5 kB / 0.589 GB, free: 22.42 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002317/0.3482, allocations: 272 kB / 0.5892 GB, free: 22.16 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.857e-05/0.3483, allocations: 7.812 kB / 0.5892 GB, free: 22.16 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.788e-05/0.3483, allocations: 26.94 kB / 0.5893 GB, free: 22.14 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002515/0.3486, allocations: 148.6 kB / 0.5894 GB, free: 22.04 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3486, allocations: 0 / 0.5894 GB, free: 22.04 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.3486, allocations: 5.578 kB / 0.5894 GB, free: 22.04 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.129e-06/0.3486, allocations: 1.625 kB / 0.5894 GB, free: 22.04 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001272/0.3488, allocations: 50.22 kB / 0.5895 GB, free: 22.02 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002427/0.349, allocations: 313.2 kB / 0.5898 GB, free: 21.66 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.3493, allocations: 132.4 kB / 0.5899 GB, free: 21.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.3494, allocations: 57.55 kB / 0.5899 GB, free: 21.47 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.3494, allocations: 4 kB / 0.5899 GB, free: 21.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003985/0.3498, allocations: 219.8 kB / 0.5902 GB, free: 21.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=18): time 1.443e-06/0.3498, allocations: 4.688 kB / 0.5902 GB, free: 21.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=18): time 0.0004789/0.3503, allocations: 267.9 kB / 0.5904 GB, free: 20.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.333e-05/0.3503, allocations: 69.11 kB / 0.5905 GB, free: 20.9 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.3505, allocations: 287 kB / 0.5908 GB, free: 20.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 3.804e-05/0.3506, allocations: 33.7 kB / 0.5908 GB, free: 20.57 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.568e-05/0.3506, allocations: 97.12 kB / 0.5909 GB, free: 20.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.3507, allocations: 45.09 kB / 0.5909 GB, free: 20.43 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001273/0.3508, allocations: 105.7 kB / 0.591 GB, free: 20.32 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.343e-05/0.3508, allocations: 322.8 kB / 0.5913 GB, free: 20 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001855/0.351, allocations: 97.67 kB / 0.5914 GB, free: 19.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001911/0.3512, allocations: 148.1 kB / 0.5916 GB, free: 19.74 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002431/0.3515, allocations: 243.2 kB / 0.5918 GB, free: 19.47 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.3515, allocations: 0 / 0.5918 GB, free: 19.47 MB / 446.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005437/0.352, allocations: 422 kB / 0.5922 GB, free: 19.04 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.516e-05/0.3521, allocations: 75.39 kB / 0.5923 GB, free: 18.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3521, allocations: 0.5 kB / 0.5923 GB, free: 18.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.58e-05/0.3521, allocations: 4.562 kB / 0.5923 GB, free: 18.95 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.3523, allocations: 28.47 kB / 0.5923 GB, free: 18.93 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.3523, allocations: 4 kB / 0.5923 GB, free: 18.92 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004933/0.3528, allocations: 62.92 kB / 0.5924 GB, free: 18.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.556e-05/0.3529, allocations: 51.98 kB / 0.5924 GB, free: 18.81 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 (calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.daySampleTrigger,$whenCondition1,calendarTime2016.hourSampleTrigger,$whenCondition2,calendarTime2016.epochLastMonth,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.yearIndex,$PRE.calendarTime2016.yearIndex,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,$PRE.calendarTime2016.weekDay,calendarTime2016.hour,$PRE.calendarTime2016.hour,calendarTime2016.day,$PRE.calendarTime2016.day,calendarTime2016.month,$PRE.calendarTime2016.month,calendarTime2016.year,$PRE.calendarTime2016.year,$whenCondition3,$whenCondition4) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000132/0.353, allocations: 183 kB / 0.5926 GB, free: 18.62 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.641e-05/0.353, allocations: 29.03 kB / 0.5926 GB, free: 18.6 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.394e-05/0.3531, allocations: 30.25 kB / 0.5926 GB, free: 18.57 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.3531, allocations: 7.938 kB / 0.5927 GB, free: 18.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3531, allocations: 1.406 kB / 0.5927 GB, free: 18.56 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3531, allocations: 0 / 0.5927 GB, free: 18.56 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006/0.3537, allocations: 0.5587 MB / 0.5932 GB, free: 17.95 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.3537, allocations: 4 kB / 0.5932 GB, free: 17.94 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.068e-05/0.3538, allocations: 11.98 kB / 0.5932 GB, free: 17.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3538, allocations: 0 / 0.5932 GB, free: 17.93 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.202e-05/0.3538, allocations: 11.98 kB / 0.5932 GB, free: 17.92 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.3538, allocations: 0 / 0.5932 GB, free: 17.92 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.3538, allocations: 1.094 kB / 0.5932 GB, free: 17.92 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.3541, allocations: 326.9 kB / 0.5935 GB, free: 17.59 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3543, allocations: 156.6 kB / 0.5937 GB, free: 17.41 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.174e-05/0.3543, allocations: 8 kB / 0.5937 GB, free: 17.41 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002041/0.3545, allocations: 13.39 kB / 0.5937 GB, free: 17.39 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.508e-05/0.3546, allocations: 19.92 kB / 0.5937 GB, free: 17.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.072e-05/0.3546, allocations: 27.98 kB / 0.5938 GB, free: 17.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001241/0.3548, allocations: 210.8 kB / 0.594 GB, free: 17.14 MB / 446.1 MB Notification: Performance of sort global known variables: time 6.81e-07/0.3548, allocations: 1.062 kB / 0.594 GB, free: 17.14 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002927/0.3551, allocations: 59.92 kB / 0.594 GB, free: 17.09 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,calendarTime2016.year,calendarTime2016.month,calendarTime2016.day,calendarTime2016.hour,calendarTime2016.weekDay,calendarTime2016.daysSinceEpoch,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.firstHourSampling,calendarTime2016.firstDaySampling) * Number of discrete states: 9 (calendarTime2016.firstDaySampling,calendarTime2016.daysSinceEpoch,calendarTime2016.weekDay,calendarTime2016.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.921e-05/0.3552, allocations: 107.8 kB / 0.5941 GB, free: 16.98 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0004535/0.3556, allocations: 354.5 kB / 0.5945 GB, free: 16.61 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3556, allocations: 0 / 0.5945 GB, free: 16.61 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001205/0.3558, allocations: 71.89 kB / 0.5945 GB, free: 16.54 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.3561, allocations: 29.19 kB / 0.5946 GB, free: 16.51 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005396/0.3567, allocations: 430.8 kB / 0.595 GB, free: 16.06 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001403/0.3568, allocations: 0.7435 MB / 0.5957 GB, free: 15.29 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.3569, allocations: 33.36 kB / 0.5957 GB, free: 15.26 MB / 446.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3569, allocations: 0 / 0.5957 GB, free: 15.26 MB / 446.1 MB Notification: Performance of Templates: time 0.003844/0.3608, allocations: 3.014 MB / 0.5987 GB, free: 12.31 MB / 446.1 MB make -j1 -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)