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.001305/0.001305, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 196.1 kB / 16.53 MB, free: 6.664 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.407/1.407, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9125/0.9125, allocations: 135.1 MB / 425.5 MB, free: 11.9 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001332/0.001332, allocations: 68.8 kB / 0.5054 GB, free: 5.246 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1544, allocations: 80.92 MB / 0.5845 GB, free: 4.477 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Time.Examples.CalendarTime): time 0.002949/0.1574, allocations: 1.471 MB / 0.5859 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009953/0.1584, allocations: 421 kB / 0.5863 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.592e-05/0.1585, allocations: 0 / 0.5863 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.1586, allocations: 7.875 kB / 0.5863 GB, free: 2.57 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001314/0.1588, allocations: 28.22 kB / 0.5863 GB, free: 2.543 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008173/0.1596, allocations: 242.4 kB / 0.5866 GB, free: 2.312 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004054/0.16, allocations: 315.5 kB / 0.5869 GB, free: 2.004 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.378e-05/0.1601, allocations: 4 kB / 0.5869 GB, free: 2 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003062/0.1604, allocations: 195.7 kB / 0.5871 GB, free: 1.809 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002033/0.1606, allocations: 100.1 kB / 0.5872 GB, free: 1.711 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 8.363e-05/0.1607, allocations: 20 kB / 0.5872 GB, free: 1.691 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.108e-05/0.1608, allocations: 16 kB / 0.5872 GB, free: 1.676 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1609, allocations: 79.78 kB / 0.5873 GB, free: 1.598 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001456/0.161, allocations: 123.4 kB / 0.5874 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002994/0.1613, allocations: 287.3 kB / 0.5877 GB, free: 1.195 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.897e-06/0.1614, allocations: 8 kB / 0.5877 GB, free: 1.188 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1614, allocations: 0 / 0.5877 GB, free: 1.188 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.793e-06/0.1614, allocations: 0 / 0.5877 GB, free: 1.188 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.001236/0.1626, allocations: 0.6921 MB / 0.5883 GB, free: 432 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.727e-05/0.1627, allocations: 8.031 kB / 0.5883 GB, free: 424 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.251e-05/0.1628, allocations: 42.73 kB / 0.5884 GB, free: 372 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001072/0.1629, allocations: 36.59 kB / 0.5884 GB, free: 336 kB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.1632, allocations: 259.6 kB / 0.5887 GB, free: 36 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.914e-05/0.1632, allocations: 16.12 kB / 0.5887 GB, free: 20 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.85e-05/0.1633, allocations: 24.03 kB / 0.5887 GB, free: 15.99 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.1636, allocations: 145.5 kB / 0.5889 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.106e-06/0.1636, allocations: 0 / 0.5889 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.547e-05/0.1637, allocations: 0 / 0.5889 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.378e-06/0.1637, allocations: 8 kB / 0.5889 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001422/0.1638, allocations: 55.83 kB / 0.5889 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003475/0.1642, allocations: 313.3 kB / 0.5892 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002794/0.1645, allocations: 130.7 kB / 0.5893 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.1646, allocations: 60.77 kB / 0.5894 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.1646, allocations: 0 / 0.5894 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004621/0.1651, allocations: 226.5 kB / 0.5896 GB, free: 15 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=18): time 1.583e-06/0.1651, allocations: 0 / 0.5896 GB, free: 15 MB / 0.4981 GB Notification: Performance of matching and sorting (n=18): time 0.0005725/0.1657, allocations: 265.2 kB / 0.5899 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.1657, allocations: 67.23 kB / 0.5899 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002737/0.166, allocations: 290.9 kB / 0.5902 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.018e-05/0.1661, allocations: 37.7 kB / 0.5902 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.969e-05/0.1662, allocations: 97.12 kB / 0.5903 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.166e-05/0.1662, allocations: 43.5 kB / 0.5904 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/0.1664, allocations: 109.7 kB / 0.5905 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001166/0.1665, allocations: 318.8 kB / 0.5908 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002228/0.1667, allocations: 92.19 kB / 0.5909 GB, free: 13.66 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002386/0.167, allocations: 147.7 kB / 0.591 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/0.1673, allocations: 247.1 kB / 0.5912 GB, free: 13.22 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.1673, allocations: 4 kB / 0.5912 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006846/0.168, allocations: 422.1 kB / 0.5917 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 6.337e-05/0.1681, allocations: 73.42 kB / 0.5917 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.485e-06/0.1681, allocations: 4 kB / 0.5917 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.1681, allocations: 0 / 0.5917 GB, free: 12.7 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001711/0.1683, allocations: 31.84 kB / 0.5918 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.472e-06/0.1683, allocations: 4 kB / 0.5918 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005025/0.1688, allocations: 63.98 kB / 0.5918 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.595e-05/0.1689, allocations: 55.98 kB / 0.5919 GB, free: 12.55 MB / 0.4981 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.0001759/0.1691, allocations: 169.7 kB / 0.592 GB, free: 12.38 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.507e-05/0.1691, allocations: 27.66 kB / 0.5921 GB, free: 12.35 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.423e-05/0.1692, allocations: 34.25 kB / 0.5921 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.1692, allocations: 0 / 0.5921 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1692, allocations: 0 / 0.5921 GB, free: 12.32 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1692, allocations: 4 kB / 0.5921 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007766/0.17, allocations: 0.5683 MB / 0.5927 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.17, allocations: 0 / 0.5927 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.359e-05/0.1701, allocations: 8 kB / 0.5927 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.598e-06/0.1701, allocations: 4 kB / 0.5927 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.46e-05/0.1701, allocations: 7.984 kB / 0.5927 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1701, allocations: 0 / 0.5927 GB, free: 11.67 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.1701, allocations: 7.984 kB / 0.5927 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000405/0.1705, allocations: 328.9 kB / 0.593 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001576/0.1707, allocations: 160.6 kB / 0.5931 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.746e-05/0.1708, allocations: 8 kB / 0.5932 GB, free: 11.14 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/0.171, allocations: 11.92 kB / 0.5932 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.091e-05/0.1711, allocations: 23.97 kB / 0.5932 GB, free: 11.11 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.668e-05/0.1711, allocations: 27.97 kB / 0.5932 GB, free: 11.08 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001737/0.1713, allocations: 205.9 kB / 0.5934 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1713, allocations: 0 / 0.5934 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003233/0.1716, allocations: 59.98 kB / 0.5935 GB, free: 10.82 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.0007381/0.1724, allocations: 0.8701 MB / 0.5943 GB, free: 9.918 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0005674/0.1729, allocations: 352.1 kB / 0.5947 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.173, allocations: 384 / 0.5947 GB, free: 9.551 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001838/0.1731, allocations: 79.89 kB / 0.5947 GB, free: 9.473 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003378/0.1735, allocations: 26.89 kB / 0.5948 GB, free: 9.449 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003109/0.1766, allocations: 2.375 MB / 0.5971 GB, free: 6.945 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.177, allocations: 0.7395 MB / 0.5978 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001481/0.1771, allocations: 41.42 kB / 0.5978 GB, free: 6.129 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001471/0.1773, allocations: 43.41 kB / 0.5979 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of SimCode: time 3.31e-07/0.1773, allocations: 0 / 0.5979 GB, free: 6.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0241/0.2014, allocations: 5.273 MB / 0.603 GB, free: 0.9102 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.547/7.749, allocations: 6.328 kB / 0.603 GB, free: 0.9062 MB / 0.4981 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)