Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.PIDHysteresis,fileNamePrefix="Buildings_maint_7_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 7.0.3-maint.7.0.x/package.mo): time 1.241/1.241, allocations: 249.4 MB / 256.7 MB, free: 7.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001022/0.001022, allocations: 172.7 kB / 316 MB, free: 3.539 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.168/1.168, allocations: 205.1 MB / 0.5667 GB, free: 15.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008501/0.0008501, allocations: 91.48 kB / 0.671 GB, free: 4.727 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.336/0.3369, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1625/0.4993, allocations: 106.3 MB / 0.8846 GB, free: 12.57 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4498/0.9491, allocations: 138.7 MB / 1.02 GB, free: 15.98 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001824/0.9494, allocations: 72.78 kB / 1.02 GB, free: 15.94 MB / 0.6511 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.0176/0.967, allocations: 7.211 MB / 1.027 GB, free: 9.906 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.967, allocations: 8 kB / 1.027 GB, free: 9.898 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.769e-05/0.9671, allocations: 50.94 kB / 1.027 GB, free: 9.852 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005489/0.9677, allocations: 388.2 kB / 1.028 GB, free: 9.488 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.74e-05/0.9677, allocations: 8 kB / 1.028 GB, free: 9.48 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.188e-05/0.9678, allocations: 23.98 kB / 1.028 GB, free: 9.457 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003294/0.9681, allocations: 182.7 kB / 1.028 GB, free: 9.355 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000409/0.9685, allocations: 297.6 kB / 1.028 GB, free: 9.102 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.313e-05/0.9685, allocations: 0 / 1.028 GB, free: 9.102 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.878e-05/0.9686, allocations: 4 kB / 1.028 GB, free: 9.098 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.228e-06/0.9686, allocations: 4 kB / 1.028 GB, free: 9.094 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001414/0.97, allocations: 1.185 MB / 1.029 GB, free: 8.047 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.9703, allocations: 147.4 kB / 1.029 GB, free: 7.949 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000139/0.9705, allocations: 99.88 kB / 1.03 GB, free: 7.887 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.759e-05/0.9705, allocations: 4.188 kB / 1.03 GB, free: 7.883 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.9705, allocations: 42.06 kB / 1.03 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=22): time 1.393e-06/0.9705, allocations: 224 / 1.03 GB, free: 7.836 MB / 0.6511 GB Notification: Performance of matching and sorting (n=22): time 0.0003598/0.9709, allocations: 197.8 kB / 1.03 GB, free: 7.691 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.814e-05/0.971, allocations: 166.1 kB / 1.03 GB, free: 7.492 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/0.9712, allocations: 267.9 kB / 1.03 GB, free: 7.281 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.644e-05/0.9712, allocations: 29.7 kB / 1.03 GB, free: 7.246 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001319/0.9714, allocations: 172.9 kB / 1.03 GB, free: 7.09 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 4.981e-05/0.9714, allocations: 77.72 kB / 1.03 GB, free: 7.023 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.078e-05/0.9714, allocations: 8 kB / 1.03 GB, free: 7.016 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001196/0.9716, allocations: 336.5 kB / 1.031 GB, free: 6.691 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.9717, allocations: 70.38 kB / 1.031 GB, free: 6.652 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001501/0.9718, allocations: 138.6 kB / 1.031 GB, free: 6.527 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000118/0.972, allocations: 78.33 kB / 1.031 GB, free: 6.48 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.972, allocations: 0 / 1.031 GB, free: 6.48 MB / 0.6511 GB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003453/0.9723, allocations: 241 kB / 1.031 GB, free: 6.297 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.9724, allocations: 7.906 kB / 1.031 GB, free: 6.289 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.822e-06/0.9724, allocations: 4 kB / 1.031 GB, free: 6.285 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.9724, allocations: 128 / 1.031 GB, free: 6.285 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002479/0.9726, allocations: 55.97 kB / 1.031 GB, free: 6.23 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.9727, allocations: 7.938 kB / 1.031 GB, free: 6.223 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002193/0.9729, allocations: 39.81 kB / 1.031 GB, free: 6.184 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.036e-05/0.9729, allocations: 11.81 kB / 1.031 GB, free: 6.176 MB / 0.6511 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 9.658e-05/0.973, allocations: 108.9 kB / 1.032 GB, free: 6.062 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.076e-05/0.9731, allocations: 35.53 kB / 1.032 GB, free: 6.027 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.831e-05/0.9732, allocations: 33.53 kB / 1.032 GB, free: 6.004 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.9732, allocations: 4 kB / 1.032 GB, free: 6 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.4e-06/0.9732, allocations: 4 kB / 1.032 GB, free: 5.996 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.9732, allocations: 4.031 kB / 1.032 GB, free: 5.992 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003596/0.9736, allocations: 360.7 kB / 1.032 GB, free: 5.684 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.9736, allocations: 0 / 1.032 GB, free: 5.684 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002659/0.9738, allocations: 47.97 kB / 1.032 GB, free: 5.637 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.9739, allocations: 0 / 1.032 GB, free: 5.637 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.9739, allocations: 3.438 kB / 1.032 GB, free: 5.637 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.9739, allocations: 8 kB / 1.032 GB, free: 5.629 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.9739, allocations: 0 / 1.032 GB, free: 5.629 MB / 0.6511 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005114/0.9744, allocations: 409.2 kB / 1.032 GB, free: 5.312 MB / 0.6511 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006558/0.9751, allocations: 0.8665 MB / 1.033 GB, free: 4.582 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.9752, allocations: 130.7 kB / 1.033 GB, free: 4.449 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.638e-05/0.9753, allocations: 15.95 kB / 1.033 GB, free: 4.438 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000224/0.9755, allocations: 27.92 kB / 1.033 GB, free: 4.41 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.9756, allocations: 19.97 kB / 1.033 GB, free: 4.391 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.423e-05/0.9756, allocations: 4 kB / 1.033 GB, free: 4.387 MB / 0.6511 GB Notification: Performance of sort global known variables: time 0.000169/0.9758, allocations: 211 kB / 1.034 GB, free: 4.23 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0008466/0.9766, allocations: 67.69 kB / 1.034 GB, free: 4.164 MB / 0.6511 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.0001318/0.9767, allocations: 111.2 kB / 1.034 GB, free: 4.047 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002857/0.977, allocations: 175.8 kB / 1.034 GB, free: 3.938 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.977, allocations: 0 / 1.034 GB, free: 3.938 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0001232/0.9772, allocations: 96.88 kB / 1.034 GB, free: 3.871 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000393/0.9776, allocations: 64.31 kB / 1.034 GB, free: 3.828 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009983/0.9786, allocations: 0.4887 MB / 1.035 GB, free: 3.355 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004149/0.979, allocations: 0.8335 MB / 1.035 GB, free: 2.5 MB / 0.6511 GB Notification: Performance of SimCode: time 2.9e-07/0.979, allocations: 4 kB / 1.035 GB, free: 2.496 MB / 0.6511 GB (rm -f Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Controls_Continuous_Examples_PIDHysteresis.fmu > Buildings_maint.7.0.x_Buildings.Controls.Continuous.Examples.PIDHysteresis.pipe 2>&1)