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.001413/0.001413, allocations: 107.4 kB / 16.41 MB, free: 6.488 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.001572/0.001572, allocations: 189.2 kB / 17.34 MB, free: 5.754 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7905/0.7905, allocations: 122.9 MB / 414.1 MB, free: 15.78 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 64.03 kB / 0.5679 GB, free: 29.06 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.168, allocations: 77.93 MB / 0.644 GB, free: 9.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Time.Examples.CalendarTime): time 0.003285/0.1713, allocations: 1.512 MB / 0.6455 GB, free: 8.086 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001352/0.1727, allocations: 0.5344 MB / 0.646 GB, free: 7.551 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.421e-05/0.1728, allocations: 0 / 0.646 GB, free: 7.551 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001091/0.1729, allocations: 11.88 kB / 0.646 GB, free: 7.539 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001276/0.1731, allocations: 35.84 kB / 0.6461 GB, free: 7.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009329/0.174, allocations: 307.3 kB / 0.6464 GB, free: 7.207 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006619/0.1747, allocations: 0.5033 MB / 0.6468 GB, free: 6.703 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.105e-05/0.1748, allocations: 12 kB / 0.6469 GB, free: 6.691 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006498/0.1754, allocations: 271.6 kB / 0.6471 GB, free: 6.426 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004854/0.1759, allocations: 153.1 kB / 0.6473 GB, free: 6.277 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001527/0.1761, allocations: 28 kB / 0.6473 GB, free: 6.25 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.87e-05/0.1762, allocations: 24 kB / 0.6473 GB, free: 6.227 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001414/0.1763, allocations: 115.6 kB / 0.6474 GB, free: 6.113 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002119/0.1765, allocations: 183.1 kB / 0.6476 GB, free: 5.934 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004897/0.177, allocations: 426.6 kB / 0.648 GB, free: 5.516 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1771, allocations: 0 / 0.648 GB, free: 5.516 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1771, allocations: 4 kB / 0.648 GB, free: 5.512 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.1771, allocations: 0 / 0.648 GB, free: 5.512 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.001543/0.1786, allocations: 0.8858 MB / 0.6489 GB, free: 4.535 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.1787, allocations: 8.625 kB / 0.6489 GB, free: 4.527 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.271e-05/0.1788, allocations: 42.73 kB / 0.6489 GB, free: 4.477 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.1789, allocations: 52.69 kB / 0.649 GB, free: 4.426 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004835/0.1794, allocations: 314.5 kB / 0.6493 GB, free: 4.078 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.118e-05/0.1795, allocations: 12.38 kB / 0.6493 GB, free: 4.066 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-05/0.1796, allocations: 32.36 kB / 0.6493 GB, free: 4.035 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001077/0.1807, allocations: 214 kB / 0.6495 GB, free: 3.82 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.579e-05/0.1807, allocations: 3.938 kB / 0.6495 GB, free: 3.816 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.141e-05/0.1807, allocations: 0 / 0.6495 GB, free: 3.816 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.13e-05/0.1807, allocations: 8 kB / 0.6495 GB, free: 3.809 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008364/0.1816, allocations: 99.86 kB / 0.6496 GB, free: 3.711 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000585/0.1822, allocations: 389.2 kB / 0.65 GB, free: 3.281 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.1833, allocations: 178.5 kB / 0.6502 GB, free: 3.098 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008044/0.1841, allocations: 113.2 kB / 0.6503 GB, free: 2.984 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.826e-05/0.1842, allocations: 7.984 kB / 0.6503 GB, free: 2.977 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001108/0.1853, allocations: 227.1 kB / 0.6505 GB, free: 2.742 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 2.996e-06/0.1853, allocations: 0 / 0.6505 GB, free: 2.742 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002721/0.188, allocations: 485 kB / 0.651 GB, free: 2.262 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.693e-05/0.1881, allocations: 63.39 kB / 0.651 GB, free: 2.188 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004833/0.1886, allocations: 413.9 kB / 0.6514 GB, free: 1.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 8.657e-05/0.1887, allocations: 41.69 kB / 0.6515 GB, free: 1.723 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.396e-05/0.1888, allocations: 89.45 kB / 0.6515 GB, free: 1.633 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.395e-05/0.1888, allocations: 47.62 kB / 0.6516 GB, free: 1.586 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002137/0.1891, allocations: 125.5 kB / 0.6517 GB, free: 1.457 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001598/0.1892, allocations: 322.8 kB / 0.652 GB, free: 1.133 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002905/0.1895, allocations: 115.9 kB / 0.6521 GB, free: 1.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003318/0.1899, allocations: 173.9 kB / 0.6523 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004452/0.1903, allocations: 274.3 kB / 0.6526 GB, free: 0.5273 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.632e-06/0.1903, allocations: 4 kB / 0.6526 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009017/0.1913, allocations: 490.1 kB / 0.653 GB, free: 32 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/0.1914, allocations: 96.39 kB / 0.6531 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.1914, allocations: 0 / 0.6531 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.1914, allocations: 4 kB / 0.6531 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001836/0.1916, allocations: 23.92 kB / 0.6531 GB, free: 15.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.1917, allocations: 4.188 kB / 0.6531 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005029/0.1922, allocations: 59.84 kB / 0.6532 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.745e-05/0.1923, allocations: 63.97 kB / 0.6533 GB, free: 15.77 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.0002509/0.1925, allocations: 197.7 kB / 0.6535 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.656e-05/0.1926, allocations: 43.66 kB / 0.6535 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.236e-05/0.1927, allocations: 43.75 kB / 0.6535 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.1927, allocations: 7.984 kB / 0.6535 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.1927, allocations: 3.938 kB / 0.6535 GB, free: 15.48 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.1927, allocations: 3.984 kB / 0.6536 GB, free: 15.47 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00234/0.1951, allocations: 0.7443 MB / 0.6543 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1951, allocations: 0 / 0.6543 GB, free: 14.67 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.586e-05/0.1951, allocations: 4 kB / 0.6543 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.5e-06/0.1952, allocations: 4 kB / 0.6543 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.607e-05/0.1952, allocations: 23.97 kB / 0.6543 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.373e-06/0.1952, allocations: 0 / 0.6543 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.1952, allocations: 3.938 kB / 0.6543 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001839/0.1971, allocations: 476.5 kB / 0.6548 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003041/0.1974, allocations: 200.7 kB / 0.655 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.188e-05/0.1975, allocations: 11.98 kB / 0.655 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004988/0.198, allocations: 31.97 kB / 0.655 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.901e-05/0.198, allocations: 11.98 kB / 0.655 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.1e-05/0.1981, allocations: 55.98 kB / 0.6551 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0003134/0.1984, allocations: 295.1 kB / 0.6553 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.1984, allocations: 0 / 0.6553 GB, free: 13.54 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0004102/0.1988, allocations: 67.98 kB / 0.6554 GB, free: 13.47 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.002319/0.2012, allocations: 1.03 MB / 0.6564 GB, free: 12.42 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001385/0.2026, allocations: 442.5 kB / 0.6568 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2026, allocations: 0 / 0.6568 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008257/0.2034, allocations: 115.9 kB / 0.657 GB, free: 11.85 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003967/0.2038, allocations: 25.53 kB / 0.657 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004486/0.2083, allocations: 2.8 MB / 0.6597 GB, free: 8.902 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005264/0.2089, allocations: 0.7669 MB / 0.6605 GB, free: 8.109 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.000101/0.209, allocations: 13.08 kB / 0.6605 GB, free: 8.094 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.657e-05/0.2091, allocations: 31.36 kB / 0.6605 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of SimCode: time 5.91e-07/0.2091, allocations: 0 / 0.6605 GB, free: 8.062 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02612/0.2352, allocations: 6.179 MB / 0.6665 GB, free: 1.84 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.594/7.829, allocations: 18 kB / 0.6666 GB, free: 1.828 MB / 0.4981 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)