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: "" <> 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005137/0.005137, allocations: 99.64 kB / 15.73 MB, free: 6.004 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.001312/0.001312, allocations: 193 kB / 16.67 MB, free: 5.922 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.43/1.43, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8528/0.8528, allocations: 135.6 MB / 426.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002071/0.002071, allocations: 63.56 kB / 0.5857 GB, free: 21.62 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1573/0.1594, allocations: 81.03 MB / 0.6648 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002948/0.1623, allocations: 1.473 MB / 0.6663 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.001137/0.1635, allocations: 423.3 kB / 0.6667 GB, free: 3.895 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.198e-05/0.1636, allocations: 3.938 kB / 0.6667 GB, free: 3.891 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.1638, allocations: 3.938 kB / 0.6667 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001303/0.1639, allocations: 24.22 kB / 0.6667 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008983/0.1648, allocations: 239.2 kB / 0.6669 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0004407/0.1653, allocations: 319.5 kB / 0.6672 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.556e-05/0.1653, allocations: 7.984 kB / 0.6672 GB, free: 3.312 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002985/0.1656, allocations: 187.7 kB / 0.6674 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002663/0.1659, allocations: 112.1 kB / 0.6675 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.726e-05/0.166, allocations: 20 kB / 0.6675 GB, free: 3 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.648e-05/0.1661, allocations: 16 kB / 0.6676 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.000124/0.1662, allocations: 79.72 kB / 0.6676 GB, free: 2.906 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001681/0.1664, allocations: 131.4 kB / 0.6678 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003454/0.1667, allocations: 279.2 kB / 0.668 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.1668, allocations: 0 / 0.668 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.513e-06/0.1668, allocations: 0 / 0.668 GB, free: 2.504 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.1668, allocations: 4 kB / 0.668 GB, free: 2.5 MB / 0.4981 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.00124/0.168, allocations: 0.6998 MB / 0.6687 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.142e-05/0.1681, allocations: 17.05 kB / 0.6687 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.971e-05/0.1681, allocations: 42.73 kB / 0.6688 GB, free: 1.66 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.845e-05/0.1682, allocations: 36.75 kB / 0.6688 GB, free: 1.625 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003245/0.1686, allocations: 255.8 kB / 0.6691 GB, free: 1.336 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.087e-05/0.1686, allocations: 24.11 kB / 0.6691 GB, free: 1.312 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.517e-05/0.1687, allocations: 12 kB / 0.6691 GB, free: 1.301 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003117/0.169, allocations: 149.5 kB / 0.6692 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.169, allocations: 0 / 0.6692 GB, free: 1.148 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.169, allocations: 3.984 kB / 0.6692 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.329e-05/0.1691, allocations: 7.984 kB / 0.6692 GB, free: 1.137 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001357/0.1692, allocations: 39.98 kB / 0.6693 GB, free: 1.098 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004088/0.1696, allocations: 321.4 kB / 0.6696 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.1699, allocations: 138.6 kB / 0.6697 GB, free: 0.5898 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001371/0.1701, allocations: 56.83 kB / 0.6698 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.933e-05/0.1701, allocations: 4 kB / 0.6698 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000506/0.1706, allocations: 209.5 kB / 0.67 GB, free: 320 kB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.673e-06/0.1707, allocations: 0 / 0.67 GB, free: 320 kB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.000649/0.1713, allocations: 278.9 kB / 0.6702 GB, free: 36 kB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.263e-05/0.1714, allocations: 59.41 kB / 0.6703 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003049/0.1717, allocations: 290.9 kB / 0.6706 GB, free: 15.67 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 5.18e-05/0.1718, allocations: 45.69 kB / 0.6706 GB, free: 15.62 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.668e-05/0.1718, allocations: 85.14 kB / 0.6707 GB, free: 15.53 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 5.925e-05/0.1719, allocations: 47.67 kB / 0.6707 GB, free: 15.48 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001801/0.1721, allocations: 113.8 kB / 0.6709 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001517/0.1723, allocations: 318.8 kB / 0.6712 GB, free: 15.04 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002231/0.1725, allocations: 96.17 kB / 0.6712 GB, free: 14.95 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.1728, allocations: 152.6 kB / 0.6714 GB, free: 14.78 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003683/0.1731, allocations: 247.4 kB / 0.6716 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1731, allocations: 0 / 0.6716 GB, free: 14.51 MB / 0.5137 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0007505/0.1739, allocations: 404.7 kB / 0.672 GB, free: 14.09 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.583e-05/0.174, allocations: 75.39 kB / 0.6721 GB, free: 14.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.174, allocations: 4 kB / 0.6721 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.174, allocations: 3.984 kB / 0.6721 GB, free: 14 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001752/0.1742, allocations: 24.11 kB / 0.6721 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.1742, allocations: 8 kB / 0.6721 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005171/0.1748, allocations: 55.91 kB / 0.6722 GB, free: 13.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.598e-05/0.1749, allocations: 55.98 kB / 0.6722 GB, free: 13.86 MB / 0.5137 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 (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.0002213/0.1751, allocations: 173.7 kB / 0.6724 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.763e-05/0.1751, allocations: 31.75 kB / 0.6724 GB, free: 13.65 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.194e-05/0.1752, allocations: 34.25 kB / 0.6725 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.1752, allocations: 4 kB / 0.6725 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1753, allocations: 3.938 kB / 0.6725 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.1753, allocations: 0 / 0.6725 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009607/0.1762, allocations: 0.5684 MB / 0.673 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.292e-06/0.1762, allocations: 4 kB / 0.673 GB, free: 12.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.28e-05/0.1763, allocations: 4 kB / 0.673 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.776e-06/0.1763, allocations: 0 / 0.673 GB, free: 12.97 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.712e-05/0.1763, allocations: 11.98 kB / 0.673 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.576e-06/0.1764, allocations: 4 kB / 0.673 GB, free: 12.96 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.1764, allocations: 7.922 kB / 0.6731 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000488/0.1769, allocations: 325 kB / 0.6734 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001929/0.1771, allocations: 156.9 kB / 0.6735 GB, free: 12.45 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.911e-05/0.1771, allocations: 11.98 kB / 0.6735 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.1773, allocations: 7.984 kB / 0.6735 GB, free: 12.43 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.609e-05/0.1774, allocations: 15.98 kB / 0.6735 GB, free: 12.41 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.66e-05/0.1775, allocations: 31.97 kB / 0.6736 GB, free: 12.38 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002157/0.1777, allocations: 209.9 kB / 0.6738 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.31e-07/0.1777, allocations: 0 / 0.6738 GB, free: 12.18 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003382/0.178, allocations: 55.98 kB / 0.6738 GB, free: 12.12 MB / 0.5137 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009145/0.179, allocations: 0.8722 MB / 0.6747 GB, free: 11.22 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0006689/0.1796, allocations: 346.6 kB / 0.675 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.1797, allocations: 0 / 0.675 GB, free: 10.86 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001615/0.1798, allocations: 75.89 kB / 0.6751 GB, free: 10.78 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003591/0.1802, allocations: 28.11 kB / 0.6751 GB, free: 10.76 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003352/0.1836, allocations: 2.397 MB / 0.6775 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004211/0.184, allocations: 0.7396 MB / 0.6782 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0001286/0.1841, allocations: 37.42 kB / 0.6782 GB, free: 7.43 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001327/0.1843, allocations: 43.42 kB / 0.6783 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of SimCode: time 1.116e-05/0.1843, allocations: 0 / 0.6783 GB, free: 7.387 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.2121, allocations: 5.296 MB / 0.6834 GB, free: 2.176 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.14/8.352, allocations: 8.266 kB / 0.6834 GB, free: 2.168 MB / 0.5137 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime_res.csv --start-time 0 --stop-time 1e+08 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 40000 IDEAS_dev_IDEAS_Utilities_Time_Examples_CalendarTime.fmu > IDEAS_dev_IDEAS.Utilities.Time.Examples.CalendarTime.pipe 2>&1)