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.001089/0.001089, allocations: 108 kB / 15.6 MB, free: 132 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.001159/0.001159, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.298/1.298, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002149/0.002149, allocations: 283.1 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9277/0.9277, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001733/0.001734, allocations: 93.77 kB / 0.5953 GB, free: 27.97 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.164, allocations: 86.98 MB / 0.6803 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Time.Examples.CalendarTime): time 0.002864/0.1669, allocations: 1.471 MB / 0.6817 GB, free: 15.12 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008572/0.1678, allocations: 421.8 kB / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.456e-05/0.1678, allocations: 0 / 0.6821 GB, free: 14.7 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 8.55e-05/0.1679, allocations: 15.8 kB / 0.6821 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 9.478e-05/0.168, allocations: 20.23 kB / 0.6822 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006744/0.1687, allocations: 250.8 kB / 0.6824 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003505/0.1691, allocations: 332.3 kB / 0.6827 GB, free: 14.1 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.939e-05/0.1691, allocations: 12.25 kB / 0.6827 GB, free: 14.09 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002478/0.1694, allocations: 192.2 kB / 0.6829 GB, free: 13.9 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002151/0.1696, allocations: 112.6 kB / 0.683 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.76e-05/0.1697, allocations: 21.16 kB / 0.683 GB, free: 13.77 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.181e-05/0.1698, allocations: 20 kB / 0.6831 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.876e-05/0.1699, allocations: 75.78 kB / 0.6831 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.17, allocations: 132.3 kB / 0.6833 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002792/0.1703, allocations: 287.1 kB / 0.6835 GB, free: 13.27 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.1703, allocations: 7.938 kB / 0.6835 GB, free: 13.26 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.1703, allocations: 3.938 kB / 0.6835 GB, free: 13.26 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.791e-06/0.1703, allocations: 0 / 0.6835 GB, free: 13.26 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.0009881/0.1713, allocations: 0.7385 MB / 0.6843 GB, free: 12.43 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.331e-05/0.1714, allocations: 12.03 kB / 0.6843 GB, free: 12.42 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.941e-05/0.1714, allocations: 34.75 kB / 0.6843 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.027e-05/0.1715, allocations: 40.55 kB / 0.6843 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002755/0.1718, allocations: 259.6 kB / 0.6846 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.755e-05/0.1719, allocations: 20.12 kB / 0.6846 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.349e-05/0.1719, allocations: 20 kB / 0.6846 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009128/0.1728, allocations: 201.4 kB / 0.6848 GB, free: 11.81 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.017e-06/0.1728, allocations: 3.984 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.295e-05/0.1729, allocations: 4 kB / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1729, allocations: 0 / 0.6848 GB, free: 11.8 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007536/0.1737, allocations: 95.92 kB / 0.6849 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00033/0.174, allocations: 325.3 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.175, allocations: 170.4 kB / 0.6854 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007251/0.1757, allocations: 112.8 kB / 0.6855 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.072e-05/0.1758, allocations: 4 kB / 0.6855 GB, free: 11.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008856/0.1767, allocations: 221 kB / 0.6857 GB, free: 10.82 MB / 494.1 MB Notification: Performance of pre-optimization done (n=16): time 1.633e-06/0.1767, allocations: 0 / 0.6857 GB, free: 10.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=16): time 0.002395/0.1791, allocations: 445 kB / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.506e-05/0.1791, allocations: 55.41 kB / 0.6862 GB, free: 10.31 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.1794, allocations: 291 kB / 0.6865 GB, free: 10.02 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/0.1794, allocations: 45.62 kB / 0.6865 GB, free: 9.969 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.835e-05/0.1795, allocations: 89.05 kB / 0.6866 GB, free: 9.879 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.686e-05/0.1795, allocations: 39.55 kB / 0.6866 GB, free: 9.84 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001438/0.1797, allocations: 97.47 kB / 0.6867 GB, free: 9.738 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1798, allocations: 330.8 kB / 0.687 GB, free: 9.406 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001853/0.18, allocations: 83.88 kB / 0.6871 GB, free: 9.324 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002108/0.1802, allocations: 143.1 kB / 0.6873 GB, free: 9.164 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.1805, allocations: 242.8 kB / 0.6875 GB, free: 8.895 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1805, allocations: 0 / 0.6875 GB, free: 8.895 MB / 494.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0006013/0.1812, allocations: 402.6 kB / 0.6879 GB, free: 8.484 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.858e-05/0.1812, allocations: 71.39 kB / 0.6879 GB, free: 8.402 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.049e-06/0.1812, allocations: 0 / 0.6879 GB, free: 8.402 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.312e-05/0.1812, allocations: 4 kB / 0.6879 GB, free: 8.398 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.1814, allocations: 27.91 kB / 0.688 GB, free: 8.371 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.816e-06/0.1814, allocations: 7.984 kB / 0.688 GB, free: 8.363 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004776/0.1819, allocations: 51.8 kB / 0.688 GB, free: 8.312 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.771e-05/0.182, allocations: 51.95 kB / 0.6881 GB, free: 8.262 MB / 494.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.0001654/0.1821, allocations: 170.3 kB / 0.6882 GB, free: 8.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.321e-05/0.1822, allocations: 23.72 kB / 0.6883 GB, free: 8.066 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.715e-05/0.1822, allocations: 30.3 kB / 0.6883 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.1822, allocations: 0 / 0.6883 GB, free: 8.031 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.1823, allocations: 3.984 kB / 0.6883 GB, free: 8.027 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1823, allocations: 4 kB / 0.6883 GB, free: 8.023 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001978/0.1842, allocations: 0.6878 MB / 0.689 GB, free: 7.281 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.1843, allocations: 3.938 kB / 0.689 GB, free: 7.277 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-05/0.1843, allocations: 11.98 kB / 0.689 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.964e-06/0.1843, allocations: 0 / 0.689 GB, free: 7.266 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.1843, allocations: 11.98 kB / 0.689 GB, free: 7.254 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1844, allocations: 8 kB / 0.689 GB, free: 7.246 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1844, allocations: 0 / 0.689 GB, free: 7.246 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.186, allocations: 454.9 kB / 0.6894 GB, free: 6.785 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001547/0.1861, allocations: 156.7 kB / 0.6896 GB, free: 6.613 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.205e-05/0.1862, allocations: 11.98 kB / 0.6896 GB, free: 6.602 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004424/0.1867, allocations: 27.97 kB / 0.6896 GB, free: 6.574 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.915e-05/0.1867, allocations: 15.92 kB / 0.6896 GB, free: 6.559 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.758e-05/0.1867, allocations: 43.97 kB / 0.6897 GB, free: 6.516 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001682/0.1869, allocations: 205.9 kB / 0.6899 GB, free: 6.316 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1869, allocations: 3.938 kB / 0.6899 GB, free: 6.312 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002996/0.1872, allocations: 55.98 kB / 0.6899 GB, free: 6.258 MB / 494.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.001886/0.1891, allocations: 0.9891 MB / 0.6909 GB, free: 5.242 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001103/0.1902, allocations: 386.5 kB / 0.6913 GB, free: 4.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.1903, allocations: 0 / 0.6913 GB, free: 4.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000728/0.191, allocations: 116.2 kB / 0.6914 GB, free: 4.727 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.1913, allocations: 35.8 kB / 0.6914 GB, free: 4.695 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003208/0.1945, allocations: 2.358 MB / 0.6937 GB, free: 2.207 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003321/0.1949, allocations: 0.7364 MB / 0.6944 GB, free: 1.445 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.74e-05/0.1949, allocations: 17.08 kB / 0.6945 GB, free: 1.43 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.479e-05/0.195, allocations: 23.42 kB / 0.6945 GB, free: 1.406 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.195, allocations: 0 / 0.6945 GB, free: 1.406 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02066/0.2157, allocations: 4.824 MB / 0.6992 GB, free: 12.67 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.05/7.266, allocations: 5.047 kB / 0.6992 GB, free: 12.67 MB / 0.4981 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)