Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Time.Examples.CalendarTime,fileNamePrefix="BuildingSystems_BuildingSystems_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.001642/0.001642, allocations: 112.5 kB / 15.73 MB, free: 76 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.001726/0.001726, allocations: 188.3 kB / 16.67 MB, free: 6.582 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.506/1.506, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002518/0.002518, allocations: 274.8 kB / 290.8 MB, free: 1.922 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.013/1.013, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003853/0.003853, allocations: 91.8 kB / 0.6809 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1911/0.195, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002601/0.1977, allocations: 1.489 MB / 0.7673 GB, free: 7.449 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0009347/0.1986, allocations: 423.3 kB / 0.7677 GB, free: 7.031 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.248e-05/0.1987, allocations: 4 kB / 0.7677 GB, free: 7.027 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 9.138e-05/0.1988, allocations: 7.875 kB / 0.7677 GB, free: 7.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 9.351e-05/0.1989, allocations: 20.23 kB / 0.7677 GB, free: 7 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006699/0.1996, allocations: 250 kB / 0.768 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0004108/0.2, allocations: 323.5 kB / 0.7683 GB, free: 6.441 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.212e-05/0.2001, allocations: 19.89 kB / 0.7683 GB, free: 6.422 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002766/0.2003, allocations: 199.7 kB / 0.7685 GB, free: 6.227 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000229/0.2006, allocations: 112.1 kB / 0.7686 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 7.233e-05/0.2007, allocations: 20 kB / 0.7686 GB, free: 6.098 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 7.202e-05/0.2007, allocations: 20 kB / 0.7686 GB, free: 6.078 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001145/0.2008, allocations: 83.72 kB / 0.7687 GB, free: 5.996 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001545/0.201, allocations: 123.4 kB / 0.7688 GB, free: 5.875 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003413/0.2014, allocations: 295.2 kB / 0.7691 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.2014, allocations: 0 / 0.7691 GB, free: 5.586 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.352e-06/0.2014, allocations: 3.938 kB / 0.7691 GB, free: 5.582 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 1.041e-05/0.2014, allocations: 0 / 0.7691 GB, free: 5.582 MB / 0.5606 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.0011/0.2025, allocations: 0.754 MB / 0.7699 GB, free: 4.742 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.2025, allocations: 8.031 kB / 0.7699 GB, free: 4.734 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.496e-05/0.2026, allocations: 38.75 kB / 0.7699 GB, free: 4.688 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.82e-05/0.2027, allocations: 40.78 kB / 0.77 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002907/0.203, allocations: 255.8 kB / 0.7702 GB, free: 4.359 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.802e-05/0.203, allocations: 24.11 kB / 0.7702 GB, free: 4.336 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.3e-05/0.2031, allocations: 16 kB / 0.7702 GB, free: 4.32 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009403/0.204, allocations: 204.2 kB / 0.7704 GB, free: 4.117 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.2041, allocations: 3.938 kB / 0.7704 GB, free: 4.113 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.2041, allocations: 3.984 kB / 0.7704 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.2041, allocations: 0 / 0.7704 GB, free: 4.109 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007227/0.2048, allocations: 91.92 kB / 0.7705 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003841/0.2052, allocations: 325.3 kB / 0.7708 GB, free: 3.652 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.2062, allocations: 174.4 kB / 0.771 GB, free: 3.473 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007216/0.207, allocations: 108.8 kB / 0.7711 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.265e-05/0.207, allocations: 0 / 0.7711 GB, free: 3.363 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009266/0.2079, allocations: 219 kB / 0.7713 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 3.427e-06/0.2079, allocations: 0 / 0.7713 GB, free: 3.137 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.0024/0.2104, allocations: 458.2 kB / 0.7717 GB, free: 2.684 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.165e-05/0.2104, allocations: 63.39 kB / 0.7718 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000298/0.2107, allocations: 287 kB / 0.7721 GB, free: 2.32 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.071e-05/0.2108, allocations: 37.7 kB / 0.7721 GB, free: 2.277 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.802e-05/0.2109, allocations: 93.12 kB / 0.7722 GB, free: 2.184 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.34e-05/0.2109, allocations: 31.77 kB / 0.7722 GB, free: 2.152 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001538/0.2111, allocations: 97.58 kB / 0.7723 GB, free: 2.051 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001335/0.2112, allocations: 318.8 kB / 0.7726 GB, free: 1.73 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002001/0.2114, allocations: 87.94 kB / 0.7727 GB, free: 1.645 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002285/0.2116, allocations: 149 kB / 0.7729 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003562/0.212, allocations: 239.4 kB / 0.7731 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.212, allocations: 0 / 0.7731 GB, free: 1.215 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006641/0.2127, allocations: 396.6 kB / 0.7735 GB, free: 0.8086 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 7.673e-05/0.2128, allocations: 79.38 kB / 0.7735 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2128, allocations: 0 / 0.7735 GB, free: 0.7188 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.2128, allocations: 4 kB / 0.7735 GB, free: 0.7148 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001603/0.213, allocations: 28.11 kB / 0.7736 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.213, allocations: 0 / 0.7736 GB, free: 0.6875 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004291/0.2134, allocations: 55.84 kB / 0.7736 GB, free: 0.6328 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.791e-05/0.2135, allocations: 43.98 kB / 0.7737 GB, free: 0.5898 MB / 0.5606 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.0001861/0.2137, allocations: 174.3 kB / 0.7738 GB, free: 424 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.092e-05/0.2137, allocations: 31.83 kB / 0.7739 GB, free: 392 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.253e-05/0.2138, allocations: 34.3 kB / 0.7739 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.2138, allocations: 0 / 0.7739 GB, free: 360 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.2138, allocations: 4 kB / 0.7739 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.2138, allocations: 0 / 0.7739 GB, free: 356 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3272/0.5411, allocations: 0.6823 MB / 0.7746 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.5411, allocations: 0 / 0.7746 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.888e-05/0.5412, allocations: 9.172 kB / 0.7746 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.506e-06/0.5412, allocations: 2.109 kB / 0.7746 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.401e-05/0.5412, allocations: 14.98 kB / 0.7746 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.322e-06/0.5412, allocations: 4.281 kB / 0.7746 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.5413, allocations: 1.469 kB / 0.7746 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001686/0.5429, allocations: 452.2 kB / 0.775 GB, free: 14.28 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002167/0.5432, allocations: 168 kB / 0.7752 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.57e-05/0.5433, allocations: 9.719 kB / 0.7752 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000446/0.5437, allocations: 35.12 kB / 0.7752 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.228e-05/0.5438, allocations: 15.17 kB / 0.7752 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.857e-05/0.5438, allocations: 44.17 kB / 0.7753 GB, free: 14.19 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002675/0.5441, allocations: 207.5 kB / 0.7755 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5441, allocations: 0.6875 kB / 0.7755 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000383/0.5445, allocations: 49.41 kB / 0.7755 GB, free: 14.11 MB / 0.5606 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.001835/0.5464, allocations: 0.9833 MB / 0.7765 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001214/0.5476, allocations: 386.8 kB / 0.7769 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.5476, allocations: 0.9844 kB / 0.7769 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007372/0.5483, allocations: 114 kB / 0.777 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003594/0.5487, allocations: 26.05 kB / 0.777 GB, free: 13.33 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003599/0.5523, allocations: 2.364 MB / 0.7793 GB, free: 11.95 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002422/0.5526, allocations: 0.741 MB / 0.78 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 7.511e-05/0.5527, allocations: 15.42 kB / 0.78 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.837e-05/0.5527, allocations: 24.08 kB / 0.7801 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of SimCode: time 8.01e-07/0.5527, allocations: 1.422 kB / 0.7801 GB, free: 11.24 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02998/0.5827, allocations: 4.843 MB / 0.7848 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/8.561, allocations: 6.938 kB / 0.7848 GB, free: 10.6 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Time_Examples_CalendarTime.fmu > BuildingSystems_BuildingSystems.Utilities.Time.Examples.CalendarTime.pipe 2>&1)