Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.741/1.741, allocations: 390.4 MB / 397.7 MB, free: 11.23 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.0008638/0.0008639, allocations: 191.9 kB / 490.8 MB, free: 1.945 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.083/1.083, allocations: 221.3 MB / 0.7863 GB, free: 13.69 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.0007925/0.0007929, allocations: 93.31 kB / 0.9264 GB, free: 14.23 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 6.583e-06/6.603e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1713, allocations: 143 MB / 1.212 GB, free: 40.11 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4726/0.6439, allocations: 151.3 MB / 1.359 GB, free: 17.28 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001427/0.6441, allocations: 75.05 kB / 1.359 GB, free: 17.28 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03709/0.6812, allocations: 15.71 MB / 1.375 GB, free: 16.29 MB / 0.823 GB Notification: Performance of Transformations before backend: time 4.712e-05/0.6813, allocations: 19.69 kB / 1.375 GB, free: 16.29 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: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.001858/0.6832, allocations: 1.106 MB / 1.376 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.001e-05/0.6832, allocations: 8.625 kB / 1.376 GB, free: 31.49 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002904/0.6835, allocations: 118.5 kB / 1.376 GB, free: 31.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007823/0.6843, allocations: 0.5592 MB / 1.377 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.43e-05/0.6843, allocations: 28.12 kB / 1.377 GB, free: 31.08 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001097/0.6844, allocations: 61.84 kB / 1.377 GB, free: 31.07 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008983/0.6853, allocations: 0.4916 MB / 1.377 GB, free: 31.05 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.6864, allocations: 0.6732 MB / 1.378 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.6864, allocations: 3.938 kB / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.922e-05/0.6865, allocations: 1.969 kB / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.025e-05/0.6865, allocations: 25.3 kB / 1.378 GB, free: 30.86 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003077/0.6896, allocations: 2.554 MB / 1.38 GB, free: 29.48 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009226/0.6905, allocations: 0.56 MB / 1.381 GB, free: 29.41 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.6909, allocations: 328.1 kB / 1.381 GB, free: 29.38 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.691, allocations: 12.22 kB / 1.381 GB, free: 29.37 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003692/0.6913, allocations: 289.2 kB / 1.381 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=75): time 1.773e-06/0.6913, allocations: 0 / 1.381 GB, free: 29.28 MB / 0.8386 GB Notification: Performance of matching and sorting (n=75): time 0.0007589/0.6921, allocations: 0.5034 MB / 1.382 GB, free: 29.16 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.6922, allocations: 192.8 kB / 1.382 GB, free: 28.94 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005009/0.6927, allocations: 453.1 kB / 1.383 GB, free: 28.8 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 4.915e-05/0.6927, allocations: 29.52 kB / 1.383 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001716/0.6929, allocations: 330.1 kB / 1.383 GB, free: 28.52 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001141/0.693, allocations: 243.3 kB / 1.383 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.35e-05/0.6931, allocations: 6.281 kB / 1.383 GB, free: 28.34 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.000136/0.6932, allocations: 374.9 kB / 1.383 GB, free: 28 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003504/0.6936, allocations: 218 kB / 1.384 GB, free: 28 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/0.694, allocations: 353.5 kB / 1.384 GB, free: 27.85 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004985/0.6945, allocations: 261 kB / 1.384 GB, free: 27.81 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.6945, allocations: 0 / 1.384 GB, free: 27.81 MB / 0.8386 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00105/0.6956, allocations: 0.6566 MB / 1.385 GB, free: 27.67 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001812/0.6957, allocations: 0.5296 MB / 1.385 GB, free: 27.12 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.6958, allocations: 5.25 kB / 1.385 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.84e-05/0.6958, allocations: 4.156 kB / 1.385 GB, free: 27.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006323/0.6964, allocations: 170.9 kB / 1.386 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.966e-06/0.6964, allocations: 5.125 kB / 1.386 GB, free: 27.08 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006037/0.697, allocations: 146.8 kB / 1.386 GB, free: 27.02 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.814e-05/0.6971, allocations: 30.05 kB / 1.386 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.873e-06/0.6971, allocations: 3.969 kB / 1.386 GB, free: 27.01 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008596/0.698, allocations: 0.5293 MB / 1.386 GB, free: 26.94 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-06/0.698, allocations: 1.281 kB / 1.386 GB, free: 26.94 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.975e-06/0.698, allocations: 7.969 kB / 1.386 GB, free: 26.94 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004721/0.6985, allocations: 125.7 kB / 1.386 GB, free: 26.92 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.283e-06/0.6985, allocations: 8.906 kB / 1.386 GB, free: 26.91 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.699, allocations: 110.4 kB / 1.387 GB, free: 26.86 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.633e-05/0.699, allocations: 33.3 kB / 1.387 GB, free: 26.86 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 (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.000137/0.6992, allocations: 123.8 kB / 1.387 GB, free: 26.74 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.869e-05/0.6993, allocations: 68.38 kB / 1.387 GB, free: 26.7 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007629/0.7, allocations: 0.5285 MB / 1.387 GB, free: 26.58 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.965e-06/0.7001, allocations: 7.812 kB / 1.387 GB, free: 26.58 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.358e-06/0.7001, allocations: 3.938 kB / 1.387 GB, free: 26.58 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.7001, allocations: 5.266 kB / 1.387 GB, free: 26.57 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.7018, allocations: 1.461 MB / 1.389 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.98e-06/0.7018, allocations: 3.5 kB / 1.389 GB, free: 25.93 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005652/0.7023, allocations: 151.7 kB / 1.389 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.7024, allocations: 9.281 kB / 1.389 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.772e-05/0.7024, allocations: 9.297 kB / 1.389 GB, free: 25.89 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.7024, allocations: 13.09 kB / 1.389 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7024, allocations: 3.562 kB / 1.389 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001105/0.7035, allocations: 1.042 MB / 1.39 GB, free: 25.42 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001021/0.7036, allocations: 167.8 kB / 1.39 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.16e-05/0.7037, allocations: 5.219 kB / 1.39 GB, free: 25.26 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003877/0.7041, allocations: 55.48 kB / 1.39 GB, free: 25.25 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.264e-05/0.7042, allocations: 44.09 kB / 1.39 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.8e-05/0.7042, allocations: 24.66 kB / 1.39 GB, free: 25.23 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0003983/0.7046, allocations: 353.4 kB / 1.391 GB, free: 25.11 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.000763/0.7054, allocations: 296 kB / 1.391 GB, free: 25.04 MB / 0.8386 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.0001843/0.7056, allocations: 130.2 kB / 1.391 GB, free: 24.93 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001203/0.7068, allocations: 0.9265 MB / 1.392 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.7068, allocations: 4.609 kB / 1.392 GB, free: 24.8 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003159/0.7072, allocations: 267.2 kB / 1.392 GB, free: 24.78 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006822/0.7078, allocations: 149 kB / 1.392 GB, free: 24.73 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.7096, allocations: 1.11 MB / 1.393 GB, free: 24.21 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006678/0.7103, allocations: 1.072 MB / 1.394 GB, free: 23.35 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.7103, allocations: 0 / 1.394 GB, free: 23.35 MB / 0.8386 GB Notification: Performance of Templates: time 0.01927/0.7296, allocations: 11.19 MB / 1.405 GB, free: 17.33 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PID.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches