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.00762/0.00762, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.001916/0.001916, allocations: 191.9 kB / 16.67 MB, free: 5.48 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.49/1.49, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002562/0.002562, allocations: 298.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.319/1.319, allocations: 178.6 MB / 0.5074 GB, free: 12.62 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003906/0.003906, allocations: 99.84 kB / 0.6943 GB, free: 15.22 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5206/0.5245, allocations: 89.13 MB / 0.7813 GB, free: 1.125 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.00232/0.5269, allocations: 1.52 MB / 0.7828 GB, free: 15.92 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.001272/0.5282, allocations: 0.5538 MB / 0.7833 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.061e-05/0.5283, allocations: 0 / 0.7833 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001077/0.5284, allocations: 5.125 kB / 0.7833 GB, free: 15.48 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0001136/0.5286, allocations: 30.64 kB / 0.7834 GB, free: 15.46 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007873/0.5294, allocations: 315.7 kB / 0.7837 GB, free: 15.22 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0005647/0.5299, allocations: 0.5006 MB / 0.7841 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.359e-05/0.53, allocations: 4.25 kB / 0.7842 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.5304, allocations: 281 kB / 0.7844 GB, free: 14.8 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002836/0.5306, allocations: 134.6 kB / 0.7845 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 9.244e-05/0.5308, allocations: 30.66 kB / 0.7846 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 8.901e-05/0.5308, allocations: 27.22 kB / 0.7846 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.531, allocations: 119.3 kB / 0.7847 GB, free: 14.64 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0002124/0.5312, allocations: 179.5 kB / 0.7849 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000493/0.5317, allocations: 428 kB / 0.7853 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.5317, allocations: 1.062 kB / 0.7853 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5317, allocations: 0 / 0.7853 GB, free: 14.25 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 6.402e-06/0.5317, allocations: 0 / 0.7853 GB, free: 14.25 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.001406/0.5332, allocations: 0.882 MB / 0.7862 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.5332, allocations: 13.28 kB / 0.7862 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.798e-05/0.5333, allocations: 34 kB / 0.7862 GB, free: 13.39 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.5334, allocations: 53.94 kB / 0.7863 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003935/0.5338, allocations: 314 kB / 0.7866 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.486e-05/0.5338, allocations: 19.11 kB / 0.7866 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.5339, allocations: 25.67 kB / 0.7866 GB, free: 13.07 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009419/0.5349, allocations: 209.8 kB / 0.7868 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/0.5349, allocations: 7.938 kB / 0.7868 GB, free: 12.94 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.927e-05/0.5349, allocations: 9.328 kB / 0.7868 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.5349, allocations: 1.219 kB / 0.7868 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007462/0.5357, allocations: 100.2 kB / 0.7869 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005207/0.5362, allocations: 394.9 kB / 0.7873 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001043/0.5373, allocations: 181.9 kB / 0.7875 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007571/0.538, allocations: 112 kB / 0.7876 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 2.777e-05/0.5381, allocations: 9.109 kB / 0.7876 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001149/0.5392, allocations: 225.4 kB / 0.7878 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=16): time 2.886e-06/0.5393, allocations: 0 / 0.7878 GB, free: 12.24 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16): time 0.00314/0.5424, allocations: 488.9 kB / 0.7883 GB, free: 12.05 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.58e-05/0.5425, allocations: 55.94 kB / 0.7883 GB, free: 11.98 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005911/0.5431, allocations: 422.1 kB / 0.7887 GB, free: 11.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 6.546e-05/0.5432, allocations: 37.67 kB / 0.7887 GB, free: 11.68 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 9.184e-05/0.5433, allocations: 95.56 kB / 0.7888 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.227e-05/0.5434, allocations: 45.52 kB / 0.7889 GB, free: 11.55 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003005/0.5437, allocations: 124.3 kB / 0.789 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001623/0.5438, allocations: 325.5 kB / 0.7893 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002667/0.5441, allocations: 116.1 kB / 0.7894 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003429/0.5445, allocations: 167.7 kB / 0.7896 GB, free: 10.99 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/0.5449, allocations: 284.5 kB / 0.7899 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.5449, allocations: 0 / 0.7899 GB, free: 10.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0009698/0.5459, allocations: 486.2 kB / 0.7903 GB, free: 10.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001056/0.546, allocations: 92.62 kB / 0.7904 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.246e-06/0.546, allocations: 1.344 kB / 0.7904 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.546, allocations: 2.875 kB / 0.7904 GB, free: 10.43 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002004/0.5462, allocations: 26.62 kB / 0.7904 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.5463, allocations: 2.812 kB / 0.7904 GB, free: 10.42 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000512/0.5468, allocations: 57.03 kB / 0.7905 GB, free: 10.4 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001152/0.5469, allocations: 61.23 kB / 0.7906 GB, free: 10.39 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.0003512/0.5473, allocations: 204.1 kB / 0.7907 GB, free: 10.23 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.606e-05/0.5474, allocations: 44.38 kB / 0.7908 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.547e-05/0.5475, allocations: 39.97 kB / 0.7908 GB, free: 10.18 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.94e-06/0.5475, allocations: 10.5 kB / 0.7908 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.5475, allocations: 0 / 0.7908 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.5475, allocations: 0 / 0.7908 GB, free: 10.17 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.5499, allocations: 0.7427 MB / 0.7916 GB, free: 9.648 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.5499, allocations: 4 kB / 0.7916 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.372e-05/0.55, allocations: 3.75 kB / 0.7916 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.55, allocations: 1.094 kB / 0.7916 GB, free: 9.645 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.307e-05/0.55, allocations: 23.59 kB / 0.7916 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.5501, allocations: 0.9062 kB / 0.7916 GB, free: 9.633 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.5501, allocations: 5.078 kB / 0.7916 GB, free: 9.629 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001867/0.5519, allocations: 477.6 kB / 0.7921 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002932/0.5522, allocations: 203.5 kB / 0.7922 GB, free: 9.188 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.331e-05/0.5523, allocations: 13.5 kB / 0.7923 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004756/0.5528, allocations: 30.77 kB / 0.7923 GB, free: 9.168 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.454e-05/0.5529, allocations: 12.31 kB / 0.7923 GB, free: 9.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.399e-05/0.5529, allocations: 57.88 kB / 0.7924 GB, free: 9.152 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0003795/0.5533, allocations: 294 kB / 0.7926 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5533, allocations: 0 / 0.7926 GB, free: 8.973 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0004088/0.5538, allocations: 66.36 kB / 0.7927 GB, free: 8.965 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.002208/0.556, allocations: 1.023 MB / 0.7937 GB, free: 8.16 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001361/0.5573, allocations: 448.8 kB / 0.7941 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.5574, allocations: 0 / 0.7941 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0007406/0.5581, allocations: 115.6 kB / 0.7942 GB, free: 7.855 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003705/0.5585, allocations: 27.59 kB / 0.7943 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004427/0.5629, allocations: 2.803 MB / 0.797 GB, free: 5.738 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004801/0.5634, allocations: 0.7713 MB / 0.7978 GB, free: 5 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 6.883e-05/0.5635, allocations: 13.28 kB / 0.7978 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.732e-05/0.5636, allocations: 28.92 kB / 0.7978 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of SimCode: time 2.2e-07/0.5636, allocations: 1.375 kB / 0.7978 GB, free: 4.973 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03092/0.5945, allocations: 6.214 MB / 0.8039 GB, free: 0.957 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.157/8.752, allocations: 6.438 kB / 0.8039 GB, free: 0.9531 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)