Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.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.Utilities.Validation.PIDWithInputGains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.k|PIDWitInpGai.k|PID.Ti|PIDWitInpGai.Ti|PID.Td|PIDWitInpGai.Td|PID.y|PIDWitInpGai.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") translateModel(Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID.k|PIDWitInpGai.k|PID.Ti|PIDWitInpGai.Ti|PID.Td|PIDWitInpGai.Td|PID.y|PIDWitInpGai.y",fileNamePrefix="Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains") [: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.776/1.776, allocations: 387.2 MB / 394.5 MB, free: 13.66 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.0009012/0.0009012, allocations: 173.3 kB / 487 MB, free: 5.387 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.149/1.149, allocations: 221.3 MB / 0.7819 GB, free: 1.398 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.0008365/0.0008365, allocations: 108.9 kB / 0.9213 GB, free: 2.648 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 5.24e-06/5.27e-06, allocations: 0 / 1.066 GB, free: 168.3 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2104, allocations: 142.3 MB / 1.205 GB, free: 26.26 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5308/0.7412, allocations: 152.2 MB / 1.354 GB, free: 15.67 MB / 0.8073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001604/0.7414, allocations: 70.52 kB / 1.354 GB, free: 15.67 MB / 0.8073 GB Notification: Performance of FrontEnd: time 0.03969/0.7811, allocations: 16.44 MB / 1.37 GB, free: 7.656 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.711e-05/0.7812, allocations: 16 kB / 1.37 GB, free: 7.641 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.00127/0.7825, allocations: 1.112 MB / 1.371 GB, free: 6.52 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.156e-05/0.7825, allocations: 12.02 kB / 1.371 GB, free: 6.508 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001549/0.7827, allocations: 110.8 kB / 1.371 GB, free: 6.398 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007925/0.7835, allocations: 0.5882 MB / 1.372 GB, free: 5.887 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.722e-05/0.7835, allocations: 27.69 kB / 1.372 GB, free: 5.863 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001095/0.7836, allocations: 56 kB / 1.372 GB, free: 5.809 MB / 0.8073 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005699/0.7842, allocations: 391.5 kB / 1.372 GB, free: 5.578 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006794/0.7849, allocations: 0.5277 MB / 1.373 GB, free: 5.188 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.7849, allocations: 0 / 1.373 GB, free: 5.188 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-05/0.785, allocations: 15.3 kB / 1.373 GB, free: 5.176 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.785, allocations: 16 kB / 1.373 GB, free: 5.16 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002304/0.7873, allocations: 2.098 MB / 1.375 GB, free: 3.555 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005835/0.7879, allocations: 434.6 kB / 1.375 GB, free: 3.27 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002651/0.7882, allocations: 235 kB / 1.375 GB, free: 3.121 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.7882, allocations: 12.48 kB / 1.375 GB, free: 3.109 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003221/0.7885, allocations: 285.3 kB / 1.376 GB, free: 2.898 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=68): time 1.713e-06/0.7885, allocations: 0 / 1.376 GB, free: 2.898 MB / 0.8073 GB Notification: Performance of matching and sorting (n=68): time 0.0006194/0.7892, allocations: 475.3 kB / 1.376 GB, free: 2.543 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.82e-05/0.7892, allocations: 111.5 kB / 1.376 GB, free: 2.41 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003364/0.7895, allocations: 411.4 kB / 1.377 GB, free: 2.098 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 7.349e-05/0.7896, allocations: 44.94 kB / 1.377 GB, free: 2.051 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.7898, allocations: 268 kB / 1.377 GB, free: 1.816 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 9.013e-05/0.7899, allocations: 198 kB / 1.377 GB, free: 1.648 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.7899, allocations: 11.92 kB / 1.377 GB, free: 1.641 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.591e-05/0.79, allocations: 372.3 kB / 1.377 GB, free: 1.293 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004122/0.7904, allocations: 279.2 kB / 1.378 GB, free: 1.137 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000451/0.7909, allocations: 430.8 kB / 1.378 GB, free: 0.7969 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008072/0.7917, allocations: 346.9 kB / 1.378 GB, free: 0.5625 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.7917, allocations: 0 / 1.378 GB, free: 0.5625 MB / 0.8073 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001498/0.7932, allocations: 0.8555 MB / 1.379 GB, free: 15.92 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002835/0.7935, allocations: 1.051 MB / 1.38 GB, free: 14.81 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.564e-06/0.7935, allocations: 7.984 kB / 1.38 GB, free: 14.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.7935, allocations: 4 kB / 1.38 GB, free: 14.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.7939, allocations: 107.2 kB / 1.38 GB, free: 14.7 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.225e-05/0.794, allocations: 11.98 kB / 1.38 GB, free: 14.68 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.795, allocations: 267.3 kB / 1.381 GB, free: 14.42 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-05/0.7951, allocations: 48.98 kB / 1.381 GB, free: 14.38 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 5.661e-06/0.7951, allocations: 7.938 kB / 1.381 GB, free: 14.38 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001471/0.7966, allocations: 0.7521 MB / 1.382 GB, free: 13.84 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.7966, allocations: 4 kB / 1.382 GB, free: 13.84 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.121e-06/0.7966, allocations: 4 kB / 1.382 GB, free: 13.84 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003515/0.797, allocations: 99.27 kB / 1.382 GB, free: 13.74 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.797, allocations: 4 kB / 1.382 GB, free: 13.74 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009897/0.798, allocations: 255.3 kB / 1.382 GB, free: 13.49 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-05/0.7981, allocations: 47.34 kB / 1.382 GB, free: 13.45 MB / 0.823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 27 ($whenCondition11,$PRE.resSig.y,resSig.y,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,$PRE.pulse.booPul.y,pulse.booPul.y,$PRE.PIDWitInpGai.greThrkTd.greHys.y,PIDWitInpGai.greThrkTd.greHys.y,$PRE.k.booPul.y,k.booPul.y,$PRE.Ti.booPul.y,Ti.booPul.y,$PRE.Td.booPul.y,Td.booPul.y,$PRE.lesThr.lesHys.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (81): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 5 * 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.0001442/0.7982, allocations: 141.4 kB / 1.382 GB, free: 13.32 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.93e-05/0.7983, allocations: 67.16 kB / 1.382 GB, free: 13.25 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006856/0.799, allocations: 484.9 kB / 1.383 GB, free: 12.91 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.322e-06/0.799, allocations: 8 kB / 1.383 GB, free: 12.9 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.799, allocations: 0 / 1.383 GB, free: 12.9 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.293e-06/0.7991, allocations: 3.984 kB / 1.383 GB, free: 12.9 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001352/0.8004, allocations: 1.224 MB / 1.384 GB, free: 11.96 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.8004, allocations: 4 kB / 1.384 GB, free: 11.96 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003844/0.8008, allocations: 95.64 kB / 1.384 GB, free: 11.87 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.101e-06/0.8008, allocations: 4 kB / 1.384 GB, free: 11.87 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.363e-05/0.8009, allocations: 10.92 kB / 1.384 GB, free: 11.86 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.527e-06/0.8009, allocations: 8.094 kB / 1.384 GB, free: 11.85 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.8009, allocations: 0 / 1.384 GB, free: 11.85 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000952/0.8018, allocations: 0.8635 MB / 1.385 GB, free: 11.18 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 8.959e-05/0.8019, allocations: 146.8 kB / 1.385 GB, free: 11.02 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.619e-05/0.802, allocations: 7.312 kB / 1.385 GB, free: 11.02 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003276/0.8024, allocations: 43.95 kB / 1.385 GB, free: 10.98 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.036e-05/0.8025, allocations: 54.38 kB / 1.385 GB, free: 10.93 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.748e-05/0.8025, allocations: 22.61 kB / 1.385 GB, free: 10.91 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.0002539/0.8028, allocations: 301.4 kB / 1.385 GB, free: 10.7 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007079/0.8035, allocations: 317.8 kB / 1.386 GB, free: 10.39 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 4 (PIDWitInpGai.I.y,PIDWitInpGai.D.x,PID.I.y,PID.D.x) * Number of discrete variables: 20 ($whenCondition11,$whenCondition9,$whenCondition10,$whenCondition7,$whenCondition8,$whenCondition5,$whenCondition6,$whenCondition3,$whenCondition4,$whenCondition1,$whenCondition2,pulse.booPul.y,PIDWitInpGai.greThrkTd.greHys.y,resSig.y,k.booPul.y,Ti.booPul.y,Td.booPul.y,lesThr.lesHys.y,assMes.u,greThr.y) * Number of discrete states: 2 (PIDWitInpGai.greThrkTd.greHys.y,lesThr.lesHys.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.0001579/0.8036, allocations: 142.9 kB / 1.386 GB, free: 10.25 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.001526/0.8052, allocations: 1.327 MB / 1.387 GB, free: 9.242 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.8052, allocations: 5.25 kB / 1.387 GB, free: 9.238 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0003156/0.8055, allocations: 254.4 kB / 1.387 GB, free: 9.066 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006212/0.8061, allocations: 120.3 kB / 1.387 GB, free: 8.973 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001407/0.8075, allocations: 0.8995 MB / 1.388 GB, free: 8.156 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005357/0.8081, allocations: 1.003 MB / 1.389 GB, free: 7.137 MB / 0.823 GB Notification: Performance of SimCode: time 2.5e-07/0.8081, allocations: 0 / 1.389 GB, free: 7.137 MB / 0.823 GB Notification: Performance of Templates: time 0.01845/0.8266, allocations: 13.59 MB / 1.403 GB, free: 9.711 MB / 0.8386 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.makefile (rm -f Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & ./Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.csv","../files/Buildings_9_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches