Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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 10.0.0-master/package.mo): time 1.763/1.763, allocations: 390.4 MB / 397.7 MB, free: 10.68 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000953/0.000953, allocations: 181 kB / 490.8 MB, free: 11.22 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.094/1.094, allocations: 221.4 MB / 0.7863 GB, free: 13.6 MB / 0.5886 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008546/0.000855, allocations: 97.08 kB / 0.9264 GB, free: 4.57 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.2302/0.231, allocations: 149.2 MB / 1.072 GB, free: 15.48 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4959/0.727, allocations: 143 MB / 1.212 GB, free: 155.9 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.133/0.86, allocations: 150.7 MB / 1.359 GB, free: 40.95 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002061/0.8602, allocations: 95.91 kB / 1.359 GB, free: 40.86 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.003865/0.8641, allocations: 1.614 MB / 1.36 GB, free: 39.24 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 2.919e-05/0.8642, allocations: 8 kB / 1.36 GB, free: 39.23 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.254e-05/0.8642, allocations: 7.906 kB / 1.36 GB, free: 39.23 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.031e-05/0.8643, allocations: 183.5 kB / 1.361 GB, free: 39.01 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.8643, allocations: 0.5938 kB / 1.361 GB, free: 39.01 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.8643, allocations: 4 kB / 1.361 GB, free: 39 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.641e-05/0.8644, allocations: 28.56 kB / 1.361 GB, free: 38.98 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000102/0.8645, allocations: 72.48 kB / 1.361 GB, free: 38.89 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.8645, allocations: 3.938 kB / 1.361 GB, free: 38.89 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.8646, allocations: 4.797 kB / 1.361 GB, free: 38.89 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.8646, allocations: 7.906 kB / 1.361 GB, free: 38.88 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003399/0.8649, allocations: 293.4 kB / 1.361 GB, free: 38.56 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 6.778e-05/0.865, allocations: 39.73 kB / 1.361 GB, free: 38.51 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.447e-05/0.865, allocations: 28.91 kB / 1.361 GB, free: 38.48 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.8651, allocations: 0.625 kB / 1.361 GB, free: 38.48 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.343e-05/0.8651, allocations: 35.12 kB / 1.361 GB, free: 38.44 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=4): time 1.543e-06/0.8651, allocations: 4.734 kB / 1.361 GB, free: 38.43 MB / 0.8855 GB Notification: Performance of matching and sorting (n=4): time 0.000153/0.8652, allocations: 61.59 kB / 1.361 GB, free: 38.37 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.182e-05/0.8653, allocations: 77.83 kB / 1.361 GB, free: 38.27 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.723e-05/0.8653, allocations: 121.5 kB / 1.361 GB, free: 38.15 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.141e-05/0.8653, allocations: 25.7 kB / 1.361 GB, free: 38.12 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 2.321e-05/0.8654, allocations: 100.2 kB / 1.362 GB, free: 38.02 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.474e-05/0.8654, allocations: 7.812 kB / 1.362 GB, free: 38.01 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.599e-06/0.8654, allocations: 1.688 kB / 1.362 GB, free: 38.01 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 3.472e-05/0.8654, allocations: 318.8 kB / 1.362 GB, free: 37.69 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.044e-05/0.8655, allocations: 19.98 kB / 1.362 GB, free: 37.67 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.148e-05/0.8655, allocations: 27.75 kB / 1.362 GB, free: 37.64 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.809e-05/0.8656, allocations: 16.62 kB / 1.362 GB, free: 37.62 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.8656, allocations: 1.156 kB / 1.362 GB, free: 37.62 MB / 0.8855 GB Notification: Performance of matching and sorting (n=5) (initialization): time 9.458e-05/0.8657, allocations: 65.59 kB / 1.362 GB, free: 37.55 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.125e-06/0.8657, allocations: 4 kB / 1.362 GB, free: 37.55 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.166e-06/0.8657, allocations: 0.625 kB / 1.362 GB, free: 37.55 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.947e-06/0.8657, allocations: 4 kB / 1.362 GB, free: 37.55 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.8658, allocations: 15.14 kB / 1.362 GB, free: 37.54 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.296e-06/0.8658, allocations: 0 / 1.362 GB, free: 37.54 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.351e-05/0.8659, allocations: 18.17 kB / 1.362 GB, free: 37.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.905e-06/0.8659, allocations: 0.5938 kB / 1.362 GB, free: 37.52 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * 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 4.248e-05/0.866, allocations: 110 kB / 1.362 GB, free: 37.41 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.884e-05/0.866, allocations: 7.906 kB / 1.362 GB, free: 37.4 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.697e-05/0.866, allocations: 12.98 kB / 1.362 GB, free: 37.38 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.866, allocations: 0 / 1.362 GB, free: 37.38 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.775e-06/0.866, allocations: 0 / 1.362 GB, free: 37.38 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.8661, allocations: 1 kB / 1.362 GB, free: 37.38 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001079/0.8662, allocations: 174.1 kB / 1.362 GB, free: 37.18 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.8662, allocations: 3.906 kB / 1.362 GB, free: 37.17 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.35e-05/0.8662, allocations: 15.11 kB / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.8663, allocations: 0.5625 kB / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.235e-06/0.8663, allocations: 1.5 kB / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.8663, allocations: 0 / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.8663, allocations: 3.938 kB / 1.362 GB, free: 37.16 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 9.962e-05/0.8664, allocations: 160.9 kB / 1.362 GB, free: 36.98 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0001203/0.8665, allocations: 0.5295 MB / 1.363 GB, free: 36.44 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 1.889e-05/0.8665, allocations: 85 kB / 1.363 GB, free: 36.34 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.145e-05/0.8666, allocations: 4 kB / 1.363 GB, free: 36.33 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001156/0.8667, allocations: 21.39 kB / 1.363 GB, free: 36.32 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.625e-05/0.8667, allocations: 8.484 kB / 1.363 GB, free: 36.31 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.8667, allocations: 4 kB / 1.363 GB, free: 36.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.125e-05/0.8668, allocations: 99.83 kB / 1.363 GB, free: 36.21 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0007383/0.8675, allocations: 8.656 kB / 1.363 GB, free: 36.2 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 6.993e-05/0.8676, allocations: 100.3 kB / 1.363 GB, free: 36.09 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 9.228e-05/0.8677, allocations: 32.53 kB / 1.363 GB, free: 36.06 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.132e-06/0.8677, allocations: 0 / 1.363 GB, free: 36.06 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 3.352e-05/0.8677, allocations: 20.67 kB / 1.363 GB, free: 36.04 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001457/0.8679, allocations: 13.19 kB / 1.363 GB, free: 36.03 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002359/0.8681, allocations: 91.67 kB / 1.363 GB, free: 35.91 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.8683, allocations: 0.708 MB / 1.364 GB, free: 35.18 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/0.8683, allocations: 1.062 kB / 1.364 GB, free: 35.18 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; mkfifo Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe ; head -c 1048576 < Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe >> ../files/Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat --tempDir=temp_Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch.fmu > Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch_res.mat does not exist to compare? outputFormat=mat