Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.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.Controls.OBC.CDL.Continuous.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID") [: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.789/1.789, allocations: 387.2 MB / 394.5 MB, free: 13.65 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.0009285/0.0009285, allocations: 177.3 kB / 487 MB, free: 5.367 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.116/1.116, allocations: 221.3 MB / 0.7819 GB, free: 1.34 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.0007945/0.0007942, allocations: 90.44 kB / 0.9213 GB, free: 2.598 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 7.214e-06/7.234e-06, allocations: 4 kB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1816, allocations: 142.3 MB / 1.205 GB, free: 26.19 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5264/0.708, allocations: 150.5 MB / 1.352 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000185/0.7082, allocations: 74.56 kB / 1.352 GB, free: 15.96 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.0378/0.746, allocations: 15.72 MB / 1.368 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.402e-05/0.7461, allocations: 23.91 kB / 1.368 GB, free: 9.57 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.00137/0.7474, allocations: 1.092 MB / 1.369 GB, free: 8.492 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.183e-05/0.7475, allocations: 9.031 kB / 1.369 GB, free: 8.484 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001514/0.7476, allocations: 122.6 kB / 1.369 GB, free: 8.363 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006539/0.7483, allocations: 0.5654 MB / 1.369 GB, free: 7.879 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.675e-05/0.7483, allocations: 28 kB / 1.369 GB, free: 7.852 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.23e-05/0.7484, allocations: 59.72 kB / 1.369 GB, free: 7.797 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007682/0.7492, allocations: 0.4906 MB / 1.37 GB, free: 7.5 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008794/0.7501, allocations: 0.6676 MB / 1.371 GB, free: 7 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.067e-05/0.7501, allocations: 8 kB / 1.371 GB, free: 6.992 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.656e-05/0.7502, allocations: 0 / 1.371 GB, free: 6.992 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.7502, allocations: 20 kB / 1.371 GB, free: 6.973 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002629/0.7528, allocations: 2.555 MB / 1.373 GB, free: 4.957 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008428/0.7537, allocations: 0.5563 MB / 1.374 GB, free: 4.57 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003547/0.754, allocations: 323.4 kB / 1.374 GB, free: 4.379 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.856e-05/0.7541, allocations: 19.81 kB / 1.374 GB, free: 4.363 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003369/0.7544, allocations: 292.4 kB / 1.374 GB, free: 4.156 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=75): time 1.703e-06/0.7544, allocations: 3.938 kB / 1.374 GB, free: 4.152 MB / 0.8073 GB Notification: Performance of matching and sorting (n=75): time 0.0006618/0.7551, allocations: 0.4968 MB / 1.375 GB, free: 3.777 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.7552, allocations: 200.5 kB / 1.375 GB, free: 3.539 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003935/0.7556, allocations: 460.6 kB / 1.375 GB, free: 3.199 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 4.388e-05/0.7556, allocations: 29.7 kB / 1.375 GB, free: 3.164 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001273/0.7557, allocations: 316.8 kB / 1.376 GB, free: 2.887 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001034/0.7558, allocations: 239.2 kB / 1.376 GB, free: 2.68 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.178e-05/0.7559, allocations: 4 kB / 1.376 GB, free: 2.676 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.95e-05/0.756, allocations: 385.6 kB / 1.376 GB, free: 2.32 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002993/0.7563, allocations: 215.1 kB / 1.377 GB, free: 2.207 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003439/0.7566, allocations: 357 kB / 1.377 GB, free: 1.922 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004384/0.7571, allocations: 249.4 kB / 1.377 GB, free: 1.77 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.7571, allocations: 4 kB / 1.377 GB, free: 1.766 MB / 0.8073 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.0009009/0.758, allocations: 0.6599 MB / 1.378 GB, free: 1.281 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 7.734e-05/0.7581, allocations: 0.5304 MB / 1.378 GB, free: 0.7227 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/0.7581, allocations: 0 / 1.378 GB, free: 0.7227 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.324e-05/0.7581, allocations: 4 kB / 1.378 GB, free: 0.7188 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00059/0.7587, allocations: 174.9 kB / 1.378 GB, free: 0.5547 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.987e-06/0.7587, allocations: 8 kB / 1.378 GB, free: 0.5469 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005529/0.7593, allocations: 151.3 kB / 1.379 GB, free: 408 kB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-05/0.7593, allocations: 23.61 kB / 1.379 GB, free: 388 kB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 4.679e-06/0.7593, allocations: 4 kB / 1.379 GB, free: 384 kB / 0.8073 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007564/0.7601, allocations: 0.5236 MB / 1.379 GB, free: 16 kB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.545e-06/0.7601, allocations: 4 kB / 1.379 GB, free: 12 kB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.039e-06/0.7601, allocations: 4 kB / 1.379 GB, free: 8 kB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.7606, allocations: 130.8 kB / 1.379 GB, free: 15.88 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.7606, allocations: 12.16 kB / 1.379 GB, free: 15.87 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004607/0.7611, allocations: 103.5 kB / 1.379 GB, free: 15.77 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.103e-05/0.7612, allocations: 30.8 kB / 1.379 GB, free: 15.75 MB / 0.823 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 (87): * Single equations (assignments): 86 * 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.0001254/0.7613, allocations: 127.1 kB / 1.38 GB, free: 15.62 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.819e-05/0.7614, allocations: 67.16 kB / 1.38 GB, free: 15.55 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007855/0.7622, allocations: 0.526 MB / 1.38 GB, free: 15.19 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.7622, allocations: 12 kB / 1.38 GB, free: 15.18 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.213e-06/0.7622, allocations: 7.906 kB / 1.38 GB, free: 15.17 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.817e-06/0.7622, allocations: 7.984 kB / 1.38 GB, free: 15.16 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001791/0.764, allocations: 1.463 MB / 1.382 GB, free: 14.05 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.117e-06/0.764, allocations: 3.938 kB / 1.382 GB, free: 14.04 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000585/0.7646, allocations: 158.5 kB / 1.382 GB, free: 13.89 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.623e-06/0.7646, allocations: 4 kB / 1.382 GB, free: 13.89 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.7647, allocations: 7.984 kB / 1.382 GB, free: 13.88 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.471e-06/0.7647, allocations: 8 kB / 1.382 GB, free: 13.88 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.7647, allocations: 0 / 1.382 GB, free: 13.88 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00115/0.7658, allocations: 1.049 MB / 1.383 GB, free: 13 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000117/0.766, allocations: 159.2 kB / 1.383 GB, free: 12.83 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.917e-05/0.7661, allocations: 11.92 kB / 1.383 GB, free: 12.82 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003881/0.7664, allocations: 59.94 kB / 1.383 GB, free: 12.76 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.7665, allocations: 47.69 kB / 1.383 GB, free: 12.72 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.657e-05/0.7666, allocations: 23.5 kB / 1.383 GB, free: 12.7 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0003333/0.7669, allocations: 350.4 kB / 1.383 GB, free: 12.46 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0006953/0.7676, allocations: 294.5 kB / 1.384 GB, free: 12.17 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (limPID.I.y,limPID.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * 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 (75): * Single equations (assignments): 74 * 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.0001834/0.7678, allocations: 142.5 kB / 1.384 GB, free: 12.03 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001173/0.769, allocations: 0.9129 MB / 1.385 GB, free: 11.41 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.769, allocations: 8.062 kB / 1.385 GB, free: 11.4 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003188/0.7693, allocations: 264.3 kB / 1.385 GB, free: 11.22 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007034/0.77, allocations: 135.7 kB / 1.385 GB, free: 11.11 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.7718, allocations: 1.107 MB / 1.386 GB, free: 10.08 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006776/0.7725, allocations: 1.068 MB / 1.387 GB, free: 8.988 MB / 0.823 GB Notification: Performance of SimCode: time 2.31e-07/0.7725, allocations: 4 kB / 1.387 GB, free: 8.984 MB / 0.823 GB Notification: Performance of Templates: time 0.01758/0.7901, allocations: 11.19 MB / 1.398 GB, free: 13.91 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PID.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches