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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001106, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001136/0.001136, allocations: 188.5 kB / 16.25 MB, free: 6.625 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.292/1.292, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.8069/0.8069, allocations: 132.2 MB / 422.3 MB, free: 1.965 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001101/0.001101, allocations: 63.62 kB / 0.5013 GB, free: 8.957 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1486/0.1497, allocations: 80.2 MB / 0.5797 GB, free: 8.98 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002511/0.1523, allocations: 1.53 MB / 0.5812 GB, free: 7.441 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009075/0.1532, allocations: 421 kB / 0.5816 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.52e-05/0.1533, allocations: 4 kB / 0.5816 GB, free: 7.023 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001095/0.1534, allocations: 7.922 kB / 0.5816 GB, free: 7.016 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.65e-05/0.1535, allocations: 24.22 kB / 0.5816 GB, free: 6.992 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005833/0.1541, allocations: 220.5 kB / 0.5818 GB, free: 6.781 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003158/0.1544, allocations: 327.8 kB / 0.5821 GB, free: 6.461 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.603e-05/0.1544, allocations: 11.97 kB / 0.5821 GB, free: 6.449 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002786/0.1547, allocations: 230.3 kB / 0.5824 GB, free: 6.227 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001854/0.1549, allocations: 127.6 kB / 0.5825 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 4.936e-05/0.155, allocations: 20 kB / 0.5825 GB, free: 6.082 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.736e-05/0.155, allocations: 20 kB / 0.5825 GB, free: 6.062 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.1551, allocations: 71.78 kB / 0.5826 GB, free: 5.992 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001307/0.1553, allocations: 131.4 kB / 0.5827 GB, free: 5.863 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002744/0.1556, allocations: 287.3 kB / 0.583 GB, free: 5.582 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.1556, allocations: 0 / 0.583 GB, free: 5.582 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.016e-06/0.1556, allocations: 3.984 kB / 0.583 GB, free: 5.578 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.121e-06/0.1556, allocations: 0 / 0.583 GB, free: 5.578 MB / 494.1 MB 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.001146/0.1567, allocations: 0.6997 MB / 0.5837 GB, free: 4.805 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.1568, allocations: 12.03 kB / 0.5837 GB, free: 4.793 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.015e-05/0.1568, allocations: 42.48 kB / 0.5837 GB, free: 4.742 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.631e-05/0.1569, allocations: 35.66 kB / 0.5838 GB, free: 4.707 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002762/0.1572, allocations: 258.3 kB / 0.584 GB, free: 4.414 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.092e-05/0.1573, allocations: 12 kB / 0.584 GB, free: 4.402 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.729e-05/0.1573, allocations: 19.98 kB / 0.584 GB, free: 4.383 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002876/0.1576, allocations: 149.4 kB / 0.5842 GB, free: 4.23 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.196e-06/0.1576, allocations: 0 / 0.5842 GB, free: 4.23 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.768e-05/0.1577, allocations: 12 kB / 0.5842 GB, free: 4.219 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.1577, allocations: 0 / 0.5842 GB, free: 4.219 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001343/0.1578, allocations: 47.91 kB / 0.5842 GB, free: 4.172 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003313/0.1581, allocations: 313.3 kB / 0.5845 GB, free: 3.816 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002755/0.1584, allocations: 130.7 kB / 0.5847 GB, free: 3.68 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.1586, allocations: 52.84 kB / 0.5847 GB, free: 3.625 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.543e-05/0.1586, allocations: 11.98 kB / 0.5847 GB, free: 3.613 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004617/0.1591, allocations: 212.1 kB / 0.5849 GB, free: 3.395 MB / 494.1 MB Notification: Performance of pre-optimization done (n=18): time 1.523e-06/0.1591, allocations: 4 kB / 0.5849 GB, free: 3.391 MB / 494.1 MB Notification: Performance of matching and sorting (n=18): time 0.0005655/0.1596, allocations: 279.2 kB / 0.5852 GB, free: 3.113 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.465e-05/0.1597, allocations: 63.41 kB / 0.5852 GB, free: 3.039 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002623/0.16, allocations: 290.9 kB / 0.5855 GB, free: 2.754 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.154e-05/0.16, allocations: 37.69 kB / 0.5856 GB, free: 2.711 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.822e-05/0.1601, allocations: 93.14 kB / 0.5857 GB, free: 2.617 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.736e-05/0.1602, allocations: 39.5 kB / 0.5857 GB, free: 2.578 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001645/0.1603, allocations: 105.7 kB / 0.5858 GB, free: 2.465 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001102/0.1604, allocations: 330.8 kB / 0.5861 GB, free: 2.133 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.1607, allocations: 92.17 kB / 0.5862 GB, free: 2.043 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002231/0.1609, allocations: 143.4 kB / 0.5863 GB, free: 1.883 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003149/0.1612, allocations: 248.2 kB / 0.5866 GB, free: 1.609 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.878e-06/0.1612, allocations: 3.938 kB / 0.5866 GB, free: 1.605 MB / 494.1 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006454/0.1619, allocations: 412.6 kB / 0.587 GB, free: 1.184 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.284e-05/0.162, allocations: 79.58 kB / 0.587 GB, free: 1.094 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.096e-06/0.162, allocations: 3.984 kB / 0.587 GB, free: 1.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.162, allocations: 7.938 kB / 0.5871 GB, free: 1.082 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001667/0.1622, allocations: 27.92 kB / 0.5871 GB, free: 1.055 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/0.1622, allocations: 4 kB / 0.5871 GB, free: 1.051 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004994/0.1627, allocations: 59.8 kB / 0.5871 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.818e-05/0.1628, allocations: 55.97 kB / 0.5872 GB, free: 0.9375 MB / 494.1 MB 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.0001689/0.163, allocations: 174.4 kB / 0.5874 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.163, allocations: 27.62 kB / 0.5874 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.948e-05/0.1631, allocations: 34.19 kB / 0.5874 GB, free: 0.6953 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.25e-06/0.1631, allocations: 4 kB / 0.5874 GB, free: 0.6914 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.1631, allocations: 3.938 kB / 0.5874 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1631, allocations: 3.984 kB / 0.5874 GB, free: 0.6836 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007281/0.1638, allocations: 0.5567 MB / 0.588 GB, free: 72 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.1638, allocations: 4 kB / 0.588 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.607e-05/0.1639, allocations: 12 kB / 0.588 GB, free: 56 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.043e-06/0.1639, allocations: 3.938 kB / 0.588 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.736e-05/0.1639, allocations: 15.97 kB / 0.588 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1639, allocations: 0 / 0.588 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1639, allocations: 0 / 0.588 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004122/0.1644, allocations: 325.1 kB / 0.5883 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001497/0.1645, allocations: 156.6 kB / 0.5885 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.812e-05/0.1646, allocations: 12 kB / 0.5885 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002165/0.1648, allocations: 11.98 kB / 0.5885 GB, free: 15.51 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.937e-05/0.1649, allocations: 19.97 kB / 0.5885 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.801e-05/0.1649, allocations: 27.98 kB / 0.5885 GB, free: 15.46 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001749/0.1651, allocations: 209.9 kB / 0.5887 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1651, allocations: 0 / 0.5887 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003004/0.1654, allocations: 44 kB / 0.5888 GB, free: 15.21 MB / 0.4981 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.000734/0.1662, allocations: 0.8755 MB / 0.5896 GB, free: 14.31 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005241/0.1667, allocations: 350.5 kB / 0.59 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1667, allocations: 0 / 0.59 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001467/0.1669, allocations: 79.88 kB / 0.59 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003337/0.1672, allocations: 24.88 kB / 0.5901 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.17, allocations: 2.454 MB / 0.5925 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.1704, allocations: 0.7396 MB / 0.5932 GB, free: 10.49 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001389/0.1705, allocations: 41.42 kB / 0.5932 GB, free: 10.45 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001402/0.1707, allocations: 43.41 kB / 0.5933 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1707, allocations: 0 / 0.5933 GB, free: 10.41 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.074/3.245, allocations: 5.258 MB / 0.5984 GB, free: 5.305 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002849/3.245, allocations: 184.7 kB / 0.5986 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/5.161, allocations: 0 / 0.5986 GB, free: 5.047 MB / 0.4981 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/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)