Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") [: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.38/1.38, allocations: 289.8 MB / 297.1 MB, free: 6.59 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.001016/0.001016, allocations: 185.3 kB / 366.3 MB, free: 1.91 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.067/1.067, allocations: 205.1 MB / 0.6256 GB, free: 7.387 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.0007727/0.0007727, allocations: 91.91 kB / 0.7395 GB, free: 39.79 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.044e-05/1.047e-05, allocations: 4 kB / 0.859 GB, free: 13.49 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4657/0.4657, allocations: 116.3 MB / 0.9726 GB, free: 76.48 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1452/0.611, allocations: 140 MB / 1.109 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001985/0.6112, allocations: 83.94 kB / 1.109 GB, free: 10.44 MB / 0.7136 GB Notification: Performance of FrontEnd: time 0.02387/0.6351, allocations: 8.935 MB / 1.118 GB, free: 1.57 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 3.932e-05/0.6352, allocations: 12 kB / 1.118 GB, free: 1.559 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001511/0.6367, allocations: 0.7533 MB / 1.119 GB, free: 0.7539 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.147e-05/0.6368, allocations: 12.03 kB / 1.119 GB, free: 0.7422 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002206/0.637, allocations: 67.25 kB / 1.119 GB, free: 0.6758 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008952/0.6379, allocations: 440.5 kB / 1.119 GB, free: 208 kB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.638, allocations: 24 kB / 1.119 GB, free: 184 kB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.515e-05/0.6381, allocations: 32 kB / 1.119 GB, free: 152 kB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005401/0.6386, allocations: 262 kB / 1.12 GB, free: 15.89 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006077/0.6392, allocations: 377 kB / 1.12 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.366e-05/0.6392, allocations: 0 / 1.12 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.6393, allocations: 0 / 1.12 GB, free: 15.5 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.261e-05/0.6393, allocations: 12 kB / 1.12 GB, free: 15.49 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002105/0.6414, allocations: 1.382 MB / 1.121 GB, free: 14.06 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002993/0.6417, allocations: 194 kB / 1.122 GB, free: 13.87 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004171/0.6422, allocations: 238.8 kB / 1.122 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.6422, allocations: 4 kB / 1.122 GB, free: 13.63 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002911/0.6425, allocations: 199.6 kB / 1.122 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=43): time 1.803e-06/0.6425, allocations: 0 / 1.122 GB, free: 13.42 MB / 0.7292 GB Notification: Performance of matching and sorting (n=43): time 0.0005707/0.6431, allocations: 321 kB / 1.122 GB, free: 13.1 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.31e-05/0.6431, allocations: 110.8 kB / 1.122 GB, free: 12.97 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.6435, allocations: 278.1 kB / 1.123 GB, free: 12.69 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 5.768e-05/0.6435, allocations: 33.69 kB / 1.123 GB, free: 12.65 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.6437, allocations: 208.8 kB / 1.123 GB, free: 12.44 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.6438, allocations: 134.8 kB / 1.123 GB, free: 12.31 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.513e-05/0.6438, allocations: 4 kB / 1.123 GB, free: 12.3 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.6439, allocations: 359.8 kB / 1.123 GB, free: 11.95 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002188/0.6442, allocations: 124.9 kB / 1.123 GB, free: 11.82 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002824/0.6444, allocations: 220.4 kB / 1.124 GB, free: 11.57 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000373/0.6448, allocations: 160.7 kB / 1.124 GB, free: 11.42 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.6448, allocations: 0 / 1.124 GB, free: 11.42 MB / 0.7292 GB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0007514/0.6456, allocations: 426.8 kB / 1.124 GB, free: 10.99 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001813/0.6458, allocations: 0.5231 MB / 1.125 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.6458, allocations: 3.984 kB / 1.125 GB, free: 10.43 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.6458, allocations: 11.91 kB / 1.125 GB, free: 10.41 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003779/0.6462, allocations: 91.83 kB / 1.125 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.464e-06/0.6462, allocations: 7.938 kB / 1.125 GB, free: 10.32 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003624/0.6466, allocations: 79.7 kB / 1.125 GB, free: 10.24 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.889e-05/0.6466, allocations: 19.98 kB / 1.125 GB, free: 10.22 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 4.428e-06/0.6467, allocations: 4 kB / 1.125 GB, free: 10.21 MB / 0.7292 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006071/0.6473, allocations: 341.6 kB / 1.125 GB, free: 9.887 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-06/0.6473, allocations: 0 / 1.125 GB, free: 9.887 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.6473, allocations: 5.938 kB / 1.125 GB, free: 9.883 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002813/0.6476, allocations: 75.84 kB / 1.125 GB, free: 9.809 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.375e-06/0.6476, allocations: 4 kB / 1.125 GB, free: 9.805 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003051/0.6479, allocations: 71.73 kB / 1.125 GB, free: 9.734 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/0.6479, allocations: 16 kB / 1.125 GB, free: 9.719 MB / 0.7292 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (50): * Single equations (assignments): 49 * 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.0001072/0.6481, allocations: 124 kB / 1.126 GB, free: 9.594 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.169e-05/0.6481, allocations: 44.19 kB / 1.126 GB, free: 9.551 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.113e-05/0.6482, allocations: 44.27 kB / 1.126 GB, free: 9.508 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.628e-06/0.6482, allocations: 4 kB / 1.126 GB, free: 9.504 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6482, allocations: 0 / 1.126 GB, free: 9.504 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.6482, allocations: 3.984 kB / 1.126 GB, free: 9.5 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009115/0.6492, allocations: 0.8306 MB / 1.126 GB, free: 8.625 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.6492, allocations: 0 / 1.126 GB, free: 8.625 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003791/0.6496, allocations: 83.89 kB / 1.127 GB, free: 8.543 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.231e-06/0.6496, allocations: 5.125 kB / 1.127 GB, free: 8.539 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.6496, allocations: 0 / 1.127 GB, free: 8.539 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.6496, allocations: 5.062 kB / 1.127 GB, free: 8.535 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6496, allocations: 3.984 kB / 1.127 GB, free: 8.531 MB / 0.7292 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007043/0.6503, allocations: 0.588 MB / 1.127 GB, free: 7.922 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 7.909e-05/0.6504, allocations: 120.6 kB / 1.127 GB, free: 7.785 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.04e-05/0.6505, allocations: 0 / 1.127 GB, free: 7.785 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002178/0.6507, allocations: 27.97 kB / 1.127 GB, free: 7.758 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.406e-05/0.6508, allocations: 19.97 kB / 1.127 GB, free: 7.738 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.215e-05/0.6508, allocations: 13 kB / 1.127 GB, free: 7.727 MB / 0.7292 GB Notification: Performance of sort global known variables: time 0.0001897/0.651, allocations: 216.6 kB / 1.128 GB, free: 7.52 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0004911/0.6515, allocations: 183 kB / 1.128 GB, free: 7.34 MB / 0.7292 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 6 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0001678/0.6516, allocations: 122.6 kB / 1.128 GB, free: 7.211 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0008535/0.6525, allocations: 0.5983 MB / 1.128 GB, free: 6.602 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.6525, allocations: 0 / 1.128 GB, free: 6.602 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0002053/0.6527, allocations: 167.8 kB / 1.129 GB, free: 6.438 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004631/0.6532, allocations: 69.11 kB / 1.129 GB, free: 6.371 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001078/0.6543, allocations: 0.6477 MB / 1.129 GB, free: 5.699 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004788/0.6548, allocations: 0.8948 MB / 1.13 GB, free: 4.777 MB / 0.7292 GB Notification: Performance of SimCode: time 2.41e-07/0.6548, allocations: 0 / 1.13 GB, free: 4.777 MB / 0.7292 GB Notification: Performance of Templates: time 0.01167/0.6665, allocations: 6.688 MB / 1.137 GB, free: 14.23 MB / 0.7448 GB make -j1 -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1)