Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.Continuous.Examples.LimPID") [: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.1.4-maint.8.1.x/package.mo): time 1.351/1.351, allocations: 289.8 MB / 297.1 MB, free: 6.727 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.0009773/0.0009773, allocations: 181.3 kB / 366.3 MB, free: 2.012 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.051/1.051, allocations: 205.1 MB / 0.6256 GB, free: 7.48 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.0007931/0.0007932, allocations: 89.48 kB / 0.7395 GB, free: 39.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 6.993e-06/7.033e-06, allocations: 4 kB / 0.859 GB, free: 13.61 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4555/0.4555, allocations: 116.3 MB / 0.9725 GB, free: 76.71 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.6059, allocations: 146.3 MB / 1.115 GB, free: 4.258 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002235/0.6062, allocations: 77.02 kB / 1.115 GB, free: 4.184 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.04347/0.6497, allocations: 16.49 MB / 1.132 GB, free: 3.75 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 7.494e-05/0.6498, allocations: 20 kB / 1.132 GB, free: 3.73 MB / 0.7292 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001825/0.6516, allocations: 0.9547 MB / 1.133 GB, free: 2.723 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.6517, allocations: 11.97 kB / 1.133 GB, free: 2.711 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002736/0.6519, allocations: 94.88 kB / 1.133 GB, free: 2.617 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001093/0.6531, allocations: 0.5916 MB / 1.133 GB, free: 1.988 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.6532, allocations: 80.41 kB / 1.133 GB, free: 1.898 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.466e-05/0.6533, allocations: 35.91 kB / 1.133 GB, free: 1.863 MB / 0.7292 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006446/0.6539, allocations: 338 kB / 1.134 GB, free: 1.531 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007815/0.6547, allocations: 0.5101 MB / 1.134 GB, free: 0.9727 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.458e-05/0.6547, allocations: 0 / 1.134 GB, free: 0.9727 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.073e-05/0.6548, allocations: 1.406 kB / 1.134 GB, free: 0.9727 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.6548, allocations: 16 kB / 1.134 GB, free: 0.957 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002767/0.6576, allocations: 2.097 MB / 1.136 GB, free: 14.79 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000751/0.6584, allocations: 424.7 kB / 1.137 GB, free: 14.36 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002621/0.6586, allocations: 160.8 kB / 1.137 GB, free: 14.2 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 4.09e-05/0.6587, allocations: 4 kB / 1.137 GB, free: 14.2 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003338/0.659, allocations: 230.5 kB / 1.137 GB, free: 13.96 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=45): time 1.824e-06/0.659, allocations: 0 / 1.137 GB, free: 13.96 MB / 0.7448 GB Notification: Performance of matching and sorting (n=45): time 0.0006405/0.6597, allocations: 389.2 kB / 1.137 GB, free: 13.57 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.294e-05/0.6598, allocations: 191.9 kB / 1.138 GB, free: 13.34 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004977/0.6603, allocations: 471.7 kB / 1.138 GB, free: 12.88 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 4.357e-05/0.6603, allocations: 29.7 kB / 1.138 GB, free: 12.84 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.6605, allocations: 248.7 kB / 1.138 GB, free: 12.59 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001143/0.6606, allocations: 153.8 kB / 1.138 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.315e-05/0.6606, allocations: 0.9375 kB / 1.138 GB, free: 12.44 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001398/0.6608, allocations: 378.8 kB / 1.139 GB, free: 12.06 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002642/0.661, allocations: 137.3 kB / 1.139 GB, free: 11.93 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.6614, allocations: 272 kB / 1.139 GB, free: 11.61 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002611/0.6616, allocations: 164.7 kB / 1.139 GB, free: 11.45 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.6617, allocations: 4 kB / 1.139 GB, free: 11.45 MB / 0.7448 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.0007077/0.6624, allocations: 478.1 kB / 1.14 GB, free: 10.97 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003341/0.6627, allocations: 0.9618 MB / 1.141 GB, free: 9.938 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.507e-05/0.6627, allocations: 4 kB / 1.141 GB, free: 9.934 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.6627, allocations: 4 kB / 1.141 GB, free: 9.93 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005052/0.6633, allocations: 129.9 kB / 1.141 GB, free: 9.805 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/0.6633, allocations: 7.984 kB / 1.141 GB, free: 9.797 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004536/0.6637, allocations: 72.66 kB / 1.141 GB, free: 9.727 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/0.6638, allocations: 23.98 kB / 1.141 GB, free: 9.703 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 5.721e-06/0.6638, allocations: 4 kB / 1.141 GB, free: 9.699 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005737/0.6644, allocations: 361.4 kB / 1.141 GB, free: 9.344 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.6644, allocations: 8.312 kB / 1.141 GB, free: 9.336 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.5e-06/0.6644, allocations: 4 kB / 1.141 GB, free: 9.332 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004583/0.6649, allocations: 115.8 kB / 1.141 GB, free: 9.219 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.125e-06/0.6649, allocations: 9.797 kB / 1.141 GB, free: 9.211 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004/0.6653, allocations: 71.59 kB / 1.141 GB, free: 9.141 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.469e-05/0.6653, allocations: 17.59 kB / 1.142 GB, free: 9.125 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001336/0.6655, allocations: 131.1 kB / 1.142 GB, free: 8.992 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.054e-05/0.6656, allocations: 67.16 kB / 1.142 GB, free: 8.926 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.6657, allocations: 70.61 kB / 1.142 GB, free: 8.855 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.39e-06/0.6657, allocations: 8 kB / 1.142 GB, free: 8.848 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.6657, allocations: 0 / 1.142 GB, free: 8.848 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.6657, allocations: 0 / 1.142 GB, free: 8.848 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006155/0.6664, allocations: 0.5756 MB / 1.142 GB, free: 8.234 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.6664, allocations: 4 kB / 1.142 GB, free: 8.23 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005012/0.6669, allocations: 103.8 kB / 1.142 GB, free: 8.129 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.6669, allocations: 8 kB / 1.142 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.078e-05/0.6669, allocations: 0 / 1.142 GB, free: 8.121 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.6669, allocations: 4 kB / 1.142 GB, free: 8.117 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.6669, allocations: 1.125 kB / 1.142 GB, free: 8.117 MB / 0.7448 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009345/0.6679, allocations: 0.6186 MB / 1.143 GB, free: 7.48 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002394/0.6681, allocations: 204 kB / 1.143 GB, free: 7.262 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.121e-05/0.6682, allocations: 8 kB / 1.143 GB, free: 7.254 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005029/0.6687, allocations: 60.52 kB / 1.143 GB, free: 7.195 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.566e-05/0.6688, allocations: 35.84 kB / 1.143 GB, free: 7.16 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.853e-05/0.6689, allocations: 15.98 kB / 1.143 GB, free: 7.145 MB / 0.7448 GB Notification: Performance of sort global known variables: time 0.0003633/0.6693, allocations: 363.2 kB / 1.144 GB, free: 6.793 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0005791/0.6698, allocations: 211.1 kB / 1.144 GB, free: 6.586 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * 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.0001614/0.67, allocations: 117.3 kB / 1.144 GB, free: 6.461 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.0009445/0.671, allocations: 0.6549 MB / 1.145 GB, free: 5.789 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.671, allocations: 1.25 kB / 1.145 GB, free: 5.789 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.0002604/0.6712, allocations: 183.9 kB / 1.145 GB, free: 5.609 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007422/0.672, allocations: 162.6 kB / 1.145 GB, free: 5.457 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.6737, allocations: 0.8847 MB / 1.146 GB, free: 4.555 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006243/0.6744, allocations: 0.982 MB / 1.147 GB, free: 3.547 MB / 0.7448 GB Notification: Performance of SimCode: time 2.6e-07/0.6744, allocations: 0 / 1.147 GB, free: 3.547 MB / 0.7448 GB Notification: Performance of Templates: time 0.01811/0.6925, allocations: 10.68 MB / 1.157 GB, free: 9.082 MB / 0.7605 GB make -j1 -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_8_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1)