Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Time.Examples.CalendarTime,fileNamePrefix="IBPSA_latest_IBPSA_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.001476/0.001476, allocations: 104.6 kB / 16.4 MB, free: 6.492 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.001522/0.001522, allocations: 191.9 kB / 17.34 MB, free: 5.766 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8169/0.8169, allocations: 126.7 MB / 417.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002707/0.002707, allocations: 62.23 kB / 0.5735 GB, free: 27.12 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1583, allocations: 78.87 MB / 0.6505 GB, free: 3.656 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Time.Examples.CalendarTime): time 0.002566/0.1609, allocations: 1.502 MB / 0.652 GB, free: 2.141 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001199/0.1621, allocations: 0.5401 MB / 0.6525 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.923e-05/0.1622, allocations: 0 / 0.6525 GB, free: 1.602 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 9.36e-05/0.1623, allocations: 11.86 kB / 0.6525 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001061/0.1624, allocations: 31.64 kB / 0.6526 GB, free: 1.559 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007586/0.1632, allocations: 313.5 kB / 0.6528 GB, free: 1.254 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005466/0.1637, allocations: 0.5033 MB / 0.6533 GB, free: 0.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.564e-05/0.1638, allocations: 15.98 kB / 0.6534 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003597/0.1641, allocations: 275.6 kB / 0.6536 GB, free: 476 kB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002736/0.1644, allocations: 147.6 kB / 0.6538 GB, free: 328 kB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.783e-05/0.1645, allocations: 28 kB / 0.6538 GB, free: 300 kB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001014/0.1646, allocations: 24 kB / 0.6538 GB, free: 276 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001342/0.1648, allocations: 115.6 kB / 0.6539 GB, free: 160 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002096/0.165, allocations: 187.2 kB / 0.6541 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004323/0.1654, allocations: 430.7 kB / 0.6545 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1654, allocations: 0 / 0.6545 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.362e-06/0.1654, allocations: 0 / 0.6545 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.1655, allocations: 0 / 0.6545 GB, free: 15.55 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.001255/0.1667, allocations: 0.8742 MB / 0.6554 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.568e-05/0.1668, allocations: 12.62 kB / 0.6554 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.669e-05/0.1668, allocations: 38.73 kB / 0.6554 GB, free: 14.52 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000102/0.1669, allocations: 52.7 kB / 0.6555 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003777/0.1673, allocations: 310.6 kB / 0.6558 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.118e-05/0.1674, allocations: 20.36 kB / 0.6558 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.154e-05/0.1674, allocations: 28.38 kB / 0.6558 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009506/0.1684, allocations: 216.7 kB / 0.656 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.1684, allocations: 3.938 kB / 0.656 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.1684, allocations: 0 / 0.656 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.1685, allocations: 4 kB / 0.656 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007691/0.1692, allocations: 103.9 kB / 0.6561 GB, free: 13.76 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004464/0.1697, allocations: 393.2 kB / 0.6565 GB, free: 13.32 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/0.1707, allocations: 178.5 kB / 0.6567 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007491/0.1715, allocations: 120.7 kB / 0.6568 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.674e-05/0.1715, allocations: 0 / 0.6568 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009783/0.1725, allocations: 223.1 kB / 0.657 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=16): time 1.663e-06/0.1725, allocations: 4 kB / 0.657 GB, free: 12.79 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16): time 0.002567/0.1751, allocations: 483.5 kB / 0.6575 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.421e-05/0.1752, allocations: 63.39 kB / 0.6575 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004413/0.1756, allocations: 409.9 kB / 0.6579 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 5.342e-05/0.1757, allocations: 45.62 kB / 0.658 GB, free: 11.78 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.589e-05/0.1757, allocations: 93.44 kB / 0.658 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 5.683e-05/0.1758, allocations: 47.62 kB / 0.6581 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000197/0.176, allocations: 133.5 kB / 0.6582 GB, free: 11.5 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001427/0.1762, allocations: 318.8 kB / 0.6585 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002549/0.1764, allocations: 115.9 kB / 0.6586 GB, free: 11.07 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.1767, allocations: 169.9 kB / 0.6588 GB, free: 10.88 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003891/0.1771, allocations: 275 kB / 0.6591 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.1772, allocations: 0 / 0.6591 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008351/0.178, allocations: 496.7 kB / 0.6595 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.557e-05/0.1781, allocations: 95.25 kB / 0.6596 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.581e-06/0.1781, allocations: 0 / 0.6596 GB, free: 9.969 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.1781, allocations: 4 kB / 0.6596 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000163/0.1783, allocations: 27.92 kB / 0.6596 GB, free: 9.938 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.029e-05/0.1783, allocations: 3.984 kB / 0.6597 GB, free: 9.934 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004685/0.1788, allocations: 59.98 kB / 0.6597 GB, free: 9.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-05/0.1789, allocations: 63.98 kB / 0.6598 GB, free: 9.812 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: 24 (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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 24 * 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.0002304/0.1791, allocations: 197.7 kB / 0.66 GB, free: 9.613 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.116e-05/0.1792, allocations: 43.66 kB / 0.66 GB, free: 9.57 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.449e-05/0.1793, allocations: 47.67 kB / 0.66 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.1793, allocations: 0 / 0.66 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.1793, allocations: 0 / 0.66 GB, free: 9.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.207e-06/0.1793, allocations: 4 kB / 0.66 GB, free: 9.516 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.1815, allocations: 0.7405 MB / 0.6608 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.1815, allocations: 0 / 0.6608 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.769e-05/0.1816, allocations: 7.984 kB / 0.6608 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1816, allocations: 0 / 0.6608 GB, free: 8.707 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.221e-05/0.1816, allocations: 19.98 kB / 0.6608 GB, free: 8.688 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.15e-06/0.1816, allocations: 11.98 kB / 0.6608 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.1817, allocations: 0 / 0.6608 GB, free: 8.676 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001772/0.1834, allocations: 478.5 kB / 0.6613 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/0.1837, allocations: 204.7 kB / 0.6615 GB, free: 7.977 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.19e-05/0.1838, allocations: 11.98 kB / 0.6615 GB, free: 7.965 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004654/0.1842, allocations: 31.97 kB / 0.6615 GB, free: 7.934 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.508e-05/0.1843, allocations: 7.984 kB / 0.6615 GB, free: 7.926 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.273e-05/0.1844, allocations: 59.97 kB / 0.6616 GB, free: 7.867 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003211/0.1847, allocations: 295.1 kB / 0.6618 GB, free: 7.582 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1847, allocations: 4 kB / 0.6619 GB, free: 7.578 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000354/0.1851, allocations: 64 kB / 0.6619 GB, free: 7.516 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: 14 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$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.yearIndex,calendarTime2016.year,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.firstHourSampling,calendarTime2016.hour) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 6 * 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.002137/0.1872, allocations: 1.03 MB / 0.6629 GB, free: 6.453 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00131/0.1885, allocations: 434.5 kB / 0.6633 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/0.1885, allocations: 0 / 0.6633 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007786/0.1893, allocations: 127.2 kB / 0.6635 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003764/0.1897, allocations: 23.42 kB / 0.6635 GB, free: 5.859 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004339/0.1941, allocations: 2.792 MB / 0.6662 GB, free: 2.941 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004294/0.1945, allocations: 0.7744 MB / 0.667 GB, free: 2.141 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.075e-05/0.1946, allocations: 17.08 kB / 0.667 GB, free: 2.125 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.124e-05/0.1947, allocations: 23.42 kB / 0.667 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of SimCode: time 1.182e-06/0.1947, allocations: 0 / 0.667 GB, free: 2.102 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02867/0.2233, allocations: 6.182 MB / 0.673 GB, free: 11.88 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.254/8.477, allocations: 6.031 kB / 0.673 GB, free: 11.87 MB / 0.5137 GB (rm -f IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Time_Examples_CalendarTime.fmu > IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe 2>&1)