Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",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.931/1.931, allocations: 390.4 MB / 397.7 MB, free: 10.7 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.001251/0.001251, allocations: 190.5 kB / 490.8 MB, free: 11.24 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.291/1.291, allocations: 221.4 MB / 0.7863 GB, free: 13.61 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.0009572/0.0009572, allocations: 91.77 kB / 0.9264 GB, free: 4.586 MB / 0.6667 GB Notification: Performance of FrontEnd - loaded program: time 0.3112/0.3122, allocations: 149.1 MB / 1.072 GB, free: 15.53 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7628/1.075, allocations: 143 MB / 1.212 GB, free: 156 MB / 0.8855 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1833/1.258, allocations: 156.5 MB / 1.365 GB, free: 35.2 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003029/1.259, allocations: 88.61 kB / 1.365 GB, free: 35.11 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.01644/1.275, allocations: 7.155 MB / 1.372 GB, free: 28 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/1.275, allocations: 12 kB / 1.372 GB, free: 27.98 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001237/1.275, allocations: 48.66 kB / 1.372 GB, free: 27.94 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005733/1.276, allocations: 375.3 kB / 1.372 GB, free: 27.53 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.142e-05/1.276, allocations: 12.91 kB / 1.372 GB, free: 27.52 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.751e-05/1.276, allocations: 16 kB / 1.372 GB, free: 27.5 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003799/1.276, allocations: 194.3 kB / 1.372 GB, free: 27.31 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004423/1.277, allocations: 295.2 kB / 1.372 GB, free: 27 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/1.277, allocations: 4.719 kB / 1.372 GB, free: 26.99 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.359e-05/1.277, allocations: 4 kB / 1.372 GB, free: 26.99 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/1.277, allocations: 4.531 kB / 1.373 GB, free: 26.98 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001535/1.279, allocations: 1.181 MB / 1.374 GB, free: 25.75 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002932/1.279, allocations: 152.6 kB / 1.374 GB, free: 25.6 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001382/1.279, allocations: 97.3 kB / 1.374 GB, free: 25.5 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.177e-05/1.279, allocations: 1.75 kB / 1.374 GB, free: 25.5 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.692e-05/1.279, allocations: 34.75 kB / 1.374 GB, free: 25.46 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=22): time 1.964e-06/1.279, allocations: 0 / 1.374 GB, free: 25.46 MB / 0.8855 GB Notification: Performance of matching and sorting (n=22): time 0.0003717/1.279, allocations: 212.2 kB / 1.374 GB, free: 25.25 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/1.28, allocations: 162.7 kB / 1.374 GB, free: 25.05 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002355/1.28, allocations: 259.1 kB / 1.375 GB, free: 24.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.507e-05/1.28, allocations: 29.7 kB / 1.375 GB, free: 24.77 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.153e-05/1.28, allocations: 183.9 kB / 1.375 GB, free: 24.59 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 4.451e-05/1.28, allocations: 75.36 kB / 1.375 GB, free: 24.51 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.077e-05/1.28, allocations: 0.625 kB / 1.375 GB, free: 24.51 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.509e-05/1.28, allocations: 343.5 kB / 1.375 GB, free: 24.17 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/1.28, allocations: 68 kB / 1.375 GB, free: 24.1 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/1.28, allocations: 134.7 kB / 1.375 GB, free: 23.95 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001203/1.28, allocations: 84.53 kB / 1.375 GB, free: 23.86 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.28, allocations: 0 / 1.375 GB, free: 23.86 MB / 0.8855 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003443/1.281, allocations: 234.6 kB / 1.376 GB, free: 23.63 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/1.281, allocations: 4 kB / 1.376 GB, free: 23.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/1.281, allocations: 4 kB / 1.376 GB, free: 23.62 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.579e-05/1.281, allocations: 0 / 1.376 GB, free: 23.62 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000241/1.281, allocations: 60.03 kB / 1.376 GB, free: 23.56 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.945e-06/1.281, allocations: 4 kB / 1.376 GB, free: 23.56 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002151/1.281, allocations: 39.83 kB / 1.376 GB, free: 23.52 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.449e-05/1.281, allocations: 14.48 kB / 1.376 GB, free: 23.51 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 ($PRE.con.hys.y,con.hys.y,con.PID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 29 * 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 8.75e-05/1.281, allocations: 116.1 kB / 1.376 GB, free: 23.39 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.195e-05/1.282, allocations: 31.62 kB / 1.376 GB, free: 23.36 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/1.282, allocations: 35.2 kB / 1.376 GB, free: 23.32 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.42e-06/1.282, allocations: 7.984 kB / 1.376 GB, free: 23.32 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/1.282, allocations: 0 / 1.376 GB, free: 23.32 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/1.282, allocations: 4 kB / 1.376 GB, free: 23.31 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003455/1.282, allocations: 365.8 kB / 1.376 GB, free: 22.92 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.542e-06/1.282, allocations: 0 / 1.376 GB, free: 22.92 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/1.282, allocations: 51.91 kB / 1.376 GB, free: 22.87 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/1.282, allocations: 3.906 kB / 1.376 GB, free: 22.86 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.975e-05/1.282, allocations: 0 / 1.376 GB, free: 22.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/1.282, allocations: 0 / 1.376 GB, free: 22.86 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/1.282, allocations: 4 kB / 1.376 GB, free: 22.86 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004564/1.283, allocations: 406.8 kB / 1.377 GB, free: 22.45 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006013/1.283, allocations: 0.8705 MB / 1.378 GB, free: 21.56 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001082/1.284, allocations: 132.6 kB / 1.378 GB, free: 21.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.381e-05/1.284, allocations: 4 kB / 1.378 GB, free: 21.41 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002292/1.284, allocations: 32.09 kB / 1.378 GB, free: 21.38 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.633e-05/1.284, allocations: 15.97 kB / 1.378 GB, free: 21.36 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.671e-05/1.284, allocations: 8.344 kB / 1.378 GB, free: 21.36 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.00017/1.284, allocations: 216.5 kB / 1.378 GB, free: 21.14 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.000934/1.285, allocations: 71.69 kB / 1.378 GB, free: 21.07 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (con.PID.I.y,cap.T) * Number of discrete variables: 1 (con.hys.y) * Number of discrete states: 1 (con.hys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 22 * 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 0.00013/1.285, allocations: 99.25 kB / 1.378 GB, free: 20.96 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003022/1.285, allocations: 179.9 kB / 1.378 GB, free: 20.79 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/1.285, allocations: 0 / 1.378 GB, free: 20.79 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001372/1.286, allocations: 96.3 kB / 1.378 GB, free: 20.7 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004481/1.286, allocations: 61.33 kB / 1.378 GB, free: 20.63 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001086/1.287, allocations: 0.4958 MB / 1.379 GB, free: 20.11 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003339/1.288, allocations: 0.8375 MB / 1.38 GB, free: 19.24 MB / 0.8855 GB Notification: Performance of SimCode: time 2.3e-07/1.288, allocations: 0 / 1.38 GB, free: 19.24 MB / 0.8855 GB (rm -f Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat --tempDir=temp_Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat does not exist to compare? outputFormat=mat