Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.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.LimPIDWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset",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.29/1.29, allocations: 285.5 MB / 292.8 MB, free: 10.48 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.0009075/0.0009074, allocations: 185.3 kB / 361.1 MB, free: 7.113 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.991/0.991, allocations: 205.1 MB / 0.6195 GB, free: 11.95 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.0007601/0.0007601, allocations: 92.72 kB / 0.7326 GB, free: 44.48 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.1719/0.1727, allocations: 121.4 MB / 0.8511 GB, free: 3.172 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.407/0.5798, allocations: 115.3 MB / 0.9637 GB, free: 77.96 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1366/0.7164, allocations: 144 MB / 1.104 GB, free: 12.02 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001839/0.7166, allocations: 79.53 kB / 1.104 GB, free: 11.95 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.03019/0.7468, allocations: 13.09 MB / 1.117 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.7469, allocations: 8.5 kB / 1.117 GB, free: 14.91 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.7471, allocations: 83.06 kB / 1.117 GB, free: 14.82 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007165/0.7478, allocations: 0.5289 MB / 1.118 GB, free: 14.25 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.7478, allocations: 23.98 kB / 1.118 GB, free: 14.23 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.249e-05/0.7479, allocations: 40.22 kB / 1.118 GB, free: 14.19 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006801/0.7486, allocations: 390.6 kB / 1.118 GB, free: 13.81 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007747/0.7494, allocations: 0.5215 MB / 1.119 GB, free: 13.26 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.025e-05/0.7494, allocations: 3.984 kB / 1.119 GB, free: 13.26 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.301e-05/0.7494, allocations: 0 / 1.119 GB, free: 13.26 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.384e-05/0.7495, allocations: 16 kB / 1.119 GB, free: 13.24 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002687/0.7522, allocations: 1.993 MB / 1.121 GB, free: 11.2 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004819/0.7526, allocations: 318.9 kB / 1.121 GB, free: 10.88 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002834/0.7529, allocations: 208.1 kB / 1.121 GB, free: 10.68 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.619e-05/0.753, allocations: 4.438 kB / 1.121 GB, free: 10.67 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003105/0.7533, allocations: 224.6 kB / 1.121 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=50): time 2.896e-06/0.7533, allocations: 4 kB / 1.121 GB, free: 10.44 MB / 0.7292 GB Notification: Performance of matching and sorting (n=50): time 0.0005995/0.7539, allocations: 394.5 kB / 1.122 GB, free: 10.04 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.754, allocations: 162.6 kB / 1.122 GB, free: 9.848 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003371/0.7543, allocations: 348.3 kB / 1.122 GB, free: 9.508 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 3.393e-05/0.7544, allocations: 29.7 kB / 1.122 GB, free: 9.473 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001204/0.7545, allocations: 252.3 kB / 1.123 GB, free: 9.223 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001008/0.7546, allocations: 169.5 kB / 1.123 GB, free: 9.055 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.7546, allocations: 0 / 1.123 GB, free: 9.055 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 9.384e-05/0.7547, allocations: 358.8 kB / 1.123 GB, free: 8.695 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002313/0.755, allocations: 149.3 kB / 1.123 GB, free: 8.547 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.7553, allocations: 251.2 kB / 1.124 GB, free: 8.273 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002577/0.7555, allocations: 165.4 kB / 1.124 GB, free: 8.113 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.7555, allocations: 0 / 1.124 GB, free: 8.113 MB / 0.7292 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0006562/0.7562, allocations: 467.8 kB / 1.124 GB, free: 7.648 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.256e-05/0.7562, allocations: 8 kB / 1.124 GB, free: 7.641 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.7562, allocations: 0 / 1.124 GB, free: 7.641 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.7563, allocations: 4 kB / 1.124 GB, free: 7.637 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005039/0.7568, allocations: 135.9 kB / 1.124 GB, free: 7.504 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.752e-06/0.7568, allocations: 4 kB / 1.124 GB, free: 7.5 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003939/0.7572, allocations: 75.58 kB / 1.124 GB, free: 7.426 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.423e-05/0.7572, allocations: 16 kB / 1.124 GB, free: 7.41 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,$whenCondition1,conWitRes.conPID.trigger,conNoRes.trigger.y,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conNoRes.conPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 1 * 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 0.0001212/0.7574, allocations: 120.9 kB / 1.124 GB, free: 7.285 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.864e-05/0.7574, allocations: 59.25 kB / 1.125 GB, free: 7.227 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001088/0.7575, allocations: 62.88 kB / 1.125 GB, free: 7.164 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.7576, allocations: 4 kB / 1.125 GB, free: 7.16 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.7576, allocations: 0 / 1.125 GB, free: 7.16 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.7576, allocations: 4 kB / 1.125 GB, free: 7.156 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001291/0.7589, allocations: 1.103 MB / 1.126 GB, free: 6.012 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.37e-06/0.7589, allocations: 7.906 kB / 1.126 GB, free: 6.004 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005408/0.7594, allocations: 112.8 kB / 1.126 GB, free: 5.895 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.789e-06/0.7594, allocations: 4 kB / 1.126 GB, free: 5.891 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.037e-05/0.7595, allocations: 4 kB / 1.126 GB, free: 5.887 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.7595, allocations: 0 / 1.126 GB, free: 5.887 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.7595, allocations: 0 / 1.126 GB, free: 5.887 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008824/0.7604, allocations: 0.7147 MB / 1.126 GB, free: 5.156 MB / 0.7292 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001212/0.7616, allocations: 1.31 MB / 1.128 GB, free: 3.828 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000176/0.7618, allocations: 180.3 kB / 1.128 GB, free: 3.633 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.569e-05/0.7619, allocations: 3.984 kB / 1.128 GB, free: 3.629 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.7623, allocations: 43.97 kB / 1.128 GB, free: 3.586 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.303e-05/0.7624, allocations: 38.34 kB / 1.128 GB, free: 3.551 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.702e-05/0.7624, allocations: 12 kB / 1.128 GB, free: 3.539 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0002675/0.7627, allocations: 271.2 kB / 1.128 GB, free: 3.273 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0009331/0.7636, allocations: 135.4 kB / 1.128 GB, free: 3.141 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (plaWitRes.cap.T,plaWitRes.cap1.T,conWitRes.conPID.I.y,plaNoRes.cap.T,plaNoRes.cap1.T,conNoRes.conPID.I.y) * Number of discrete variables: 6 (conWitRes.conPID.trigger,$whenCondition2,$whenCondition1,conNoRes.trigger.y,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001209/0.7637, allocations: 111.2 kB / 1.129 GB, free: 3.023 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0005852/0.7643, allocations: 413.2 kB / 1.129 GB, free: 2.613 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.7643, allocations: 0 / 1.129 GB, free: 2.613 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.7646, allocations: 201.5 kB / 1.129 GB, free: 2.414 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005748/0.7652, allocations: 114.1 kB / 1.129 GB, free: 2.309 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002484/0.7677, allocations: 1.262 MB / 1.13 GB, free: 1.016 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005544/0.7683, allocations: 0.9605 MB / 1.131 GB, free: 32 kB / 0.7292 GB Notification: Performance of SimCode: time 2.6e-07/0.7683, allocations: 3.938 kB / 1.131 GB, free: 28 kB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Controls_Continuous_Examples_LimPIDWithReset.fmu > Buildings_maint.8.0.x_Buildings.Controls.Continuous.Examples.LimPIDWithReset.pipe 2>&1)