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: "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IDEAS_dev_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.001586/0.001586, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9681/0.9681, allocations: 133.6 MB / 141.6 MB, free: 2.945 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.636/1.636, allocations: 221.5 MB / 395.5 MB, free: 10.78 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.001012/0.001012, allocations: 104.1 kB / 478.2 MB, free: 1.324 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.922e-05/1.914e-05, allocations: 0 / 0.5535 GB, free: 8.984 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4784/0.4784, allocations: 82.3 MB / 0.6339 GB, free: 40.89 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1579/0.6364, allocations: 112.4 MB / 0.7437 GB, free: 10.33 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001967/0.6366, allocations: 75.95 kB / 0.7438 GB, free: 10.25 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.01364/0.6503, allocations: 4.455 MB / 0.7481 GB, free: 5.801 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.625e-06/0.6504, allocations: 0 / 0.7481 GB, free: 5.801 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 2.036e-05/0.6504, allocations: 4 kB / 0.7482 GB, free: 5.797 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.0009631/0.6514, allocations: 0.5788 MB / 0.7487 GB, free: 5.148 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.519e-05/0.6514, allocations: 12.03 kB / 0.7487 GB, free: 5.137 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000106/0.6515, allocations: 35.7 kB / 0.7488 GB, free: 5.102 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003859/0.6519, allocations: 258.5 kB / 0.749 GB, free: 4.805 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.947e-05/0.652, allocations: 4 kB / 0.749 GB, free: 4.801 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.352e-05/0.652, allocations: 16 kB / 0.749 GB, free: 4.785 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000122/0.6522, allocations: 35.98 kB / 0.7491 GB, free: 4.75 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002584/0.6524, allocations: 141.5 kB / 0.7492 GB, free: 4.605 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.6525, allocations: 3.938 kB / 0.7492 GB, free: 4.602 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.6525, allocations: 0 / 0.7492 GB, free: 4.602 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.6525, allocations: 0 / 0.7492 GB, free: 4.602 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004046/0.6529, allocations: 305.8 kB / 0.7495 GB, free: 4.266 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002303/0.6532, allocations: 122.6 kB / 0.7496 GB, free: 4.137 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.171e-05/0.6533, allocations: 48.84 kB / 0.7497 GB, free: 4.086 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.6533, allocations: 4 kB / 0.7497 GB, free: 4.082 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004237/0.6537, allocations: 212.1 kB / 0.7499 GB, free: 3.863 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.6537, allocations: 0 / 0.7499 GB, free: 3.863 MB / 0.5261 GB Notification: Performance of matching and sorting (n=18): time 0.0004262/0.6542, allocations: 210.5 kB / 0.7501 GB, free: 3.652 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.6542, allocations: 63.38 kB / 0.7501 GB, free: 3.578 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002487/0.6545, allocations: 242.3 kB / 0.7504 GB, free: 3.34 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.6545, allocations: 37.7 kB / 0.7504 GB, free: 3.297 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.177e-05/0.6546, allocations: 93.34 kB / 0.7505 GB, free: 3.203 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.225e-05/0.6547, allocations: 35.61 kB / 0.7505 GB, free: 3.168 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.6547, allocations: 4 kB / 0.7505 GB, free: 3.164 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6549, allocations: 322.8 kB / 0.7508 GB, free: 2.84 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000175/0.6551, allocations: 84.22 kB / 0.7509 GB, free: 2.754 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.6553, allocations: 154.1 kB / 0.7511 GB, free: 2.582 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001421/0.6555, allocations: 66.95 kB / 0.7511 GB, free: 2.516 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6555, allocations: 4 kB / 0.7511 GB, free: 2.512 MB / 0.5261 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005679/0.656, allocations: 319.6 kB / 0.7514 GB, free: 2.195 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 9.521e-05/0.6561, allocations: 75.39 kB / 0.7515 GB, free: 2.109 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/0.6562, allocations: 4 kB / 0.7515 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.6562, allocations: 0 / 0.7515 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001766/0.6564, allocations: 31.91 kB / 0.7515 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.6564, allocations: 0 / 0.7515 GB, free: 2.074 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000369/0.6568, allocations: 48.06 kB / 0.7516 GB, free: 2.027 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.622e-05/0.6569, allocations: 51.98 kB / 0.7516 GB, free: 1.977 MB / 0.5261 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.0001659/0.657, allocations: 137.9 kB / 0.7518 GB, free: 1.836 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0003365/0.6574, allocations: 206.7 kB / 0.752 GB, free: 1.629 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.6574, allocations: 23.72 kB / 0.752 GB, free: 1.605 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.6575, allocations: 30.03 kB / 0.752 GB, free: 1.574 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.886e-06/0.6575, allocations: 0 / 0.752 GB, free: 1.574 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.973e-06/0.6575, allocations: 4 kB / 0.752 GB, free: 1.57 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.6576, allocations: 4 kB / 0.752 GB, free: 1.566 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007912/0.6584, allocations: 0.527 MB / 0.7525 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.6584, allocations: 0 / 0.7525 GB, free: 0.9961 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.249e-05/0.6584, allocations: 4 kB / 0.7525 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.839e-06/0.6584, allocations: 4 kB / 0.7525 GB, free: 0.9883 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.6585, allocations: 11.97 kB / 0.7525 GB, free: 0.9766 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.6585, allocations: 3.938 kB / 0.7526 GB, free: 0.9727 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.6585, allocations: 4 kB / 0.7526 GB, free: 0.9688 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003567/0.6588, allocations: 312.7 kB / 0.7529 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001789/0.659, allocations: 152.7 kB / 0.753 GB, free: 492 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.872e-05/0.6591, allocations: 11.98 kB / 0.753 GB, free: 480 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.6593, allocations: 8 kB / 0.753 GB, free: 472 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.554e-05/0.6594, allocations: 15.97 kB / 0.753 GB, free: 456 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.5e-05/0.6594, allocations: 31.98 kB / 0.7531 GB, free: 424 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001876/0.6596, allocations: 194 kB / 0.7533 GB, free: 228 kB / 0.5261 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6596, allocations: 0 / 0.7533 GB, free: 228 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003236/0.6599, allocations: 48.38 kB / 0.7533 GB, free: 180 kB / 0.5261 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.0007638/0.6607, allocations: 0.8662 MB / 0.7541 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0005053/0.6612, allocations: 320.3 kB / 0.7544 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/0.6612, allocations: 4 kB / 0.7545 GB, free: 14.95 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.6614, allocations: 76.19 kB / 0.7545 GB, free: 14.87 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002686/0.6616, allocations: 20.81 kB / 0.7545 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007759/0.6624, allocations: 322.7 kB / 0.7549 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004003/0.6628, allocations: 0.7539 MB / 0.7556 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.0001438/0.663, allocations: 33.22 kB / 0.7556 GB, free: 13.68 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.6631, allocations: 47.41 kB / 0.7557 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of SimCode: time 2.31e-07/0.6631, allocations: 0 / 0.7557 GB, free: 13.64 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02741/0.6906, allocations: 4.965 MB / 0.7605 GB, free: 8.68 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000178/0.6908, allocations: 118.1 kB / 0.7606 GB, free: 8.492 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.596/2.286, allocations: 4.031 kB / 0.7606 GB, free: 8.488 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)