Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.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.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 1.957/1.957, allocations: 387.2 MB / 394.5 MB, free: 13.69 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.0009777/0.0009777, allocations: 172.5 kB / 487 MB, free: 5.398 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.441/1.441, allocations: 221.4 MB / 0.7819 GB, free: 1.391 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.0009585/0.0009584, allocations: 103.1 kB / 0.9213 GB, free: 2.652 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.5341/0.5351, allocations: 148.5 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.7636, allocations: 142.3 MB / 1.205 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5414/1.305, allocations: 155.7 MB / 1.357 GB, free: 15.8 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003049/1.305, allocations: 88.53 kB / 1.357 GB, free: 15.8 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.01992/1.325, allocations: 7.145 MB / 1.364 GB, free: 12.35 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/1.325, allocations: 8 kB / 1.364 GB, free: 12.34 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/1.326, allocations: 52.97 kB / 1.364 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005195/1.326, allocations: 385 kB / 1.365 GB, free: 11.94 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/1.326, allocations: 8 kB / 1.365 GB, free: 11.93 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.137e-05/1.326, allocations: 16 kB / 1.365 GB, free: 11.92 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003656/1.327, allocations: 186.7 kB / 1.365 GB, free: 11.81 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004029/1.327, allocations: 305.2 kB / 1.365 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.465e-05/1.327, allocations: 3.938 kB / 1.365 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.965e-05/1.327, allocations: 0 / 1.365 GB, free: 11.55 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/1.327, allocations: 8 kB / 1.365 GB, free: 11.54 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001318/1.328, allocations: 1.172 MB / 1.367 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002662/1.329, allocations: 155.9 kB / 1.367 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001328/1.329, allocations: 98.28 kB / 1.367 GB, free: 10.36 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/1.329, allocations: 9.391 kB / 1.367 GB, free: 10.35 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.444e-05/1.329, allocations: 34.66 kB / 1.367 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=22): time 1.443e-06/1.329, allocations: 0 / 1.367 GB, free: 10.3 MB / 0.8073 GB Notification: Performance of matching and sorting (n=22): time 0.000335/1.329, allocations: 196.2 kB / 1.367 GB, free: 10.16 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/1.329, allocations: 169.2 kB / 1.367 GB, free: 9.961 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002284/1.329, allocations: 269.5 kB / 1.367 GB, free: 9.746 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/1.329, allocations: 28.89 kB / 1.367 GB, free: 9.715 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 7.11e-05/1.33, allocations: 176.3 kB / 1.368 GB, free: 9.551 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 4.114e-05/1.33, allocations: 77.78 kB / 1.368 GB, free: 9.484 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/1.33, allocations: 0 / 1.368 GB, free: 9.484 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 5.663e-05/1.33, allocations: 337.8 kB / 1.368 GB, free: 9.156 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001022/1.33, allocations: 66.97 kB / 1.368 GB, free: 9.121 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001287/1.33, allocations: 140 kB / 1.368 GB, free: 8.996 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001125/1.33, allocations: 81.72 kB / 1.368 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.33, allocations: 3.906 kB / 1.368 GB, free: 8.941 MB / 0.8073 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003115/1.33, allocations: 235.7 kB / 1.368 GB, free: 8.762 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.277e-05/1.33, allocations: 4 kB / 1.369 GB, free: 8.758 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.84e-06/1.33, allocations: 4.125 kB / 1.369 GB, free: 8.754 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/1.33, allocations: 4 kB / 1.369 GB, free: 8.75 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/1.331, allocations: 59.66 kB / 1.369 GB, free: 8.695 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/1.331, allocations: 0 / 1.369 GB, free: 8.695 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002161/1.331, allocations: 43.81 kB / 1.369 GB, free: 8.652 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/1.331, allocations: 8 kB / 1.369 GB, free: 8.645 MB / 0.8073 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 7.755e-05/1.331, allocations: 119 kB / 1.369 GB, free: 8.527 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.498e-05/1.331, allocations: 31.62 kB / 1.369 GB, free: 8.496 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.709e-05/1.331, allocations: 40.47 kB / 1.369 GB, free: 8.469 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/1.331, allocations: 0 / 1.369 GB, free: 8.469 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.109e-06/1.331, allocations: 0 / 1.369 GB, free: 8.469 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/1.331, allocations: 3.984 kB / 1.369 GB, free: 8.465 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003036/1.331, allocations: 371.9 kB / 1.369 GB, free: 8.152 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/1.331, allocations: 4 kB / 1.369 GB, free: 8.148 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/1.332, allocations: 51.03 kB / 1.369 GB, free: 8.102 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/1.332, allocations: 0 / 1.369 GB, free: 8.102 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.925e-05/1.332, allocations: 8 kB / 1.369 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/1.332, allocations: 0 / 1.369 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.332, allocations: 0 / 1.369 GB, free: 8.094 MB / 0.8073 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004251/1.332, allocations: 405.2 kB / 1.37 GB, free: 7.785 MB / 0.8073 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005227/1.333, allocations: 0.8719 MB / 1.37 GB, free: 7.047 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000101/1.333, allocations: 134.9 kB / 1.371 GB, free: 6.914 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.978e-05/1.333, allocations: 3.984 kB / 1.371 GB, free: 6.91 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002255/1.333, allocations: 27.98 kB / 1.371 GB, free: 6.883 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.245e-05/1.333, allocations: 19.78 kB / 1.371 GB, free: 6.867 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.387e-05/1.333, allocations: 4 kB / 1.371 GB, free: 6.863 MB / 0.8073 GB Notification: Performance of sort global known variables: time 0.0001538/1.333, allocations: 210.1 kB / 1.371 GB, free: 6.707 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0008491/1.334, allocations: 71.69 kB / 1.371 GB, free: 6.637 MB / 0.8073 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.0001127/1.334, allocations: 100.4 kB / 1.371 GB, free: 6.527 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.000268/1.335, allocations: 181.1 kB / 1.371 GB, free: 6.41 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/1.335, allocations: 4.25 kB / 1.371 GB, free: 6.406 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001175/1.335, allocations: 94.38 kB / 1.371 GB, free: 6.348 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/1.335, allocations: 63.77 kB / 1.371 GB, free: 6.293 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001085/1.336, allocations: 0.4929 MB / 1.372 GB, free: 5.832 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003107/1.337, allocations: 0.8335 MB / 1.373 GB, free: 4.973 MB / 0.8073 GB Notification: Performance of SimCode: time 2.3e-07/1.337, allocations: 0 / 1.373 GB, free: 4.973 MB / 0.8073 GB (rm -f Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat --tempDir=temp_Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Obsolete_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_9_Buildings.Obsolete.Controls.Continuous.Examples.PIDHysteresis_res.mat does not exist to compare? outputFormat=mat