Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Time.Examples.CalendarTime,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.923/1.923, allocations: 387.2 MB / 394.5 MB, free: 13.64 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001127/0.001127, allocations: 188.4 kB / 487 MB, free: 5.359 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.3 MB / 0.7819 GB, free: 1.359 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009357/0.0009357, allocations: 103.1 kB / 0.9213 GB, free: 2.613 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4677/0.4687, allocations: 148.5 MB / 1.066 GB, free: 168.1 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2095/0.6782, allocations: 142.3 MB / 1.205 GB, free: 26.14 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5765/1.255, allocations: 151.1 MB / 1.353 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002338/1.255, allocations: 69.66 kB / 1.353 GB, free: 15.83 MB / 0.8073 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.01513/1.27, allocations: 4.889 MB / 1.358 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/1.27, allocations: 8.594 kB / 1.358 GB, free: 14.97 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001034/1.27, allocations: 35.03 kB / 1.358 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003313/1.271, allocations: 250.8 kB / 1.358 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/1.271, allocations: 13.19 kB / 1.358 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.51e-05/1.271, allocations: 15.12 kB / 1.358 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001505/1.271, allocations: 41.92 kB / 1.358 GB, free: 14.74 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/1.271, allocations: 150.4 kB / 1.358 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/1.271, allocations: 0 / 1.358 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.03e-05/1.271, allocations: 1.188 kB / 1.358 GB, free: 14.7 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.067e-05/1.271, allocations: 19.2 kB / 1.358 GB, free: 14.69 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004326/1.272, allocations: 297.2 kB / 1.359 GB, free: 14.53 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/1.272, allocations: 93.86 kB / 1.359 GB, free: 14.51 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001104/1.272, allocations: 55.8 kB / 1.359 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.775e-05/1.272, allocations: 2.766 kB / 1.359 GB, free: 14.5 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002318/1.272, allocations: 157.7 kB / 1.359 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=16): time 1.483e-06/1.272, allocations: 0 / 1.359 GB, free: 14.45 MB / 0.8073 GB Notification: Performance of matching and sorting (n=16): time 0.0004257/1.273, allocations: 183.2 kB / 1.359 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.825e-05/1.273, allocations: 68.42 kB / 1.359 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002447/1.273, allocations: 248.6 kB / 1.359 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 5.209e-05/1.273, allocations: 32.47 kB / 1.359 GB, free: 14.19 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 5.595e-05/1.273, allocations: 90.47 kB / 1.359 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/1.273, allocations: 37.19 kB / 1.359 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.328e-05/1.273, allocations: 7.312 kB / 1.359 GB, free: 14.09 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.124e-05/1.273, allocations: 321 kB / 1.36 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/1.274, allocations: 74.72 kB / 1.36 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001946/1.274, allocations: 124.5 kB / 1.36 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/1.274, allocations: 78.16 kB / 1.36 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/1.274, allocations: 0 / 1.36 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0005502/1.274, allocations: 257.9 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.968e-05/1.274, allocations: 7.781 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/1.274, allocations: 1.969 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.773e-05/1.275, allocations: 3.438 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001768/1.275, allocations: 31.39 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/1.275, allocations: 3.219 kB / 1.36 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003678/1.275, allocations: 43.34 kB / 1.36 GB, free: 13.64 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001136/1.275, allocations: 43.28 kB / 1.36 GB, free: 13.64 MB / 0.8073 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 ($PRE.calendarTime2016.firstHourSampling,calendarTime2016.firstHourSampling,$PRE.calendarTime2016.firstDaySampling,calendarTime2016.firstDaySampling,$whenCondition1,calendarTime2016.daySampleTrigger,$whenCondition2,calendarTime2016.hourSampleTrigger,$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 (26): * Single equations (assignments): 24 * 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.0001261/1.275, allocations: 131.2 kB / 1.361 GB, free: 13.52 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.261e-05/1.275, allocations: 24.8 kB / 1.361 GB, free: 13.51 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.012e-05/1.276, allocations: 27.52 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/1.276, allocations: 2.734 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/1.276, allocations: 3.906 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/1.276, allocations: 1.391 kB / 1.361 GB, free: 13.5 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006845/1.276, allocations: 0.4987 MB / 1.361 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/1.276, allocations: 4 kB / 1.361 GB, free: 13.16 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.894e-05/1.276, allocations: 5.781 kB / 1.361 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/1.276, allocations: 4 kB / 1.361 GB, free: 13.15 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.992e-05/1.276, allocations: 14.75 kB / 1.361 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/1.276, allocations: 0 / 1.361 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.444e-06/1.276, allocations: 0 / 1.361 GB, free: 13.14 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003023/1.277, allocations: 280.9 kB / 1.361 GB, free: 12.91 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003378/1.277, allocations: 0.6478 MB / 1.362 GB, free: 12.3 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001745/1.277, allocations: 159.2 kB / 1.362 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.663e-05/1.277, allocations: 13.02 kB / 1.362 GB, free: 12.16 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004329/1.278, allocations: 39.69 kB / 1.362 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.68e-05/1.278, allocations: 7.281 kB / 1.362 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.704e-05/1.278, allocations: 46.5 kB / 1.362 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001449/1.278, allocations: 196.8 kB / 1.362 GB, free: 11.95 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0009344/1.279, allocations: 49.77 kB / 1.362 GB, free: 11.9 MB / 0.8073 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) * 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 (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.0001175/1.279, allocations: 135.5 kB / 1.363 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.0003951/1.279, allocations: 250.1 kB / 1.363 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/1.279, allocations: 0 / 1.363 GB, free: 11.58 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 9.176e-05/1.28, allocations: 67.39 kB / 1.363 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002468/1.28, allocations: 15.41 kB / 1.363 GB, free: 11.53 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005321/1.28, allocations: 279.4 kB / 1.363 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002444/1.281, allocations: 0.764 MB / 1.364 GB, free: 10.54 MB / 0.8073 GB Notification: Performance of SimCode: time 2.51e-07/1.281, allocations: 0 / 1.364 GB, free: 10.54 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; mkfifo Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe >> ../files/Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat --tempDir=temp_Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime_fmu --startTime=0 --stopTime=1e+08 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Utilities_Time_Examples_CalendarTime.fmu > Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Utilities.Time.Examples.CalendarTime_res.mat does not exist to compare? outputFormat=mat