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-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: "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009529/0.009529, allocations: 169.8 kB / 15.11 MB, free: 5.973 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8888/0.8888, allocations: 135.2 MB / 151 MB, free: 13.83 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.486/1.486, allocations: 223.2 MB / 406.8 MB, free: 3.242 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.0009656/0.0009655, allocations: 100.1 kB / 489.9 MB, free: 10.93 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003536/0.0003536, allocations: 8 kB / 0.5691 GB, free: 14.09 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4709/0.4713, allocations: 82.31 MB / 0.6495 GB, free: 36.05 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1658/0.6371, allocations: 113.2 MB / 0.7601 GB, free: 2.715 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/0.6375, allocations: 71.95 kB / 0.7601 GB, free: 2.645 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01404/0.6515, allocations: 4.499 MB / 0.7645 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.024e-06/0.6516, allocations: 0 / 0.7645 GB, free: 14.14 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.957e-05/0.6516, allocations: 4 kB / 0.7645 GB, free: 14.14 MB / 0.5417 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.00126/0.6529, allocations: 0.622 MB / 0.7651 GB, free: 13.44 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.795e-05/0.653, allocations: 12.03 kB / 0.7651 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.653, allocations: 34.56 kB / 0.7652 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001083/0.6531, allocations: 35.7 kB / 0.7652 GB, free: 13.35 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004636/0.6536, allocations: 258.4 kB / 0.7654 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.229e-05/0.6537, allocations: 4 kB / 0.7655 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.314e-05/0.6537, allocations: 24 kB / 0.7655 GB, free: 13.03 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003493/0.6541, allocations: 141.5 kB / 0.7656 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.6541, allocations: 0 / 0.7656 GB, free: 12.89 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.814e-05/0.6541, allocations: 4 kB / 0.7656 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.042e-06/0.6542, allocations: 0 / 0.7656 GB, free: 12.88 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001561/0.6543, allocations: 51.97 kB / 0.7657 GB, free: 12.83 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004635/0.6548, allocations: 329.3 kB / 0.766 GB, free: 12.46 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002998/0.6551, allocations: 130.7 kB / 0.7661 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.6551, allocations: 4 kB / 0.7661 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004713/0.6556, allocations: 224 kB / 0.7663 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=18): time 1.453e-06/0.6556, allocations: 0 / 0.7663 GB, free: 12.09 MB / 0.5417 GB Notification: Performance of matching and sorting (n=18): time 0.0006752/0.6563, allocations: 266.5 kB / 0.7666 GB, free: 11.82 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.93e-05/0.6564, allocations: 59.34 kB / 0.7666 GB, free: 11.75 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003231/0.6567, allocations: 258 kB / 0.7669 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 6.515e-05/0.6568, allocations: 37.7 kB / 0.7669 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 9.094e-05/0.6569, allocations: 93.12 kB / 0.767 GB, free: 11.36 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 5.731e-05/0.657, allocations: 43.5 kB / 0.767 GB, free: 11.32 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.299e-05/0.657, allocations: 8 kB / 0.7671 GB, free: 11.31 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001476/0.6572, allocations: 330.8 kB / 0.7674 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002701/0.6574, allocations: 96.17 kB / 0.7675 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002941/0.6577, allocations: 158.3 kB / 0.7676 GB, free: 10.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002893/0.658, allocations: 152.1 kB / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.22e-06/0.658, allocations: 3.953 kB / 0.7678 GB, free: 10.54 MB / 0.5417 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0008402/0.6589, allocations: 418.5 kB / 0.7682 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.189e-05/0.659, allocations: 79.38 kB / 0.7682 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.659, allocations: 0 / 0.7682 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.308e-05/0.659, allocations: 4 kB / 0.7682 GB, free: 10.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.6592, allocations: 28.11 kB / 0.7683 GB, free: 9.992 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.149e-05/0.6592, allocations: 4 kB / 0.7683 GB, free: 9.988 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003588/0.6596, allocations: 55.75 kB / 0.7683 GB, free: 9.934 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.224e-05/0.6597, allocations: 51.98 kB / 0.7684 GB, free: 9.883 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.0002201/0.6599, allocations: 177.7 kB / 0.7685 GB, free: 9.699 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.147e-05/0.66, allocations: 35.58 kB / 0.7686 GB, free: 9.664 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.791e-05/0.66, allocations: 30.25 kB / 0.7686 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.66, allocations: 0 / 0.7686 GB, free: 9.637 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.138e-05/0.6601, allocations: 4 kB / 0.7686 GB, free: 9.633 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.6601, allocations: 7.922 kB / 0.7686 GB, free: 9.625 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008668/0.6609, allocations: 0.547 MB / 0.7691 GB, free: 9.023 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.698e-06/0.661, allocations: 3.984 kB / 0.7692 GB, free: 9.02 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.621e-05/0.661, allocations: 11.94 kB / 0.7692 GB, free: 9.008 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.661, allocations: 4 kB / 0.7692 GB, free: 9.004 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.6611, allocations: 11.98 kB / 0.7692 GB, free: 8.992 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.6611, allocations: 3.984 kB / 0.7692 GB, free: 8.988 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.6611, allocations: 4 kB / 0.7692 GB, free: 8.984 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004232/0.6615, allocations: 322.9 kB / 0.7695 GB, free: 8.652 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002027/0.6617, allocations: 164.7 kB / 0.7697 GB, free: 8.473 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.063e-05/0.6618, allocations: 8 kB / 0.7697 GB, free: 8.465 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001729/0.6619, allocations: 4 kB / 0.7697 GB, free: 8.461 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.557e-05/0.662, allocations: 23.97 kB / 0.7697 GB, free: 8.438 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.6621, allocations: 27.98 kB / 0.7697 GB, free: 8.41 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0002085/0.6623, allocations: 209.9 kB / 0.7699 GB, free: 8.203 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6623, allocations: 0 / 0.7699 GB, free: 8.203 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.000338/0.6626, allocations: 56.36 kB / 0.77 GB, free: 8.148 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.0008788/0.6635, allocations: 0.8799 MB / 0.7708 GB, free: 7.242 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0006537/0.6642, allocations: 351.9 kB / 0.7712 GB, free: 6.875 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.6642, allocations: 4 kB / 0.7712 GB, free: 6.871 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001473/0.6644, allocations: 71.91 kB / 0.7712 GB, free: 6.801 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002569/0.6646, allocations: 16.88 kB / 0.7712 GB, free: 6.781 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001565/0.6662, allocations: 1.608 MB / 0.7728 GB, free: 5.102 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003865/0.6666, allocations: 0.7438 MB / 0.7735 GB, free: 4.332 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001419/0.6668, allocations: 33.08 kB / 0.7736 GB, free: 4.301 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001414/0.6669, allocations: 47.41 kB / 0.7736 GB, free: 4.254 MB / 0.5417 GB Notification: Performance of SimCode: time 3.4e-07/0.6669, allocations: 4 kB / 0.7736 GB, free: 4.25 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01982/0.6867, allocations: 5.371 MB / 0.7789 GB, free: 14.98 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002173/0.687, allocations: 160.7 kB / 0.779 GB, free: 14.74 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.652/2.339, allocations: 0 / 0.779 GB, free: 14.74 MB / 0.5573 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)