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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.482/2.482, allocations: 390.3 MB / 405.3 MB, free: 13.48 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.001161/0.001161, allocations: 187.3 kB / 498.1 MB, free: 5.727 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.705/1.705, allocations: 223.2 MB / 0.7948 GB, free: 17.85 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.0009737/0.0009739, allocations: 98.45 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003523/0.0003526, allocations: 12.06 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3169, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1894/0.5063, allocations: 153 MB / 1.372 GB, free: 9.121 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002121/0.5066, allocations: 75.91 kB / 1.372 GB, free: 9.047 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.04396/0.5505, allocations: 16.81 MB / 1.389 GB, free: 8.207 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.903e-06/0.5506, allocations: 4 kB / 1.389 GB, free: 8.203 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 4.054e-05/0.5506, allocations: 16 kB / 1.389 GB, free: 8.188 MB / 0.8855 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.001997/0.5526, allocations: 1.208 MB / 1.39 GB, free: 6.891 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.5527, allocations: 8.031 kB / 1.39 GB, free: 6.883 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002018/0.5529, allocations: 106.8 kB / 1.39 GB, free: 6.777 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009871/0.5539, allocations: 0.5787 MB / 1.391 GB, free: 6.16 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.425e-05/0.554, allocations: 62 kB / 1.391 GB, free: 6.098 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.5541, allocations: 88 kB / 1.391 GB, free: 6.012 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001079/0.5552, allocations: 0.6684 MB / 1.391 GB, free: 5.328 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.821e-05/0.5552, allocations: 7.875 kB / 1.391 GB, free: 5.32 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.643e-05/0.5553, allocations: 28 kB / 1.391 GB, free: 5.293 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.446e-05/0.5553, allocations: 16 kB / 1.391 GB, free: 5.277 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008551/0.5562, allocations: 489 kB / 1.392 GB, free: 4.801 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003462/0.5596, allocations: 2.25 MB / 1.394 GB, free: 2.492 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.5607, allocations: 0.5616 MB / 1.395 GB, free: 1.922 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.133e-05/0.5608, allocations: 4.562 kB / 1.395 GB, free: 1.918 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006611/0.5615, allocations: 370.9 kB / 1.395 GB, free: 1.539 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=68): time 2.164e-06/0.5615, allocations: 0 / 1.395 GB, free: 1.539 MB / 0.8855 GB Notification: Performance of matching and sorting (n=68): time 0.001448/0.5629, allocations: 0.7794 MB / 1.396 GB, free: 0.7539 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.287e-05/0.563, allocations: 123.3 kB / 1.396 GB, free: 0.6094 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005845/0.5636, allocations: 474.1 kB / 1.396 GB, free: 140 kB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0001204/0.5637, allocations: 57.7 kB / 1.396 GB, free: 76 kB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003241/0.5641, allocations: 348.4 kB / 1.397 GB, free: 15.73 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001548/0.5642, allocations: 197.2 kB / 1.397 GB, free: 15.53 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.413e-05/0.5643, allocations: 24 kB / 1.397 GB, free: 15.51 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001674/0.5645, allocations: 374.8 kB / 1.397 GB, free: 15.13 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007031/0.5652, allocations: 349.5 kB / 1.398 GB, free: 14.79 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007889/0.566, allocations: 492.4 kB / 1.398 GB, free: 14.26 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007244/0.5667, allocations: 483.6 kB / 1.399 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.5667, allocations: 4 kB / 1.399 GB, free: 13.75 MB / 0.9011 GB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001887/0.5686, allocations: 1.106 MB / 1.4 GB, free: 12.61 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0005254/0.5692, allocations: 1.203 MB / 1.401 GB, free: 11.29 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.5692, allocations: 4 kB / 1.401 GB, free: 11.29 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.5692, allocations: 8.062 kB / 1.401 GB, free: 11.28 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004469/0.5697, allocations: 115.8 kB / 1.401 GB, free: 11.17 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.259e-05/0.5697, allocations: 7.953 kB / 1.401 GB, free: 11.16 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001144/0.5708, allocations: 267.2 kB / 1.401 GB, free: 10.9 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-05/0.571, allocations: 43.97 kB / 1.401 GB, free: 10.86 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.036e-05/0.571, allocations: 4 kB / 1.401 GB, free: 10.85 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001602/0.5726, allocations: 1.023 MB / 1.402 GB, free: 9.797 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.161e-06/0.5726, allocations: 4 kB / 1.402 GB, free: 9.793 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.873e-06/0.5726, allocations: 4 kB / 1.402 GB, free: 9.789 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003558/0.573, allocations: 99.83 kB / 1.402 GB, free: 9.691 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.573, allocations: 4 kB / 1.402 GB, free: 9.688 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.574, allocations: 251.7 kB / 1.403 GB, free: 9.441 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.129e-05/0.5741, allocations: 47.97 kB / 1.403 GB, free: 9.395 MB / 0.9011 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 () * Number of clocked 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.0005317/0.5746, allocations: 311 kB / 1.403 GB, free: 9.082 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.5747, allocations: 67.16 kB / 1.403 GB, free: 9.016 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001059/0.5758, allocations: 0.607 MB / 1.404 GB, free: 8.398 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.5758, allocations: 11.98 kB / 1.404 GB, free: 8.387 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.5758, allocations: 0 / 1.404 GB, free: 8.387 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.851e-06/0.5759, allocations: 3.938 kB / 1.404 GB, free: 8.383 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.5778, allocations: 1.44 MB / 1.405 GB, free: 6.879 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.5778, allocations: 0 / 1.405 GB, free: 6.879 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003946/0.5783, allocations: 107.9 kB / 1.405 GB, free: 6.773 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.741e-06/0.5783, allocations: 3.938 kB / 1.405 GB, free: 6.77 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.839e-05/0.5783, allocations: 16 kB / 1.405 GB, free: 6.754 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.622e-06/0.5783, allocations: 7.984 kB / 1.405 GB, free: 6.746 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.5783, allocations: 0 / 1.405 GB, free: 6.746 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/0.5797, allocations: 1.012 MB / 1.406 GB, free: 5.688 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001257/0.5799, allocations: 144.2 kB / 1.406 GB, free: 5.527 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.066e-05/0.58, allocations: 23.95 kB / 1.406 GB, free: 5.504 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003289/0.5803, allocations: 51.95 kB / 1.406 GB, free: 5.453 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.5804, allocations: 64.41 kB / 1.406 GB, free: 5.391 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.5805, allocations: 28 kB / 1.406 GB, free: 5.363 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0003992/0.5809, allocations: 362.8 kB / 1.407 GB, free: 5.012 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5809, allocations: 0 / 1.407 GB, free: 5.012 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001005/0.5819, allocations: 355 kB / 1.407 GB, free: 4.664 MB / 0.9011 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) * Number of clocked states: 0 () * 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.0002152/0.5821, allocations: 151.9 kB / 1.407 GB, free: 4.504 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.002421/0.5845, allocations: 1.838 MB / 1.409 GB, free: 2.547 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5846, allocations: 0 / 1.409 GB, free: 2.547 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0004573/0.585, allocations: 299.3 kB / 1.409 GB, free: 2.254 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007022/0.5857, allocations: 142.1 kB / 1.409 GB, free: 2.113 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002047/0.5878, allocations: 1.465 MB / 1.411 GB, free: 0.6055 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004834/0.5883, allocations: 0.9467 MB / 1.412 GB, free: 15.63 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0003489/0.5886, allocations: 76.97 kB / 1.412 GB, free: 15.56 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000154/0.5888, allocations: 59.42 kB / 1.412 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of SimCode: time 7.31e-07/0.5888, allocations: 0 / 1.412 GB, free: 15.5 MB / 0.9167 GB Notification: Performance of Templates: time 0.01957/0.6084, allocations: 12.2 MB / 1.424 GB, free: 3.434 MB / 0.9167 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