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.006818/0.006818, allocations: 97.27 kB / 15.73 MB, free: 6.066 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.001326/0.001326, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.326/1.326, 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.002244/0.002244, allocations: 282.4 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 0.9336/0.9336, allocations: 169.2 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001934/0.001934, allocations: 107.8 kB / 0.6809 GB, free: 7.484 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4502/0.4522, allocations: 86.97 MB / 0.7659 GB, free: 3.871 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002546/0.4548, allocations: 1.475 MB / 0.7673 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009558/0.4558, allocations: 433 kB / 0.7677 GB, free: 1.961 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.4559, allocations: 4 kB / 0.7677 GB, free: 1.957 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.456, allocations: 7.875 kB / 0.7677 GB, free: 1.949 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0001204/0.4562, allocations: 28.22 kB / 0.7678 GB, free: 1.922 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008173/0.457, allocations: 250.2 kB / 0.768 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0004619/0.4575, allocations: 327.5 kB / 0.7683 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 5.291e-05/0.4575, allocations: 8 kB / 0.7683 GB, free: 1.352 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003389/0.4579, allocations: 199.6 kB / 0.7685 GB, free: 1.156 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002931/0.4582, allocations: 121 kB / 0.7686 GB, free: 1.039 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 6.559e-05/0.4582, allocations: 16 kB / 0.7686 GB, free: 1.023 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.241e-05/0.4583, allocations: 20 kB / 0.7687 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0001206/0.4584, allocations: 83.77 kB / 0.7687 GB, free: 0.9219 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0001489/0.4586, allocations: 127.3 kB / 0.7689 GB, free: 0.7969 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003785/0.459, allocations: 292 kB / 0.7691 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.459, allocations: 0 / 0.7691 GB, free: 0.5195 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.182e-06/0.459, allocations: 7.938 kB / 0.7692 GB, free: 0.5117 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.167e-05/0.459, allocations: 4 kB / 0.7692 GB, free: 0.5078 MB / 0.5294 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.001253/0.4603, allocations: 0.7461 MB / 0.7699 GB, free: 15.68 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.4603, allocations: 8.031 kB / 0.7699 GB, free: 15.67 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.81e-05/0.4604, allocations: 38.73 kB / 0.7699 GB, free: 15.62 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001031/0.4605, allocations: 28.8 kB / 0.77 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003674/0.4609, allocations: 271.7 kB / 0.7702 GB, free: 15.29 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.754e-05/0.4609, allocations: 16.12 kB / 0.7702 GB, free: 15.27 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.25e-05/0.461, allocations: 23.98 kB / 0.7703 GB, free: 15.25 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009097/0.4619, allocations: 197.5 kB / 0.7704 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.227e-06/0.4619, allocations: 0 / 0.7704 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.462, allocations: 4 kB / 0.7704 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.462, allocations: 0 / 0.7704 GB, free: 15.05 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006872/0.4627, allocations: 99.91 kB / 0.7705 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004253/0.4631, allocations: 321.3 kB / 0.7708 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009702/0.4641, allocations: 174.4 kB / 0.771 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006651/0.4648, allocations: 105.2 kB / 0.7711 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.297e-05/0.4648, allocations: 4 kB / 0.7711 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008779/0.4657, allocations: 215.1 kB / 0.7713 GB, free: 14.07 MB / 0.545 GB Notification: Performance of pre-optimization done (n=16): time 1.643e-06/0.4657, allocations: 0 / 0.7713 GB, free: 14.07 MB / 0.545 GB Notification: Performance of matching and sorting (n=16): time 0.002443/0.4681, allocations: 449.1 kB / 0.7718 GB, free: 13.63 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.755e-05/0.4682, allocations: 55.41 kB / 0.7718 GB, free: 13.56 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003704/0.4686, allocations: 295 kB / 0.7721 GB, free: 13.27 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 8.532e-05/0.4687, allocations: 33.7 kB / 0.7721 GB, free: 13.23 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 7.77e-05/0.4688, allocations: 89.14 kB / 0.7722 GB, free: 13.14 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 5.874e-05/0.4688, allocations: 51.61 kB / 0.7723 GB, free: 13.09 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000166/0.469, allocations: 93.58 kB / 0.7723 GB, free: 12.99 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4691, allocations: 326.8 kB / 0.7727 GB, free: 12.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002077/0.4694, allocations: 87.94 kB / 0.7727 GB, free: 12.58 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002267/0.4696, allocations: 130 kB / 0.7729 GB, free: 12.43 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000355/0.47, allocations: 245.1 kB / 0.7731 GB, free: 12.16 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.47, allocations: 0 / 0.7731 GB, free: 12.16 MB / 0.545 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006336/0.4706, allocations: 382.6 kB / 0.7735 GB, free: 11.77 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 6.504e-05/0.4707, allocations: 79.58 kB / 0.7735 GB, free: 11.68 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.4707, allocations: 4 kB / 0.7735 GB, free: 11.67 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.4707, allocations: 4 kB / 0.7735 GB, free: 11.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.4709, allocations: 27.89 kB / 0.7736 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.926e-06/0.4709, allocations: 4 kB / 0.7736 GB, free: 11.64 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004261/0.4713, allocations: 55.84 kB / 0.7736 GB, free: 11.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.796e-05/0.4714, allocations: 39.98 kB / 0.7737 GB, free: 11.54 MB / 0.545 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.0001721/0.4716, allocations: 173.7 kB / 0.7738 GB, free: 11.37 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.649e-05/0.4716, allocations: 23.86 kB / 0.7739 GB, free: 11.34 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.995e-05/0.4717, allocations: 34.23 kB / 0.7739 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.4717, allocations: 4 kB / 0.7739 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.4717, allocations: 0 / 0.7739 GB, free: 11.31 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.4717, allocations: 3.984 kB / 0.7739 GB, free: 11.3 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002028/0.4738, allocations: 0.7005 MB / 0.7746 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.596e-06/0.4738, allocations: 0 / 0.7746 GB, free: 10.55 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.811e-05/0.4738, allocations: 4 kB / 0.7746 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.4738, allocations: 0 / 0.7746 GB, free: 10.54 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.376e-05/0.4739, allocations: 19.97 kB / 0.7746 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.4739, allocations: 0 / 0.7746 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4739, allocations: 0 / 0.7746 GB, free: 10.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00155/0.4754, allocations: 455.4 kB / 0.775 GB, free: 10.06 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.4757, allocations: 164.8 kB / 0.7752 GB, free: 9.883 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.553e-05/0.4757, allocations: 15.98 kB / 0.7752 GB, free: 9.867 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004461/0.4762, allocations: 35.97 kB / 0.7752 GB, free: 9.832 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.4762, allocations: 11.92 kB / 0.7753 GB, free: 9.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.324e-05/0.4763, allocations: 39.98 kB / 0.7753 GB, free: 9.781 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001946/0.4765, allocations: 209.9 kB / 0.7755 GB, free: 9.578 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4765, allocations: 4 kB / 0.7755 GB, free: 9.574 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003455/0.4769, allocations: 47.98 kB / 0.7755 GB, free: 9.527 MB / 0.545 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.001918/0.4788, allocations: 0.9872 MB / 0.7765 GB, free: 8.512 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.001168/0.48, allocations: 385.5 kB / 0.7769 GB, free: 8.113 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.48, allocations: 0 / 0.7769 GB, free: 8.113 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0006984/0.4807, allocations: 112.3 kB / 0.777 GB, free: 8.004 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003529/0.4811, allocations: 31.08 kB / 0.777 GB, free: 7.977 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003497/0.4846, allocations: 2.371 MB / 0.7793 GB, free: 5.477 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003091/0.4849, allocations: 0.7396 MB / 0.78 GB, free: 4.711 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.281e-05/0.485, allocations: 17.08 kB / 0.7801 GB, free: 4.695 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.942e-05/0.485, allocations: 27.42 kB / 0.7801 GB, free: 4.668 MB / 0.545 GB Notification: Performance of SimCode: time 1.943e-06/0.485, allocations: 0 / 0.7801 GB, free: 4.668 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02364/0.5087, allocations: 4.833 MB / 0.7848 GB, free: 15.94 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.793/8.302, allocations: 11.47 kB / 0.7848 GB, free: 15.93 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)