Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPIDOri.y|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID") translateModel(Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPIDOri.y|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.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 9.1.1-maint.9.1.x/package.mo): time 1.919/1.919, allocations: 387.2 MB / 394.5 MB, free: 13.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 181.2 kB / 487 MB, free: 5.359 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 221.3 MB / 0.7819 GB, free: 1.309 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009458/0.0009457, allocations: 89.88 kB / 0.9213 GB, free: 2.555 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.514e-06/7.554e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2046/0.2047, allocations: 142.3 MB / 1.205 GB, free: 26.17 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6053/0.81, allocations: 153.5 MB / 1.355 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002314/0.8103, allocations: 86.64 kB / 1.355 GB, free: 15.86 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.0517/0.862, allocations: 23.93 MB / 1.379 GB, free: 0.5273 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 5.499e-05/0.8621, allocations: 35.36 kB / 1.379 GB, free: 0.4961 MB / 0.8073 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 275 * Number of variables: 275 Notification: Performance of Generate backend data structure: time 0.001804/0.8639, allocations: 1.325 MB / 1.38 GB, free: 15.2 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.864, allocations: 8.031 kB / 1.38 GB, free: 15.2 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002145/0.8642, allocations: 154.1 kB / 1.38 GB, free: 15.04 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001217/0.8654, allocations: 0.7742 MB / 1.381 GB, free: 14.38 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.43e-05/0.8655, allocations: 39.12 kB / 1.381 GB, free: 14.34 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001214/0.8656, allocations: 75.84 kB / 1.381 GB, free: 14.27 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001107/0.8667, allocations: 0.634 MB / 1.382 GB, free: 13.88 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00129/0.868, allocations: 0.8406 MB / 1.382 GB, free: 13.21 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.965e-05/0.8681, allocations: 4 kB / 1.382 GB, free: 13.21 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.843e-05/0.8681, allocations: 0 / 1.382 GB, free: 13.21 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.405e-05/0.8682, allocations: 28 kB / 1.382 GB, free: 13.18 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004135/0.8723, allocations: 3.439 MB / 1.386 GB, free: 10.41 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.8737, allocations: 0.7727 MB / 1.387 GB, free: 9.867 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000491/0.8742, allocations: 377.6 kB / 1.387 GB, free: 9.633 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 5.612e-05/0.8743, allocations: 16.69 kB / 1.387 GB, free: 9.617 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000465/0.8748, allocations: 340.8 kB / 1.387 GB, free: 9.383 MB / 0.823 GB Notification: Performance of pre-optimization done (n=92): time 2.365e-06/0.8748, allocations: 7.938 kB / 1.387 GB, free: 9.375 MB / 0.823 GB Notification: Performance of matching and sorting (n=92): time 0.0009298/0.8757, allocations: 0.6103 MB / 1.388 GB, free: 8.91 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.277e-05/0.8758, allocations: 214.4 kB / 1.388 GB, free: 8.652 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006421/0.8765, allocations: 0.5777 MB / 1.389 GB, free: 8.215 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 5.921e-05/0.8766, allocations: 29.7 kB / 1.389 GB, free: 8.18 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.000242/0.8768, allocations: 405.3 kB / 1.389 GB, free: 7.832 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.877, allocations: 288.4 kB / 1.389 GB, free: 7.578 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.727e-05/0.877, allocations: 0 / 1.389 GB, free: 7.578 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 0.0001176/0.8772, allocations: 348.6 kB / 1.39 GB, free: 7.246 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.8775, allocations: 243.6 kB / 1.39 GB, free: 7.109 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004944/0.878, allocations: 414.1 kB / 1.39 GB, free: 6.77 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005612/0.8786, allocations: 293.1 kB / 1.391 GB, free: 6.59 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.8786, allocations: 0 / 1.391 GB, free: 6.59 MB / 0.823 GB Notification: Performance of matching and sorting (n=109) (initialization): time 0.001197/0.8798, allocations: 0.7599 MB / 1.391 GB, free: 6.023 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002686/0.8801, allocations: 0.622 MB / 1.392 GB, free: 5.367 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.8801, allocations: 3.938 kB / 1.392 GB, free: 5.363 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.785e-05/0.8801, allocations: 8 kB / 1.392 GB, free: 5.355 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007303/0.8809, allocations: 195.4 kB / 1.392 GB, free: 5.168 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.8809, allocations: 8 kB / 1.392 GB, free: 5.16 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006662/0.8816, allocations: 167.2 kB / 1.392 GB, free: 4.996 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.677e-05/0.8817, allocations: 43.3 kB / 1.392 GB, free: 4.961 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.791e-06/0.8817, allocations: 4 kB / 1.392 GB, free: 4.957 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009831/0.8826, allocations: 0.5942 MB / 1.393 GB, free: 4.543 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.226e-06/0.8827, allocations: 0 / 1.393 GB, free: 4.543 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.442e-05/0.8827, allocations: 8 kB / 1.393 GB, free: 4.535 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005295/0.8832, allocations: 150.9 kB / 1.393 GB, free: 4.395 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.677e-06/0.8832, allocations: 15.92 kB / 1.393 GB, free: 4.379 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004937/0.8837, allocations: 119.6 kB / 1.393 GB, free: 4.262 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.214e-05/0.8838, allocations: 30.42 kB / 1.393 GB, free: 4.238 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition6,$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 (107): * Single equations (assignments): 106 * 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.0001416/0.8839, allocations: 126.7 kB / 1.393 GB, free: 4.113 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.8841, allocations: 94.78 kB / 1.393 GB, free: 4.02 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001727/0.8842, allocations: 98.69 kB / 1.394 GB, free: 3.969 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.007e-05/0.8843, allocations: 12 kB / 1.394 GB, free: 3.957 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.8843, allocations: 0 / 1.394 GB, free: 3.957 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.627e-06/0.8843, allocations: 3.984 kB / 1.394 GB, free: 3.953 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001721/0.886, allocations: 1.516 MB / 1.395 GB, free: 2.836 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.265e-06/0.886, allocations: 0 / 1.395 GB, free: 2.836 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007362/0.8868, allocations: 178.7 kB / 1.395 GB, free: 2.668 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.8868, allocations: 4 kB / 1.395 GB, free: 2.664 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.187e-05/0.8868, allocations: 11.36 kB / 1.395 GB, free: 2.656 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.695e-06/0.8868, allocations: 0 / 1.395 GB, free: 2.656 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.8868, allocations: 8 kB / 1.395 GB, free: 2.648 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001393/0.8882, allocations: 1.053 MB / 1.396 GB, free: 1.895 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001466/0.8884, allocations: 181.2 kB / 1.396 GB, free: 1.707 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.572e-05/0.8885, allocations: 3.938 kB / 1.396 GB, free: 1.703 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004301/0.8889, allocations: 71.94 kB / 1.396 GB, free: 1.633 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.889, allocations: 39.22 kB / 1.397 GB, free: 1.602 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.8891, allocations: 25.98 kB / 1.397 GB, free: 1.582 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0004812/0.8896, allocations: 450.5 kB / 1.397 GB, free: 1.266 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007753/0.8903, allocations: 370 kB / 1.397 GB, free: 0.9023 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPID.I.y,limPID.D.x,limPIDOri.I.y,limPIDOri.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * Number of discrete variables: 7 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (92): * Single equations (assignments): 91 * 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.0001951/0.8905, allocations: 133.2 kB / 1.397 GB, free: 0.7695 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001406/0.892, allocations: 1.061 MB / 1.398 GB, free: 28 kB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.415e-06/0.892, allocations: 0 / 1.398 GB, free: 28 kB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0004158/0.8924, allocations: 320.2 kB / 1.399 GB, free: 15.81 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009143/0.8933, allocations: 204.8 kB / 1.399 GB, free: 15.65 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.8957, allocations: 1.365 MB / 1.4 GB, free: 14.41 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008573/0.8966, allocations: 1.199 MB / 1.401 GB, free: 13.19 MB / 0.8386 GB Notification: Performance of SimCode: time 3.81e-07/0.8966, allocations: 0 / 1.401 GB, free: 13.19 MB / 0.8386 GB Notification: Performance of Templates: time 0.02397/0.9206, allocations: 14.04 MB / 1.415 GB, free: 15.32 MB / 0.8542 GB make -j1 -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.makefile (rm -f Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe ; mkfifo Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe >> ../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.sim & ./Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Obsolete_Controls_OBC_CDL_Continuous_Validation_LimPID.csv","../files/Buildings_9_Buildings.Obsolete.Controls.OBC.CDL.Continuous.Validation.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches