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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001932/0.001932, allocations: 176.4 kB / 7.461 MB, free: 2.16 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.6207/0.6207, allocations: 133.5 MB / 141.4 MB, free: 15.66 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.129/1.129, allocations: 221.3 MB / 395 MB, free: 10.2 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008381/0.000838, allocations: 102.9 kB / 477.8 MB, free: 10.8 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.398e-06/4.408e-06, allocations: 0 / 0.5528 GB, free: 89.19 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1044, allocations: 82.3 MB / 0.6332 GB, free: 14.11 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3205/0.4249, allocations: 112.4 MB / 0.743 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001635/0.4251, allocations: 74.38 kB / 0.743 GB, free: 10.65 MB / 0.4948 GB Notification: Performance of FrontEnd: time 0.01145/0.4366, allocations: 4.14 MB / 0.7471 GB, free: 10.39 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 1.109e-05/0.4366, allocations: 3.781 kB / 0.7471 GB, free: 10.39 MB / 0.4948 GB 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.000741/0.4374, allocations: 0.5836 MB / 0.7476 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 2.835e-05/0.4374, allocations: 7.625 kB / 0.7476 GB, free: 25.85 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.119e-05/0.4375, allocations: 31.53 kB / 0.7477 GB, free: 25.84 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.4378, allocations: 257.3 kB / 0.7479 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.011e-05/0.4378, allocations: 1.312 kB / 0.7479 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.103e-05/0.4379, allocations: 16.81 kB / 0.7479 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001036/0.438, allocations: 39.28 kB / 0.748 GB, free: 25.62 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.4382, allocations: 141.7 kB / 0.7481 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.4382, allocations: 3.906 kB / 0.7481 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.595e-05/0.4383, allocations: 5.312 kB / 0.7481 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.019e-06/0.4383, allocations: 0 / 0.7481 GB, free: 25.59 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003211/0.4386, allocations: 297.6 kB / 0.7484 GB, free: 25.42 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001624/0.4388, allocations: 121.3 kB / 0.7485 GB, free: 25.39 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.647e-05/0.4389, allocations: 51.83 kB / 0.7486 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 1.735e-05/0.4389, allocations: 0.9844 kB / 0.7486 GB, free: 25.38 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002944/0.4392, allocations: 178 kB / 0.7487 GB, free: 25.31 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=18): time 1.904e-06/0.4392, allocations: 5.328 kB / 0.7487 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=18): time 0.0003309/0.4395, allocations: 171.3 kB / 0.7489 GB, free: 25.25 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.4396, allocations: 69.89 kB / 0.749 GB, free: 25.19 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002023/0.4398, allocations: 242.9 kB / 0.7492 GB, free: 25.09 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 4.993e-05/0.4398, allocations: 38.16 kB / 0.7492 GB, free: 25.05 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.446e-05/0.4399, allocations: 86.05 kB / 0.7493 GB, free: 24.97 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 3.695e-05/0.44, allocations: 43.41 kB / 0.7494 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.224e-05/0.44, allocations: 8.281 kB / 0.7494 GB, free: 24.95 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.509e-05/0.4401, allocations: 318.3 kB / 0.7497 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001613/0.4403, allocations: 85.66 kB / 0.7498 GB, free: 24.63 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001727/0.4404, allocations: 144.7 kB / 0.7499 GB, free: 24.57 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001266/0.4406, allocations: 76.36 kB / 0.75 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.4406, allocations: 0 / 0.75 GB, free: 24.56 MB / 0.5105 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.000465/0.441, allocations: 279.9 kB / 0.7502 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 9.358e-06/0.4411, allocations: 11.27 kB / 0.7502 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.87e-06/0.4411, allocations: 192 / 0.7502 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.4411, allocations: 7.812 kB / 0.7503 GB, free: 24.51 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.4412, allocations: 28.52 kB / 0.7503 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.669e-06/0.4413, allocations: 4.578 kB / 0.7503 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003568/0.4416, allocations: 45.92 kB / 0.7503 GB, free: 24.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.805e-05/0.4417, allocations: 55.92 kB / 0.7504 GB, free: 24.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000109/0.4418, allocations: 128 kB / 0.7505 GB, free: 24.38 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.098e-05/0.4418, allocations: 24.02 kB / 0.7505 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.835e-05/0.4419, allocations: 28.48 kB / 0.7506 GB, free: 24.36 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.4419, allocations: 7.781 kB / 0.7506 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.546e-06/0.4419, allocations: 0 / 0.7506 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.4419, allocations: 1.266 kB / 0.7506 GB, free: 24.35 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005679/0.4425, allocations: 495.3 kB / 0.751 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.4425, allocations: 0 / 0.751 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.326e-05/0.4426, allocations: 9.438 kB / 0.751 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.555e-06/0.4426, allocations: 0.6094 kB / 0.751 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.644e-05/0.4426, allocations: 12.09 kB / 0.7511 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4426, allocations: 0.5625 kB / 0.7511 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.4426, allocations: 0 / 0.7511 GB, free: 24.07 MB / 0.5105 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002564/0.4429, allocations: 276.3 kB / 0.7513 GB, free: 23.91 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000165/0.443, allocations: 153 kB / 0.7515 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/0.4431, allocations: 9.109 kB / 0.7515 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001764/0.4433, allocations: 10.2 kB / 0.7515 GB, free: 23.81 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.343e-05/0.4433, allocations: 18.2 kB / 0.7515 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.4434, allocations: 31.36 kB / 0.7515 GB, free: 23.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 0.0001352/0.4435, allocations: 197.6 kB / 0.7517 GB, free: 23.72 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002967/0.4438, allocations: 52.88 kB / 0.7518 GB, free: 23.71 MB / 0.5105 GB 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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001147/0.4439, allocations: 124.2 kB / 0.7519 GB, free: 23.62 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0004201/0.4444, allocations: 255.6 kB / 0.7521 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.4444, allocations: 1.406 kB / 0.7521 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0001086/0.4445, allocations: 76.38 kB / 0.7522 GB, free: 23.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002074/0.4447, allocations: 21.23 kB / 0.7522 GB, free: 23.54 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004911/0.4452, allocations: 274.6 kB / 0.7525 GB, free: 23.41 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004483/0.4457, allocations: 0.7943 MB / 0.7533 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of SimCode: time 2.61e-07/0.4457, allocations: 0 / 0.7533 GB, free: 22.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.006839/0.4525, allocations: 4.316 MB / 0.7575 GB, free: 21.52 MB / 0.5105 GB 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)