Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.411/1.411, allocations: 285.5 MB / 292.8 MB, free: 10.44 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 173.3 kB / 361.1 MB, free: 7.102 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.182/1.182, allocations: 205.1 MB / 0.6195 GB, free: 10.27 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008362/0.0008362, allocations: 90.19 kB / 0.7325 GB, free: 44.22 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.233/0.2339, allocations: 121.4 MB / 0.8511 GB, free: 2.871 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5743/0.8082, allocations: 115.3 MB / 0.9637 GB, free: 78.32 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1618/0.9701, allocations: 139 MB / 1.099 GB, free: 1.059 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002126/0.9704, allocations: 72.52 kB / 1.1 GB, free: 0.9883 MB / 0.698 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.01371/0.9841, allocations: 4.701 MB / 1.104 GB, free: 12.31 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.9841, allocations: 8.5 kB / 1.104 GB, free: 12.3 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001118/0.9843, allocations: 27.72 kB / 1.104 GB, free: 12.27 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003273/0.9846, allocations: 251.2 kB / 1.104 GB, free: 11.99 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.459e-05/0.9846, allocations: 11.98 kB / 1.104 GB, free: 11.98 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.621e-05/0.9847, allocations: 16 kB / 1.104 GB, free: 11.96 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00012/0.9848, allocations: 39.98 kB / 1.104 GB, free: 11.92 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002095/0.985, allocations: 149 kB / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.662e-06/0.9851, allocations: 0 / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.353e-05/0.9851, allocations: 0 / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.142e-06/0.9851, allocations: 0 / 1.105 GB, free: 11.77 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003239/0.9854, allocations: 311.6 kB / 1.105 GB, free: 11.43 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001925/0.9856, allocations: 118.7 kB / 1.105 GB, free: 11.31 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.682e-05/0.9857, allocations: 52.59 kB / 1.105 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.204e-05/0.9858, allocations: 0 / 1.105 GB, free: 11.26 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003123/0.9861, allocations: 175.2 kB / 1.105 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=18): time 1.513e-06/0.9861, allocations: 0 / 1.105 GB, free: 11.07 MB / 0.7136 GB Notification: Performance of matching and sorting (n=18): time 0.0003541/0.9864, allocations: 169.2 kB / 1.105 GB, free: 10.9 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.126e-05/0.9865, allocations: 63.39 kB / 1.105 GB, free: 10.83 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.9867, allocations: 247.3 kB / 1.106 GB, free: 10.58 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 5.237e-05/0.9868, allocations: 33.7 kB / 1.106 GB, free: 10.54 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.731e-05/0.9869, allocations: 97.12 kB / 1.106 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 5.352e-05/0.9869, allocations: 39.52 kB / 1.106 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.11e-05/0.9869, allocations: 0 / 1.106 GB, free: 10.4 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001043/0.9871, allocations: 322.8 kB / 1.106 GB, free: 10.07 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002021/0.9873, allocations: 92.2 kB / 1.106 GB, free: 9.98 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.9875, allocations: 126.2 kB / 1.106 GB, free: 9.836 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001487/0.9876, allocations: 82.69 kB / 1.106 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.264e-06/0.9877, allocations: 0 / 1.106 GB, free: 9.754 MB / 0.7136 GB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0005243/0.9882, allocations: 288.4 kB / 1.107 GB, free: 9.469 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.497e-05/0.9882, allocations: 12.19 kB / 1.107 GB, free: 9.457 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.9882, allocations: 0 / 1.107 GB, free: 9.457 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.9882, allocations: 4 kB / 1.107 GB, free: 9.453 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001573/0.9884, allocations: 23.92 kB / 1.107 GB, free: 9.43 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.9884, allocations: 5.953 kB / 1.107 GB, free: 9.426 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003844/0.9888, allocations: 47.86 kB / 1.107 GB, free: 9.379 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.438e-05/0.9889, allocations: 59.97 kB / 1.107 GB, free: 9.32 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 26 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$whenCondition4,$whenCondition3,$PRE.calendarTime2016.year,calendarTime2016.year,$PRE.calendarTime2016.month,calendarTime2016.month,$PRE.calendarTime2016.day,calendarTime2016.day,$PRE.calendarTime2016.hour,calendarTime2016.hour,$PRE.calendarTime2016.weekDay,calendarTime2016.weekDay,$PRE.calendarTime2016.daysSinceEpoch,calendarTime2016.daysSinceEpoch,$PRE.calendarTime2016.yearIndex,calendarTime2016.yearIndex,$PRE.calendarTime2016.epochLastMonth,calendarTime2016.epochLastMonth) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001241/0.989, allocations: 127.9 kB / 1.107 GB, free: 9.188 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.721e-05/0.9891, allocations: 25.53 kB / 1.107 GB, free: 9.164 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.724e-05/0.9891, allocations: 29.97 kB / 1.107 GB, free: 9.129 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.9891, allocations: 0 / 1.107 GB, free: 9.129 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.9892, allocations: 4 kB / 1.107 GB, free: 9.125 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.9892, allocations: 7.984 kB / 1.107 GB, free: 9.117 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005986/0.9898, allocations: 495.5 kB / 1.108 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.9898, allocations: 0 / 1.108 GB, free: 8.59 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.293e-05/0.9898, allocations: 7.938 kB / 1.108 GB, free: 8.582 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.9898, allocations: 0 / 1.108 GB, free: 8.582 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.9899, allocations: 11.98 kB / 1.108 GB, free: 8.57 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.9899, allocations: 3.984 kB / 1.108 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.9899, allocations: 0 / 1.108 GB, free: 8.566 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002937/0.9902, allocations: 270.8 kB / 1.108 GB, free: 8.289 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003776/0.9906, allocations: 0.6336 MB / 1.108 GB, free: 7.637 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.9908, allocations: 160.6 kB / 1.109 GB, free: 7.461 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.537e-05/0.9908, allocations: 13.2 kB / 1.109 GB, free: 7.449 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001854/0.991, allocations: 12 kB / 1.109 GB, free: 7.438 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.48e-05/0.9911, allocations: 11.97 kB / 1.109 GB, free: 7.426 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-05/0.9911, allocations: 31.98 kB / 1.109 GB, free: 7.395 MB / 0.7136 GB Notification: Performance of sort global known variables: time 0.0001609/0.9913, allocations: 195.1 kB / 1.109 GB, free: 7.207 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0008718/0.9922, allocations: 47.98 kB / 1.109 GB, free: 7.16 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 (calendarTime2016.hourSampleTrigger,calendarTime2016.daySampleTrigger,$whenCondition4,$whenCondition3,$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.firstHourSampling,calendarTime2016.hour,calendarTime2016.yearIndex,calendarTime2016.epochLastMonth,calendarTime2016.month,calendarTime2016.year) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001411/0.9923, allocations: 116.8 kB / 1.109 GB, free: 7.039 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0004412/0.9928, allocations: 266.4 kB / 1.109 GB, free: 6.77 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.9928, allocations: 4.125 kB / 1.109 GB, free: 6.766 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0001073/0.9929, allocations: 67.92 kB / 1.109 GB, free: 6.699 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.9931, allocations: 22.34 kB / 1.109 GB, free: 6.68 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005577/0.9937, allocations: 261.7 kB / 1.11 GB, free: 6.406 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004718/0.9942, allocations: 0.8062 MB / 1.11 GB, free: 5.574 MB / 0.7136 GB Notification: Performance of SimCode: time 1.643e-06/0.9942, allocations: 4 kB / 1.11 GB, free: 5.57 MB / 0.7136 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_maint.8.0.x_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1)