Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.Continuous.Examples.LimPIDWithReset.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Controls.Continuous.Examples.LimPIDWithReset,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.342/2.342, allocations: 248.6 MB / 255.9 MB, free: 7.172 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.00174/0.00174, allocations: 185.2 kB / 315.1 MB, free: 4.285 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.113/2.113, allocations: 205.1 MB / 0.5658 GB, free: 392 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001906/0.001906, allocations: 94.81 kB / 0.67 GB, free: 5.586 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.5121/0.5141, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2226/0.7368, allocations: 106.2 MB / 0.8835 GB, free: 13.38 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.759/1.496, allocations: 138.6 MB / 1.019 GB, free: 1.77 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004187/1.496, allocations: 76.58 kB / 1.019 GB, free: 1.73 MB / 0.6355 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.06815/1.564, allocations: 13.16 MB / 1.032 GB, free: 6.77 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/1.565, allocations: 12 kB / 1.032 GB, free: 6.758 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004642/1.565, allocations: 82.97 kB / 1.032 GB, free: 6.676 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001477/1.567, allocations: 0.5299 MB / 1.032 GB, free: 6.211 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.314e-05/1.567, allocations: 20 kB / 1.032 GB, free: 6.191 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001499/1.567, allocations: 35.62 kB / 1.032 GB, free: 6.16 MB / 0.6511 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001394/1.568, allocations: 394 kB / 1.033 GB, free: 5.941 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/1.57, allocations: 0.524 MB / 1.033 GB, free: 5.535 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.533e-05/1.57, allocations: 4 kB / 1.033 GB, free: 5.531 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.464e-05/1.57, allocations: 0 / 1.033 GB, free: 5.531 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/1.57, allocations: 12 kB / 1.033 GB, free: 5.52 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006088/1.576, allocations: 1.999 MB / 1.035 GB, free: 3.988 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009443/1.577, allocations: 302.6 kB / 1.036 GB, free: 3.801 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005339/1.578, allocations: 197.5 kB / 1.036 GB, free: 3.688 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 5.566e-05/1.578, allocations: 19.34 kB / 1.036 GB, free: 3.672 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006052/1.578, allocations: 228.2 kB / 1.036 GB, free: 3.508 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=50): time 3.707e-06/1.578, allocations: 0 / 1.036 GB, free: 3.508 MB / 0.6511 GB Notification: Performance of matching and sorting (n=50): time 0.001228/1.58, allocations: 391 kB / 1.036 GB, free: 3.227 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/1.58, allocations: 166.1 kB / 1.036 GB, free: 3.031 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007426/1.581, allocations: 343.8 kB / 1.037 GB, free: 2.762 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 0.0001216/1.581, allocations: 29.7 kB / 1.037 GB, free: 2.727 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003933/1.581, allocations: 256.4 kB / 1.037 GB, free: 2.5 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/1.581, allocations: 168.3 kB / 1.037 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/1.581, allocations: 0 / 1.037 GB, free: 2.355 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0002259/1.582, allocations: 363.6 kB / 1.038 GB, free: 2.012 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004731/1.582, allocations: 147.2 kB / 1.038 GB, free: 1.938 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005912/1.583, allocations: 253.4 kB / 1.038 GB, free: 1.734 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005171/1.583, allocations: 170.7 kB / 1.038 GB, free: 1.633 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/1.583, allocations: 0 / 1.038 GB, free: 1.633 MB / 0.6511 GB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001417/1.585, allocations: 464.5 kB / 1.039 GB, free: 1.297 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/1.585, allocations: 7.984 kB / 1.039 GB, free: 1.289 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/1.585, allocations: 4 kB / 1.039 GB, free: 1.285 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.51e-05/1.585, allocations: 4 kB / 1.039 GB, free: 1.281 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001114/1.586, allocations: 119.1 kB / 1.039 GB, free: 1.168 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.484e-05/1.586, allocations: 4 kB / 1.039 GB, free: 1.164 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008992/1.587, allocations: 78.92 kB / 1.039 GB, free: 1.09 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.905e-05/1.587, allocations: 19.19 kB / 1.039 GB, free: 1.074 MB / 0.6511 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.0002107/1.587, allocations: 118 kB / 1.039 GB, free: 0.9531 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001419/1.587, allocations: 51.34 kB / 1.039 GB, free: 0.9023 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002459/1.588, allocations: 60.12 kB / 1.039 GB, free: 0.875 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/1.588, allocations: 8 kB / 1.039 GB, free: 0.8672 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.121e-05/1.588, allocations: 4 kB / 1.039 GB, free: 0.8633 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/1.588, allocations: 3.984 kB / 1.039 GB, free: 0.8594 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002724/1.59, allocations: 1.106 MB / 1.04 GB, free: 40 kB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.021e-06/1.591, allocations: 4 kB / 1.04 GB, free: 36 kB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001139/1.592, allocations: 109.9 kB / 1.04 GB, free: 15.93 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.531e-05/1.592, allocations: 4 kB / 1.04 GB, free: 15.93 MB / 0.6667 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.142e-05/1.592, allocations: 7.984 kB / 1.04 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.596e-06/1.592, allocations: 4 kB / 1.04 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.592, allocations: 0 / 1.04 GB, free: 15.92 MB / 0.6667 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001914/1.594, allocations: 0.7099 MB / 1.041 GB, free: 15.42 MB / 0.6667 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002502/1.596, allocations: 1.306 MB / 1.042 GB, free: 14.43 MB / 0.6667 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000436/1.597, allocations: 184.1 kB / 1.042 GB, free: 14.27 MB / 0.6667 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001651/1.597, allocations: 4 kB / 1.042 GB, free: 14.26 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007837/1.598, allocations: 44 kB / 1.042 GB, free: 14.22 MB / 0.6667 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001566/1.598, allocations: 41.91 kB / 1.042 GB, free: 14.18 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.225e-05/1.598, allocations: 15.05 kB / 1.042 GB, free: 14.17 MB / 0.6667 GB Notification: Performance of sort global known variables: time 0.0005345/1.599, allocations: 263.3 kB / 1.043 GB, free: 13.98 MB / 0.6667 GB Notification: Performance of remove unused functions: time 0.001676/1.6, allocations: 142.5 kB / 1.043 GB, free: 13.84 MB / 0.6667 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.0002826/1.601, allocations: 116.5 kB / 1.043 GB, free: 13.72 MB / 0.6667 GB Notification: Performance of simCode: created initialization part: time 0.001227/1.602, allocations: 410.2 kB / 1.043 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/1.602, allocations: 0 / 1.043 GB, free: 13.45 MB / 0.6667 GB Notification: Performance of simCode: created simulation system equations: time 0.0005342/1.602, allocations: 201 kB / 1.044 GB, free: 13.31 MB / 0.6667 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001281/1.604, allocations: 118.7 kB / 1.044 GB, free: 13.22 MB / 0.6667 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005828/1.609, allocations: 1.255 MB / 1.045 GB, free: 12.04 MB / 0.6667 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001191/1.611, allocations: 0.9598 MB / 1.046 GB, free: 11.05 MB / 0.6667 GB Notification: Performance of SimCode: time 1.603e-06/1.611, allocations: 0 / 1.046 GB, free: 11.05 MB / 0.6667 GB