Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.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.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_8_0_x_Buildings_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 8.0.1-maint.8.0.x/package.mo): time 1.278/1.278, allocations: 285.5 MB / 292.8 MB, free: 10.4 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.0009078/0.0009078, allocations: 177.3 kB / 361.1 MB, free: 7.027 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.005/1.005, allocations: 205.1 MB / 0.6195 GB, free: 10.31 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.0007746/0.0007746, allocations: 93.69 kB / 0.7326 GB, free: 44.26 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1741/0.1749, allocations: 121.4 MB / 0.8511 GB, free: 2.914 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.5782, allocations: 115.3 MB / 0.9637 GB, free: 78.05 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1343/0.7125, allocations: 143.9 MB / 1.104 GB, free: 12.13 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000178/0.7127, allocations: 80.56 kB / 1.104 GB, free: 12.05 MB / 0.7136 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.01623/0.7289, allocations: 7.178 MB / 1.111 GB, free: 4.918 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.923e-05/0.729, allocations: 8.5 kB / 1.111 GB, free: 4.91 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.574e-05/0.7291, allocations: 47.44 kB / 1.111 GB, free: 4.863 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000529/0.7296, allocations: 383.2 kB / 1.112 GB, free: 4.453 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.626e-05/0.7296, allocations: 8 kB / 1.112 GB, free: 4.445 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.04e-05/0.7297, allocations: 16.22 kB / 1.112 GB, free: 4.43 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003475/0.73, allocations: 193.1 kB / 1.112 GB, free: 4.238 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003997/0.7304, allocations: 304.9 kB / 1.112 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.7304, allocations: 0 / 1.112 GB, free: 3.91 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.651e-05/0.7305, allocations: 3.984 kB / 1.112 GB, free: 3.906 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.7305, allocations: 8.75 kB / 1.112 GB, free: 3.898 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001357/0.7319, allocations: 1.174 MB / 1.113 GB, free: 2.656 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.7321, allocations: 154.1 kB / 1.114 GB, free: 2.5 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001336/0.7323, allocations: 101.4 kB / 1.114 GB, free: 2.398 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 2.699e-05/0.7323, allocations: 11.84 kB / 1.114 GB, free: 2.391 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.584e-05/0.7323, allocations: 30.75 kB / 1.114 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=22): time 1.292e-06/0.7324, allocations: 0 / 1.114 GB, free: 2.352 MB / 0.7136 GB Notification: Performance of matching and sorting (n=22): time 0.0003377/0.7327, allocations: 201.7 kB / 1.114 GB, free: 2.152 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.7328, allocations: 162.2 kB / 1.114 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002414/0.733, allocations: 266.1 kB / 1.114 GB, free: 1.691 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.733, allocations: 25.7 kB / 1.114 GB, free: 1.66 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 9.979e-05/0.7331, allocations: 184 kB / 1.115 GB, free: 1.477 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 4.773e-05/0.7332, allocations: 74.84 kB / 1.115 GB, free: 1.402 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.064e-05/0.7332, allocations: 0 / 1.115 GB, free: 1.402 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.7333, allocations: 342.8 kB / 1.115 GB, free: 1.059 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001035/0.7334, allocations: 60 kB / 1.115 GB, free: 1 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.7336, allocations: 144.5 kB / 1.115 GB, free: 0.832 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.7337, allocations: 83.75 kB / 1.115 GB, free: 0.75 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.7337, allocations: 0 / 1.115 GB, free: 0.75 MB / 0.7136 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003205/0.734, allocations: 229.2 kB / 1.115 GB, free: 0.5195 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.7341, allocations: 8.125 kB / 1.115 GB, free: 0.5117 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.41e-06/0.7341, allocations: 2.188 kB / 1.115 GB, free: 0.5117 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.7341, allocations: 4 kB / 1.115 GB, free: 0.5078 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002356/0.7343, allocations: 55.91 kB / 1.116 GB, free: 464 kB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.7343, allocations: 0 / 1.116 GB, free: 464 kB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002133/0.7346, allocations: 43.81 kB / 1.116 GB, free: 420 kB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.037e-05/0.7346, allocations: 14.03 kB / 1.116 GB, free: 408 kB / 0.7136 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.765e-05/0.7347, allocations: 108.8 kB / 1.116 GB, free: 292 kB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.575e-05/0.7347, allocations: 35.62 kB / 1.116 GB, free: 256 kB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.323e-05/0.7348, allocations: 39.16 kB / 1.116 GB, free: 216 kB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.7348, allocations: 0 / 1.116 GB, free: 216 kB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.7348, allocations: 3.938 kB / 1.116 GB, free: 212 kB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.7348, allocations: 3.984 kB / 1.116 GB, free: 208 kB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003618/0.7352, allocations: 365.8 kB / 1.116 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.7352, allocations: 0 / 1.116 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002367/0.7355, allocations: 47.91 kB / 1.116 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.7355, allocations: 4 kB / 1.116 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.717e-05/0.7355, allocations: 4 kB / 1.116 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.7355, allocations: 0 / 1.116 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.7355, allocations: 1.125 kB / 1.116 GB, free: 15.75 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004417/0.7359, allocations: 406.4 kB / 1.117 GB, free: 15.34 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006233/0.7366, allocations: 0.878 MB / 1.117 GB, free: 14.45 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/0.7367, allocations: 136.7 kB / 1.118 GB, free: 14.3 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.803e-05/0.7368, allocations: 6.422 kB / 1.118 GB, free: 14.29 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002261/0.737, allocations: 28.05 kB / 1.118 GB, free: 14.27 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.7371, allocations: 19.97 kB / 1.118 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.697e-05/0.7371, allocations: 4 kB / 1.118 GB, free: 14.24 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.000172/0.7373, allocations: 208.6 kB / 1.118 GB, free: 14.04 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0008285/0.7381, allocations: 67.69 kB / 1.118 GB, free: 13.97 MB / 0.7292 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.000111/0.7382, allocations: 103 kB / 1.118 GB, free: 13.86 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002809/0.7385, allocations: 189.8 kB / 1.118 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.7385, allocations: 0 / 1.118 GB, free: 13.68 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.7386, allocations: 92.31 kB / 1.118 GB, free: 13.59 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003894/0.739, allocations: 66.52 kB / 1.118 GB, free: 13.53 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009497/0.74, allocations: 0.4956 MB / 1.119 GB, free: 13.01 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003665/0.7404, allocations: 0.8305 MB / 1.12 GB, free: 12.16 MB / 0.7292 GB Notification: Performance of SimCode: time 2.2e-07/0.7404, allocations: 0 / 1.12 GB, free: 12.16 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)