Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pidSca.y|pidNoSca.y|pla1.y|pla2.y|pidSca.u_s",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.269/2.269, allocations: 393.5 MB / 408.4 MB, free: 11.03 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.00104/0.00104, allocations: 179.9 kB / 0.4902 GB, free: 2.223 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.769/1.769, allocations: 223.1 MB / 0.7992 GB, free: 15.62 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.0009438/0.0009438, allocations: 106.9 kB / 0.9396 GB, free: 2.84 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003654, allocations: 11.25 kB / 1.09 GB, free: 212.8 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.305/0.3054, allocations: 143 MB / 1.229 GB, free: 85.45 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2202/0.5257, allocations: 152.1 MB / 1.378 GB, free: 13.2 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002341/0.526, allocations: 79.95 kB / 1.378 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.02588/0.5518, allocations: 9.535 MB / 1.387 GB, free: 3.566 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.176e-06/0.5519, allocations: 0 / 1.387 GB, free: 3.566 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.606e-05/0.552, allocations: 8 kB / 1.387 GB, free: 3.559 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: 124 * Number of variables: 124 Notification: Performance of Generate backend data structure: time 0.001441/0.5534, allocations: 0.8265 MB / 1.388 GB, free: 2.676 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.5535, allocations: 12.56 kB / 1.388 GB, free: 2.664 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001301/0.5536, allocations: 71.19 kB / 1.388 GB, free: 2.594 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005218/0.5541, allocations: 382.8 kB / 1.388 GB, free: 2.18 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.917e-05/0.5542, allocations: 37 kB / 1.388 GB, free: 2.141 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.186e-05/0.5543, allocations: 63.91 kB / 1.388 GB, free: 2.078 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008833/0.5552, allocations: 0.495 MB / 1.389 GB, free: 1.566 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.5552, allocations: 0 / 1.389 GB, free: 1.566 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.928e-05/0.5553, allocations: 24 kB / 1.389 GB, free: 1.543 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.547e-05/0.5553, allocations: 15.98 kB / 1.389 GB, free: 1.527 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006818/0.556, allocations: 355.8 kB / 1.389 GB, free: 1.18 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.5585, allocations: 1.601 MB / 1.391 GB, free: 15.52 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009437/0.5594, allocations: 0.8995 MB / 1.392 GB, free: 14.5 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 4.11e-05/0.5595, allocations: 8 kB / 1.392 GB, free: 14.5 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004993/0.56, allocations: 260.8 kB / 1.392 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=49): time 1.993e-06/0.56, allocations: 0 / 1.392 GB, free: 14.23 MB / 0.9011 GB Notification: Performance of matching and sorting (n=49): time 0.001048/0.561, allocations: 0.5532 MB / 1.393 GB, free: 13.67 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.733e-05/0.5611, allocations: 107.2 kB / 1.393 GB, free: 13.54 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003889/0.5615, allocations: 352.8 kB / 1.393 GB, free: 13.19 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 4.623e-05/0.5616, allocations: 41.7 kB / 1.393 GB, free: 13.14 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001834/0.5618, allocations: 249.1 kB / 1.393 GB, free: 12.9 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.5619, allocations: 161.7 kB / 1.393 GB, free: 12.74 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.745e-05/0.5619, allocations: 12 kB / 1.393 GB, free: 12.73 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001499/0.5621, allocations: 350.8 kB / 1.394 GB, free: 12.38 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003977/0.5625, allocations: 185 kB / 1.394 GB, free: 12.2 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004425/0.5629, allocations: 278.5 kB / 1.394 GB, free: 11.89 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.5634, allocations: 218.5 kB / 1.394 GB, free: 11.68 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.5634, allocations: 11.95 kB / 1.394 GB, free: 11.66 MB / 0.9011 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001021/0.5644, allocations: 0.5636 MB / 1.395 GB, free: 11.09 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002529/0.5647, allocations: 0.5608 MB / 1.396 GB, free: 10.48 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.927e-06/0.5647, allocations: 7.922 kB / 1.396 GB, free: 10.47 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.905e-05/0.5647, allocations: 4 kB / 1.396 GB, free: 10.47 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004229/0.5651, allocations: 95.88 kB / 1.396 GB, free: 10.38 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.171e-05/0.5652, allocations: 15.94 kB / 1.396 GB, free: 10.36 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000413/0.5656, allocations: 99.56 kB / 1.396 GB, free: 10.26 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.547e-05/0.5656, allocations: 20 kB / 1.396 GB, free: 10.24 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 8.806e-06/0.5657, allocations: 4 kB / 1.396 GB, free: 10.24 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000762/0.5664, allocations: 456 kB / 1.396 GB, free: 9.785 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-06/0.5664, allocations: 0 / 1.396 GB, free: 9.785 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.461e-06/0.5665, allocations: 4 kB / 1.396 GB, free: 9.781 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003181/0.5668, allocations: 95.72 kB / 1.396 GB, free: 9.688 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.5668, allocations: 4.156 kB / 1.396 GB, free: 9.684 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003463/0.5671, allocations: 87.55 kB / 1.396 GB, free: 9.598 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.242e-05/0.5672, allocations: 16 kB / 1.396 GB, free: 9.582 MB / 0.9011 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (56): * Single equations (assignments): 55 * 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.000289/0.5675, allocations: 261 kB / 1.397 GB, free: 9.316 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.271e-05/0.5675, allocations: 51.44 kB / 1.397 GB, free: 9.266 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009484/0.5685, allocations: 449.5 kB / 1.397 GB, free: 8.824 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.5685, allocations: 7.953 kB / 1.397 GB, free: 8.816 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.5685, allocations: 0 / 1.397 GB, free: 8.816 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.171e-05/0.5686, allocations: 3.984 kB / 1.397 GB, free: 8.812 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002336/0.5709, allocations: 1.172 MB / 1.398 GB, free: 7.562 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.5709, allocations: 0 / 1.398 GB, free: 7.562 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005307/0.5715, allocations: 87.89 kB / 1.398 GB, free: 7.477 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/0.5715, allocations: 4 kB / 1.398 GB, free: 7.473 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.145e-05/0.5715, allocations: 12 kB / 1.398 GB, free: 7.461 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.019e-05/0.5716, allocations: 4.188 kB / 1.398 GB, free: 7.457 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.5716, allocations: 7.938 kB / 1.398 GB, free: 7.449 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001622/0.5732, allocations: 0.8259 MB / 1.399 GB, free: 6.543 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.5734, allocations: 132.5 kB / 1.399 GB, free: 6.395 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.488e-05/0.5735, allocations: 19.92 kB / 1.399 GB, free: 6.375 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003392/0.5738, allocations: 31.98 kB / 1.399 GB, free: 6.344 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.642e-05/0.5739, allocations: 31.95 kB / 1.399 GB, free: 6.312 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.407e-05/0.574, allocations: 16 kB / 1.399 GB, free: 6.297 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0004492/0.5744, allocations: 283.1 kB / 1.4 GB, free: 6.02 MB / 0.9011 GB Notification: Performance of sort global known variables: time 2.01e-07/0.5744, allocations: 0 / 1.4 GB, free: 6.02 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.001054/0.5755, allocations: 203.4 kB / 1.4 GB, free: 5.82 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (pidSca.I.y,pidSca.D.x,pla1.y,pidNoSca.I.y,pidNoSca.D.x,pla2.y) * Number of discrete variables: 6 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * 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.0003099/0.5758, allocations: 135.8 kB / 1.4 GB, free: 5.676 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.001953/0.5778, allocations: 0.7837 MB / 1.401 GB, free: 4.871 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.5778, allocations: 0 / 1.401 GB, free: 4.871 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0005155/0.5783, allocations: 213 kB / 1.401 GB, free: 4.664 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007241/0.5791, allocations: 89.48 kB / 1.401 GB, free: 4.578 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002303/0.5814, allocations: 1.122 MB / 1.402 GB, free: 3.414 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005161/0.5819, allocations: 0.859 MB / 1.403 GB, free: 2.527 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.0003595/0.5823, allocations: 55.44 kB / 1.403 GB, free: 2.469 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001734/0.5825, allocations: 43.42 kB / 1.403 GB, free: 2.426 MB / 0.9011 GB Notification: Performance of SimCode: time 9.51e-07/0.5825, allocations: 0 / 1.403 GB, free: 2.426 MB / 0.9011 GB Notification: Performance of Templates: time 0.5735/1.156, allocations: 5.525 MB / 1.408 GB, free: 169.2 MB / 0.9011 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.csv","../files/Buildings_latest_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches