Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 1.745/1.745, allocations: 390.4 MB / 397.7 MB, free: 11.29 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.0008351/0.0008352, allocations: 177.3 kB / 490.8 MB, free: 1.969 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.082/1.082, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007736/0.0007736, allocations: 89.42 kB / 0.9264 GB, free: 14.2 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.935e-06/7.955e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1705/0.1705, allocations: 143 MB / 1.212 GB, free: 40.12 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4686/0.6392, allocations: 151.2 MB / 1.359 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001752/0.6394, allocations: 79.03 kB / 1.359 GB, free: 17.29 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.0216/0.661, allocations: 9.141 MB / 1.368 GB, free: 16.71 MB / 0.823 GB Notification: Performance of Transformations before backend: time 2.116e-05/0.6611, allocations: 15.17 kB / 1.368 GB, free: 16.71 MB / 0.823 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001007/0.6621, allocations: 0.7542 MB / 1.369 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 2.857e-05/0.6621, allocations: 8.5 kB / 1.369 GB, free: 32.18 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001108/0.6622, allocations: 70.67 kB / 1.369 GB, free: 32.14 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.6627, allocations: 391.6 kB / 1.369 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.411e-05/0.6627, allocations: 15.59 kB / 1.37 GB, free: 31.89 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.88e-05/0.6628, allocations: 38.16 kB / 1.37 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004496/0.6632, allocations: 276.7 kB / 1.37 GB, free: 31.88 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005643/0.6638, allocations: 397.3 kB / 1.37 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.6638, allocations: 1.625 kB / 1.37 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.6639, allocations: 0 / 1.37 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.6639, allocations: 11.75 kB / 1.37 GB, free: 31.81 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001733/0.6656, allocations: 1.467 MB / 1.372 GB, free: 31.29 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002704/0.6659, allocations: 213.5 kB / 1.372 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004061/0.6663, allocations: 281.9 kB / 1.372 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.439e-05/0.6664, allocations: 5.094 kB / 1.372 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002544/0.6666, allocations: 210 kB / 1.372 GB, free: 31.19 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=49): time 1.502e-06/0.6666, allocations: 4 kB / 1.372 GB, free: 31.18 MB / 0.8386 GB Notification: Performance of matching and sorting (n=49): time 0.0004949/0.6671, allocations: 344.3 kB / 1.373 GB, free: 31.12 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.6672, allocations: 111.2 kB / 1.373 GB, free: 31 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002644/0.6674, allocations: 270.3 kB / 1.373 GB, free: 30.9 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 3.659e-05/0.6675, allocations: 31.33 kB / 1.373 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001125/0.6676, allocations: 212.1 kB / 1.373 GB, free: 30.73 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 8.474e-05/0.6677, allocations: 157.8 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.484e-05/0.6677, allocations: 1.562 kB / 1.373 GB, free: 30.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.6678, allocations: 353.5 kB / 1.374 GB, free: 30.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002226/0.6681, allocations: 151.6 kB / 1.374 GB, free: 30.3 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002474/0.6683, allocations: 226.9 kB / 1.374 GB, free: 30.22 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/0.6687, allocations: 179.3 kB / 1.374 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.6687, allocations: 1.25 kB / 1.374 GB, free: 30.21 MB / 0.8386 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007088/0.6694, allocations: 458.6 kB / 1.375 GB, free: 30.14 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001713/0.6696, allocations: 0.5289 MB / 1.375 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.6696, allocations: 6.031 kB / 1.375 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/0.6696, allocations: 3.344 kB / 1.375 GB, free: 29.59 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004276/0.67, allocations: 104.8 kB / 1.375 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.134e-06/0.6701, allocations: 5.688 kB / 1.375 GB, free: 29.58 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003859/0.6705, allocations: 89.5 kB / 1.375 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.477e-05/0.6705, allocations: 19.97 kB / 1.375 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 5.601e-06/0.6705, allocations: 4.469 kB / 1.375 GB, free: 29.55 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006534/0.6712, allocations: 386.6 kB / 1.376 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.975e-06/0.6712, allocations: 1.219 kB / 1.376 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.18e-06/0.6712, allocations: 4.5 kB / 1.376 GB, free: 29.54 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003275/0.6715, allocations: 81.27 kB / 1.376 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.6715, allocations: 3.5 kB / 1.376 GB, free: 29.53 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003347/0.6719, allocations: 78.38 kB / 1.376 GB, free: 29.51 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.435e-05/0.6719, allocations: 17.67 kB / 1.376 GB, free: 29.51 MB / 0.8386 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 (56): * Single equations (assignments): 55 * 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.0001057/0.672, allocations: 122.5 kB / 1.376 GB, free: 29.39 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.916e-05/0.6721, allocations: 39.95 kB / 1.376 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005166/0.6726, allocations: 369 kB / 1.376 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.191e-06/0.6726, allocations: 9.078 kB / 1.376 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6726, allocations: 0 / 1.376 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.6726, allocations: 2.781 kB / 1.376 GB, free: 29.31 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.6738, allocations: 1.009 MB / 1.377 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.6738, allocations: 2.484 kB / 1.377 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003996/0.6742, allocations: 84.95 kB / 1.378 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.581e-06/0.6742, allocations: 4 kB / 1.378 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.678e-05/0.6743, allocations: 8.031 kB / 1.378 GB, free: 28.95 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.6743, allocations: 12.5 kB / 1.378 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.6743, allocations: 1.094 kB / 1.378 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000737/0.675, allocations: 0.7244 MB / 1.378 GB, free: 28.63 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 5.714e-05/0.6751, allocations: 124 kB / 1.378 GB, free: 28.51 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.363e-05/0.6752, allocations: 8.391 kB / 1.378 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002393/0.6754, allocations: 26.25 kB / 1.378 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.629e-05/0.6755, allocations: 26.17 kB / 1.378 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-05/0.6755, allocations: 21.22 kB / 1.378 GB, free: 28.5 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0001966/0.6757, allocations: 218.3 kB / 1.379 GB, free: 28.41 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0005124/0.6762, allocations: 185.6 kB / 1.379 GB, free: 28.36 MB / 0.8386 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (49): * Single equations (assignments): 48 * 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.0001639/0.6764, allocations: 121.4 kB / 1.379 GB, free: 28.27 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0008345/0.6772, allocations: 0.646 MB / 1.38 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.6772, allocations: 0.9688 kB / 1.38 GB, free: 28.17 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0002131/0.6775, allocations: 187.7 kB / 1.38 GB, free: 28.15 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004523/0.6779, allocations: 71.58 kB / 1.38 GB, free: 28.14 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001072/0.679, allocations: 0.7081 MB / 1.381 GB, free: 27.84 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005176/0.6795, allocations: 0.9097 MB / 1.381 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.6795, allocations: 0 / 1.381 GB, free: 27.13 MB / 0.8386 GB Notification: Performance of Templates: time 0.01089/0.6904, allocations: 6.898 MB / 1.388 GB, free: 24.88 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches