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.0009142/0.0009145, allocations: 99.05 kB / 16.02 MB, free: 80 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.001255/0.001254, allocations: 180.1 kB / 16.92 MB, free: 6.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.502/1.502, allocations: 223.3 MB / 241 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7162/0.7162, allocations: 115.5 MB / 407.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003608/0.0003608, allocations: 13.45 kB / 495.9 MB, free: 6.227 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1555/0.1558, allocations: 77.53 MB / 0.56 GB, free: 8.906 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Time.Examples.CalendarTime): time 0.001763/0.1577, allocations: 1.221 MB / 0.5612 GB, free: 7.676 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001369/0.1591, allocations: 0.6023 MB / 0.5618 GB, free: 7.074 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.57e-05/0.1591, allocations: 0 / 0.5618 GB, free: 7.074 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 8.241e-05/0.1592, allocations: 3.938 kB / 0.5618 GB, free: 7.07 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001157/0.1594, allocations: 23.86 kB / 0.5618 GB, free: 7.047 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008227/0.1602, allocations: 288.6 kB / 0.5621 GB, free: 6.77 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005644/0.1608, allocations: 447.4 kB / 0.5625 GB, free: 6.332 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.534e-05/0.1608, allocations: 11.92 kB / 0.5625 GB, free: 6.32 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005949/0.1614, allocations: 315 kB / 0.5628 GB, free: 6.012 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003184/0.1618, allocations: 155.4 kB / 0.563 GB, free: 5.859 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.297e-05/0.1619, allocations: 16 kB / 0.563 GB, free: 5.844 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.388e-05/0.1619, allocations: 12 kB / 0.563 GB, free: 5.832 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000135/0.1621, allocations: 115.5 kB / 0.5631 GB, free: 5.719 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002276/0.1623, allocations: 204.7 kB / 0.5633 GB, free: 5.512 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004364/0.1628, allocations: 422.6 kB / 0.5637 GB, free: 5.098 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.1628, allocations: 4 kB / 0.5637 GB, free: 5.094 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1628, allocations: 0 / 0.5637 GB, free: 5.094 MB / 430.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1628, allocations: 0 / 0.5637 GB, free: 5.094 MB / 430.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.001042/0.1638, allocations: 0.742 MB / 0.5645 GB, free: 4.262 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.173e-05/0.1639, allocations: 12.02 kB / 0.5645 GB, free: 4.25 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.999e-05/0.164, allocations: 34.75 kB / 0.5645 GB, free: 4.207 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.1641, allocations: 52.47 kB / 0.5646 GB, free: 4.156 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003563/0.1645, allocations: 318.2 kB / 0.5649 GB, free: 3.812 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.055e-05/0.1645, allocations: 20.36 kB / 0.5649 GB, free: 3.793 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.153e-05/0.1646, allocations: 24.36 kB / 0.5649 GB, free: 3.77 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001025/0.1656, allocations: 226 kB / 0.5651 GB, free: 3.543 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/0.1657, allocations: 7.938 kB / 0.5651 GB, free: 3.535 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.042e-05/0.1657, allocations: 3.984 kB / 0.5651 GB, free: 3.531 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.323e-06/0.1657, allocations: 8 kB / 0.5651 GB, free: 3.523 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007989/0.1665, allocations: 103.9 kB / 0.5652 GB, free: 3.422 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004388/0.167, allocations: 389.2 kB / 0.5656 GB, free: 2.992 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001091/0.1681, allocations: 202.4 kB / 0.5658 GB, free: 2.785 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007839/0.1689, allocations: 116.8 kB / 0.5659 GB, free: 2.668 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.703e-05/0.1689, allocations: 4 kB / 0.5659 GB, free: 2.664 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009739/0.1699, allocations: 243 kB / 0.5661 GB, free: 2.414 MB / 430.1 MB Notification: Performance of pre-optimization done (n=16): time 1.763e-06/0.1699, allocations: 0 / 0.5661 GB, free: 2.414 MB / 430.1 MB Notification: Performance of matching and sorting (n=16): time 0.002593/0.1725, allocations: 0.497 MB / 0.5666 GB, free: 1.91 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.992e-05/0.1726, allocations: 67.34 kB / 0.5667 GB, free: 1.832 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004028/0.173, allocations: 413.8 kB / 0.5671 GB, free: 1.418 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.323e-05/0.173, allocations: 37.7 kB / 0.5671 GB, free: 1.375 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.905e-05/0.1731, allocations: 93.44 kB / 0.5672 GB, free: 1.281 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.1732, allocations: 39.52 kB / 0.5673 GB, free: 1.242 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.728e-05/0.1733, allocations: 33.7 kB / 0.5673 GB, free: 1.203 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001356/0.1734, allocations: 326.8 kB / 0.5676 GB, free: 0.875 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002603/0.1737, allocations: 115.9 kB / 0.5677 GB, free: 0.7617 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002918/0.174, allocations: 181.9 kB / 0.5679 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003818/0.1744, allocations: 279.3 kB / 0.5681 GB, free: 264 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.1744, allocations: 0 / 0.5681 GB, free: 264 kB / 430.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0008449/0.1752, allocations: 490.9 kB / 0.5686 GB, free: 15.76 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.079e-05/0.1753, allocations: 95.25 kB / 0.5687 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.1753, allocations: 0 / 0.5687 GB, free: 15.66 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.1753, allocations: 8.188 kB / 0.5687 GB, free: 15.65 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.1755, allocations: 23.92 kB / 0.5687 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.1755, allocations: 0 / 0.5687 GB, free: 15.62 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000522/0.176, allocations: 71.78 kB / 0.5688 GB, free: 15.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.156e-05/0.1761, allocations: 59.98 kB / 0.5689 GB, free: 15.5 MB / 446.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: 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.0002231/0.1764, allocations: 203.2 kB / 0.5691 GB, free: 15.29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.501e-05/0.1764, allocations: 39.47 kB / 0.5691 GB, free: 15.25 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.124e-05/0.1765, allocations: 43.73 kB / 0.5691 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1765, allocations: 0 / 0.5691 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1765, allocations: 4 kB / 0.5691 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.786e-06/0.1765, allocations: 0 / 0.5691 GB, free: 15.21 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/0.1787, allocations: 0.7651 MB / 0.5699 GB, free: 14.39 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1787, allocations: 3.938 kB / 0.5699 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.681e-05/0.1788, allocations: 7.984 kB / 0.5699 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.457e-06/0.1788, allocations: 0 / 0.5699 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.574e-05/0.1788, allocations: 23.97 kB / 0.5699 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.639e-06/0.1788, allocations: 4 kB / 0.5699 GB, free: 14.35 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.1789, allocations: 4 kB / 0.5699 GB, free: 14.34 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001787/0.1806, allocations: 0.4892 MB / 0.5704 GB, free: 13.84 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002387/0.1809, allocations: 208.4 kB / 0.5706 GB, free: 13.62 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/0.181, allocations: 8 kB / 0.5706 GB, free: 13.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004821/0.1815, allocations: 31.97 kB / 0.5706 GB, free: 13.58 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.174e-05/0.1815, allocations: 7.984 kB / 0.5707 GB, free: 13.57 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.382e-05/0.1816, allocations: 67.97 kB / 0.5707 GB, free: 13.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0002858/0.1819, allocations: 291.1 kB / 0.571 GB, free: 13.21 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.1819, allocations: 4 kB / 0.571 GB, free: 13.21 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003366/0.1822, allocations: 60 kB / 0.5711 GB, free: 13.15 MB / 446.1 MB 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.002025/0.1842, allocations: 1.042 MB / 0.5721 GB, free: 12.08 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.1855, allocations: 448.3 kB / 0.5725 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.1855, allocations: 4.125 kB / 0.5725 GB, free: 11.62 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007731/0.1863, allocations: 127.8 kB / 0.5726 GB, free: 11.49 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003524/0.1866, allocations: 30.53 kB / 0.5727 GB, free: 11.46 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004191/0.1908, allocations: 2.903 MB / 0.5755 GB, free: 8.434 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003633/0.1912, allocations: 0.7709 MB / 0.5762 GB, free: 7.637 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 6.457e-05/0.1913, allocations: 21.02 kB / 0.5763 GB, free: 7.613 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.556e-05/0.1914, allocations: 27.42 kB / 0.5763 GB, free: 7.59 MB / 446.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1914, allocations: 0 / 0.5763 GB, free: 7.59 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01635/0.2077, allocations: 5.977 MB / 0.5821 GB, free: 1.641 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001601/0.2079, allocations: 185.9 kB / 0.5823 GB, free: 1.387 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.833/2.041, allocations: 3.938 kB / 0.5823 GB, free: 1.383 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Time_Examples_CalendarTime.fmu > IBPSA_latest_IBPSA.Utilities.Time.Examples.CalendarTime.pipe 2>&1)