Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.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.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_latest_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_latest_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 10.0.0-master/package.mo): time 1.705/1.705, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.0009157/0.0009159, allocations: 173.3 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.054/1.054, allocations: 221.3 MB / 0.7863 GB, free: 13.73 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.0008043/0.0008043, allocations: 101.5 kB / 0.9264 GB, free: 14.26 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 5.45e-06/5.461e-06, allocations: 4 kB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1649, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.4483/0.6133, allocations: 153 MB / 1.361 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001599/0.6135, allocations: 68.12 kB / 1.361 GB, free: 17.25 MB / 0.823 GB Notification: Performance of FrontEnd: time 0.03908/0.6526, allocations: 16.45 MB / 1.377 GB, free: 15.7 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.28e-05/0.6526, allocations: 15.41 kB / 1.377 GB, free: 15.7 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.001491/0.6541, allocations: 1.111 MB / 1.378 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.017e-05/0.6542, allocations: 8.906 kB / 1.378 GB, free: 30.84 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002165/0.6544, allocations: 104.4 kB / 1.378 GB, free: 30.79 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008918/0.6553, allocations: 0.5909 MB / 1.379 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.277e-05/0.6553, allocations: 22 kB / 1.379 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001299/0.6555, allocations: 67.22 kB / 1.379 GB, free: 30.43 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006929/0.6562, allocations: 385.5 kB / 1.379 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007762/0.6569, allocations: 0.538 MB / 1.38 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.657, allocations: 0 / 1.38 GB, free: 30.26 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.285e-05/0.657, allocations: 9.25 kB / 1.38 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.657, allocations: 16.56 kB / 1.38 GB, free: 30.25 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00264/0.6597, allocations: 2.094 MB / 1.382 GB, free: 29.2 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006636/0.6604, allocations: 438.6 kB / 1.382 GB, free: 29.13 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.6607, allocations: 239.8 kB / 1.383 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.6607, allocations: 15.22 kB / 1.383 GB, free: 29.11 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003547/0.6611, allocations: 280.5 kB / 1.383 GB, free: 29 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=68): time 1.583e-06/0.6611, allocations: 0 / 1.383 GB, free: 29 MB / 0.8386 GB Notification: Performance of matching and sorting (n=68): time 0.0007066/0.6618, allocations: 471.5 kB / 1.383 GB, free: 28.9 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.037e-05/0.6618, allocations: 119.7 kB / 1.383 GB, free: 28.77 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004038/0.6623, allocations: 397.5 kB / 1.384 GB, free: 28.62 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 8.206e-05/0.6623, allocations: 43.75 kB / 1.384 GB, free: 28.59 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001616/0.6625, allocations: 282.5 kB / 1.384 GB, free: 28.39 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 9.611e-05/0.6626, allocations: 192.7 kB / 1.384 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.11e-05/0.6627, allocations: 7.75 kB / 1.384 GB, free: 28.25 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001429/0.6628, allocations: 377.9 kB / 1.385 GB, free: 27.91 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004589/0.6633, allocations: 277.5 kB / 1.385 GB, free: 27.9 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005007/0.6638, allocations: 428.2 kB / 1.385 GB, free: 27.74 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000864/0.6647, allocations: 342.5 kB / 1.386 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.6647, allocations: 5.312 kB / 1.386 GB, free: 27.66 MB / 0.8386 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001607/0.6663, allocations: 0.8537 MB / 1.386 GB, free: 27.47 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002545/0.6666, allocations: 1.051 MB / 1.387 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.6666, allocations: 2.625 kB / 1.387 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.6666, allocations: 6.688 kB / 1.388 GB, free: 26.37 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004174/0.667, allocations: 110.9 kB / 1.388 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.007e-06/0.667, allocations: 10.58 kB / 1.388 GB, free: 26.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00104/0.6681, allocations: 274.1 kB / 1.388 GB, free: 26.24 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.262e-05/0.6682, allocations: 45.12 kB / 1.388 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 6.062e-06/0.6682, allocations: 3.969 kB / 1.388 GB, free: 26.23 MB / 0.8386 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001515/0.6697, allocations: 0.7482 MB / 1.389 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.6697, allocations: 2.969 kB / 1.389 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.975e-06/0.6697, allocations: 10.53 kB / 1.389 GB, free: 26.11 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003447/0.6701, allocations: 94.55 kB / 1.389 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.681e-06/0.6701, allocations: 6.406 kB / 1.389 GB, free: 26.09 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009879/0.6711, allocations: 255.5 kB / 1.389 GB, free: 26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.53e-05/0.6712, allocations: 44.41 kB / 1.389 GB, free: 25.99 MB / 0.8386 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.0001736/0.6714, allocations: 134.3 kB / 1.389 GB, free: 25.88 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.208e-05/0.6715, allocations: 65.11 kB / 1.389 GB, free: 25.84 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007332/0.6722, allocations: 495.7 kB / 1.39 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.6722, allocations: 7.25 kB / 1.39 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.6722, allocations: 0 / 1.39 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.833e-06/0.6722, allocations: 7.984 kB / 1.39 GB, free: 25.71 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001363/0.6736, allocations: 1.222 MB / 1.391 GB, free: 25.17 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.6736, allocations: 0 / 1.391 GB, free: 25.17 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003864/0.674, allocations: 101.6 kB / 1.391 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.674, allocations: 7.531 kB / 1.391 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.467e-05/0.6741, allocations: 11.42 kB / 1.391 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.506e-06/0.6741, allocations: 2.719 kB / 1.391 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.464e-06/0.6741, allocations: 1.75 kB / 1.391 GB, free: 25.14 MB / 0.8386 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009472/0.675, allocations: 0.8615 MB / 1.392 GB, free: 24.83 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 8.086e-05/0.6751, allocations: 142.1 kB / 1.392 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.994e-05/0.6752, allocations: 6.969 kB / 1.392 GB, free: 24.7 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003299/0.6756, allocations: 49.48 kB / 1.392 GB, free: 24.68 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.972e-05/0.6757, allocations: 53.19 kB / 1.392 GB, free: 24.65 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.6757, allocations: 22.28 kB / 1.392 GB, free: 24.65 MB / 0.8386 GB Notification: Performance of sort global known variables: time 0.0002783/0.676, allocations: 302.5 kB / 1.392 GB, free: 24.55 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0007742/0.6768, allocations: 308.7 kB / 1.393 GB, free: 24.48 MB / 0.8386 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.0001479/0.6769, allocations: 139.5 kB / 1.393 GB, free: 24.38 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.001523/0.6784, allocations: 1.335 MB / 1.394 GB, free: 23.98 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.6785, allocations: 0 / 1.394 GB, free: 23.98 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0003124/0.6788, allocations: 254.1 kB / 1.394 GB, free: 23.96 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006358/0.6794, allocations: 138.2 kB / 1.395 GB, free: 23.91 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001558/0.681, allocations: 0.8986 MB / 1.395 GB, free: 23.52 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006311/0.6816, allocations: 1.006 MB / 1.396 GB, free: 22.7 MB / 0.8386 GB Notification: Performance of SimCode: time 2.2e-07/0.6816, allocations: 3.938 kB / 1.396 GB, free: 22.69 MB / 0.8386 GB Notification: Performance of Templates: time 0.01734/0.699, allocations: 13.58 MB / 1.41 GB, free: 13.16 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.sim & ./Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_Utilities_Validation_PIDWithInputGains.csv","../files/Buildings_latest_Buildings.Controls.OBC.Utilities.Validation.PIDWithInputGains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches