Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_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/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/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_IDEAS.Utilities.Time.Examples.CalendarTime") translateModel(IDEAS.Utilities.Time.Examples.CalendarTime,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007122/0.007122, allocations: 169.6 kB / 15.11 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7921/0.7921, allocations: 132.3 MB / 148.1 MB, free: 228 kB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.586/1.586, allocations: 223.2 MB / 403.2 MB, free: 6.75 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009044/0.0009044, allocations: 92.19 kB / 485.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003372/0.0003372, allocations: 12 kB / 0.5641 GB, free: 2.137 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4801/0.4805, allocations: 81.58 MB / 0.6437 GB, free: 39.35 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1646/0.6451, allocations: 112.9 MB / 0.754 GB, free: 7.02 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002792/0.6455, allocations: 67.97 kB / 0.7541 GB, free: 6.953 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0135/0.659, allocations: 4.497 MB / 0.7585 GB, free: 2.461 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.032e-06/0.659, allocations: 0 / 0.7585 GB, free: 2.461 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.08e-05/0.6591, allocations: 4 kB / 0.7585 GB, free: 2.457 MB / 0.5261 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.0009306/0.66, allocations: 0.622 MB / 0.7591 GB, free: 1.762 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.6601, allocations: 16.03 kB / 0.7591 GB, free: 1.746 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.563e-05/0.6602, allocations: 31.7 kB / 0.7592 GB, free: 1.715 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003541/0.6605, allocations: 254.5 kB / 0.7594 GB, free: 1.426 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.65e-05/0.6606, allocations: 12 kB / 0.7594 GB, free: 1.414 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.692e-05/0.6606, allocations: 12 kB / 0.7594 GB, free: 1.402 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.661, allocations: 149.5 kB / 0.7596 GB, free: 1.25 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.661, allocations: 0 / 0.7596 GB, free: 1.25 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.548e-05/0.661, allocations: 0 / 0.7596 GB, free: 1.25 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.661, allocations: 4 kB / 0.7596 GB, free: 1.246 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001258/0.6612, allocations: 43.97 kB / 0.7596 GB, free: 1.203 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003771/0.6615, allocations: 341.3 kB / 0.7599 GB, free: 0.8203 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002707/0.6618, allocations: 126.7 kB / 0.7601 GB, free: 0.6875 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.64e-05/0.6619, allocations: 0 / 0.7601 GB, free: 0.6875 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000426/0.6623, allocations: 220.1 kB / 0.7603 GB, free: 472 kB / 0.5261 GB Notification: Performance of pre-optimization done (n=18): time 1.323e-06/0.6623, allocations: 0 / 0.7603 GB, free: 472 kB / 0.5261 GB Notification: Performance of matching and sorting (n=18): time 0.0005534/0.6629, allocations: 266.9 kB / 0.7605 GB, free: 200 kB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.49e-05/0.6629, allocations: 67.33 kB / 0.7606 GB, free: 120 kB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.6632, allocations: 266.1 kB / 0.7608 GB, free: 15.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 5.218e-05/0.6633, allocations: 37.7 kB / 0.7609 GB, free: 15.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.338e-05/0.6633, allocations: 93.12 kB / 0.761 GB, free: 15.71 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.099e-05/0.6634, allocations: 39.52 kB / 0.761 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.305e-05/0.6634, allocations: 8 kB / 0.761 GB, free: 15.66 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.6636, allocations: 322.8 kB / 0.7613 GB, free: 15.34 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002679/0.6638, allocations: 104.2 kB / 0.7614 GB, free: 15.23 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000283/0.6641, allocations: 150.4 kB / 0.7616 GB, free: 15.06 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002525/0.6644, allocations: 160 kB / 0.7617 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.6644, allocations: 0 / 0.7617 GB, free: 14.89 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007479/0.6652, allocations: 423.2 kB / 0.7621 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 7.036e-05/0.6652, allocations: 75.38 kB / 0.7622 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.6653, allocations: 4 kB / 0.7622 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.6653, allocations: 0 / 0.7622 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001682/0.6655, allocations: 31.92 kB / 0.7622 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.6655, allocations: 0 / 0.7622 GB, free: 14.34 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.6659, allocations: 55.81 kB / 0.7623 GB, free: 14.29 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.863e-05/0.6659, allocations: 52.02 kB / 0.7623 GB, free: 14.24 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.6662, allocations: 185.6 kB / 0.7625 GB, free: 14.05 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.87e-05/0.6662, allocations: 27.62 kB / 0.7625 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.77e-05/0.6663, allocations: 26.25 kB / 0.7626 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.582e-06/0.6663, allocations: 7.984 kB / 0.7626 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.6663, allocations: 0 / 0.7626 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.6663, allocations: 0 / 0.7626 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000825/0.6672, allocations: 0.5589 MB / 0.7631 GB, free: 13.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.6672, allocations: 0 / 0.7631 GB, free: 13.37 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.473e-05/0.6672, allocations: 11.98 kB / 0.7631 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.6672, allocations: 0 / 0.7631 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.6673, allocations: 15.98 kB / 0.7631 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.6673, allocations: 0 / 0.7631 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.6673, allocations: 0 / 0.7631 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004137/0.6677, allocations: 326.9 kB / 0.7634 GB, free: 13.01 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001907/0.6679, allocations: 156.7 kB / 0.7636 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.215e-05/0.668, allocations: 11.98 kB / 0.7636 GB, free: 12.82 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001804/0.6682, allocations: 12 kB / 0.7636 GB, free: 12.81 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.956e-05/0.6682, allocations: 15.97 kB / 0.7636 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.856e-05/0.6683, allocations: 27.98 kB / 0.7637 GB, free: 12.77 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001739/0.6685, allocations: 209.9 kB / 0.7639 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6685, allocations: 0 / 0.7639 GB, free: 12.56 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0003276/0.6688, allocations: 51.98 kB / 0.7639 GB, free: 12.51 MB / 0.5417 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) * 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 (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.000159/0.669, allocations: 113.5 kB / 0.764 GB, free: 12.39 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005914/0.6696, allocations: 368.5 kB / 0.7644 GB, free: 12.01 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.6696, allocations: 4 kB / 0.7644 GB, free: 12 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001478/0.6697, allocations: 71.91 kB / 0.7644 GB, free: 11.93 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002426/0.67, allocations: 16.83 kB / 0.7645 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006937/0.6707, allocations: 447.7 kB / 0.7649 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002885/0.671, allocations: 0.7438 MB / 0.7656 GB, free: 10.68 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001403/0.6711, allocations: 37.08 kB / 0.7656 GB, free: 10.65 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001142/0.6712, allocations: 35.36 kB / 0.7657 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of SimCode: time 6.11e-07/0.6713, allocations: 4 kB / 0.7657 GB, free: 10.61 MB / 0.5417 GB Notification: Performance of Templates: time 0.007552/0.6788, allocations: 4.342 MB / 0.7699 GB, free: 6.273 MB / 0.5417 GB make -j1 -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.makefile (rm -f IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.sim & ./IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)