Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.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.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_9_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_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.475/2.475, allocations: 390.3 MB / 405.3 MB, free: 13.42 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.00116/0.00116, allocations: 183.3 kB / 498.1 MB, free: 5.695 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.628/1.628, allocations: 223.2 MB / 0.7948 GB, free: 17.93 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.0009716/0.0009715, allocations: 96.2 kB / 0.9346 GB, free: 6.207 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003544/0.0003544, allocations: 15.38 kB / 1.084 GB, free: 220.8 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2687, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2002/0.469, allocations: 151.3 MB / 1.371 GB, free: 10.76 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002469/0.4693, allocations: 79.95 kB / 1.371 GB, free: 10.68 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.02569/0.495, allocations: 9.521 MB / 1.38 GB, free: 1.145 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.874e-06/0.495, allocations: 0 / 1.38 GB, free: 1.145 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 2.534e-05/0.4951, allocations: 12 kB / 1.38 GB, free: 1.133 MB / 0.8698 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.00153/0.4966, allocations: 0.832 MB / 1.381 GB, free: 252 kB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.369e-05/0.4967, allocations: 8.031 kB / 1.381 GB, free: 244 kB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001659/0.4968, allocations: 67.2 kB / 1.381 GB, free: 176 kB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000602/0.4975, allocations: 386.8 kB / 1.381 GB, free: 15.75 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.58e-05/0.4975, allocations: 44.98 kB / 1.381 GB, free: 15.71 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.242e-05/0.4976, allocations: 59.91 kB / 1.381 GB, free: 15.65 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008895/0.4985, allocations: 0.495 MB / 1.382 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.665e-05/0.4985, allocations: 0 / 1.382 GB, free: 15.14 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.595e-05/0.4986, allocations: 24 kB / 1.382 GB, free: 15.12 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.405e-05/0.4986, allocations: 12 kB / 1.382 GB, free: 15.11 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006632/0.4993, allocations: 355.8 kB / 1.382 GB, free: 14.76 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00254/0.5018, allocations: 1.605 MB / 1.384 GB, free: 13.09 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001015/0.5029, allocations: 0.8976 MB / 1.385 GB, free: 12.08 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 4.473e-05/0.5029, allocations: 4 kB / 1.385 GB, free: 12.07 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005196/0.5035, allocations: 252.9 kB / 1.385 GB, free: 11.82 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=49): time 2.134e-06/0.5035, allocations: 3.938 kB / 1.385 GB, free: 11.81 MB / 0.8855 GB Notification: Performance of matching and sorting (n=49): time 0.001041/0.5045, allocations: 0.5571 MB / 1.385 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.751e-05/0.5046, allocations: 111.2 kB / 1.386 GB, free: 11.12 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004253/0.505, allocations: 348.9 kB / 1.386 GB, free: 10.77 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 5.64e-05/0.5051, allocations: 37.7 kB / 1.386 GB, free: 10.72 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.5053, allocations: 253.1 kB / 1.386 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001276/0.5054, allocations: 161.6 kB / 1.386 GB, free: 10.31 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.296e-05/0.5055, allocations: 12 kB / 1.386 GB, free: 10.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001553/0.5056, allocations: 358.8 kB / 1.387 GB, free: 9.941 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003879/0.506, allocations: 177 kB / 1.387 GB, free: 9.77 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004424/0.5065, allocations: 274.5 kB / 1.387 GB, free: 9.469 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004189/0.5069, allocations: 226.5 kB / 1.387 GB, free: 9.238 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.5069, allocations: 11.95 kB / 1.387 GB, free: 9.227 MB / 0.8855 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001006/0.508, allocations: 0.5598 MB / 1.388 GB, free: 8.656 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003312/0.5083, allocations: 0.56 MB / 1.388 GB, free: 8.051 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.5083, allocations: 3.938 kB / 1.388 GB, free: 8.047 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.576e-05/0.5083, allocations: 4 kB / 1.388 GB, free: 8.043 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004654/0.5088, allocations: 99.83 kB / 1.389 GB, free: 7.945 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.537e-06/0.5088, allocations: 0 / 1.389 GB, free: 7.945 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003983/0.5092, allocations: 99.56 kB / 1.389 GB, free: 7.848 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.881e-05/0.5093, allocations: 27.98 kB / 1.389 GB, free: 7.82 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/0.5093, allocations: 4 kB / 1.389 GB, free: 7.816 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008112/0.5101, allocations: 456 kB / 1.389 GB, free: 7.363 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.609e-06/0.5102, allocations: 4 kB / 1.389 GB, free: 7.359 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.474e-06/0.5102, allocations: 8.031 kB / 1.389 GB, free: 7.352 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003106/0.5105, allocations: 91.8 kB / 1.389 GB, free: 7.262 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.646e-06/0.5105, allocations: 0 / 1.389 GB, free: 7.262 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003316/0.5108, allocations: 87.7 kB / 1.389 GB, free: 7.176 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.756e-05/0.5109, allocations: 19.98 kB / 1.389 GB, free: 7.156 MB / 0.8855 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.0003211/0.5112, allocations: 255.5 kB / 1.39 GB, free: 6.898 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.372e-05/0.5113, allocations: 51.44 kB / 1.39 GB, free: 6.848 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008597/0.5122, allocations: 453.4 kB / 1.39 GB, free: 6.398 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.769e-06/0.5122, allocations: 7.953 kB / 1.39 GB, free: 6.391 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.5122, allocations: 0 / 1.39 GB, free: 6.391 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.386e-06/0.5122, allocations: 3.984 kB / 1.39 GB, free: 6.387 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001699/0.5139, allocations: 1.172 MB / 1.391 GB, free: 5.137 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.5139, allocations: 4 kB / 1.391 GB, free: 5.133 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003436/0.5143, allocations: 83.89 kB / 1.391 GB, free: 5.051 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.471e-06/0.5143, allocations: 4 kB / 1.391 GB, free: 5.047 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.379e-05/0.5143, allocations: 15.98 kB / 1.391 GB, free: 5.031 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.478e-06/0.5143, allocations: 4 kB / 1.391 GB, free: 5.027 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.5144, allocations: 8.125 kB / 1.391 GB, free: 5.02 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001158/0.5155, allocations: 0.8298 MB / 1.392 GB, free: 4.117 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001185/0.5156, allocations: 132.5 kB / 1.392 GB, free: 3.969 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.292e-05/0.5157, allocations: 12 kB / 1.392 GB, free: 3.957 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.5159, allocations: 35.97 kB / 1.392 GB, free: 3.922 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.213e-05/0.516, allocations: 31.91 kB / 1.392 GB, free: 3.891 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.067e-05/0.516, allocations: 19.98 kB / 1.392 GB, free: 3.871 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0003017/0.5163, allocations: 283.1 kB / 1.393 GB, free: 3.598 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5164, allocations: 0 / 1.393 GB, free: 3.598 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0006233/0.517, allocations: 207.2 kB / 1.393 GB, free: 3.395 MB / 0.8855 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.0002588/0.5172, allocations: 138.9 kB / 1.393 GB, free: 3.246 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.001297/0.5186, allocations: 0.7876 MB / 1.394 GB, free: 2.434 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5186, allocations: 0 / 1.394 GB, free: 2.434 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0003216/0.5189, allocations: 205.1 kB / 1.394 GB, free: 2.234 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004808/0.5194, allocations: 85.48 kB / 1.394 GB, free: 2.152 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001635/0.521, allocations: 1.119 MB / 1.395 GB, free: 0.9883 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004177/0.5215, allocations: 0.8668 MB / 1.396 GB, free: 92 kB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.0002408/0.5217, allocations: 55.42 kB / 1.396 GB, free: 32 kB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001278/0.5218, allocations: 35.44 kB / 1.396 GB, free: 16 MB / 0.9011 GB Notification: Performance of SimCode: time 8.82e-07/0.5219, allocations: 4 kB / 1.396 GB, free: 15.99 MB / 0.9011 GB Notification: Performance of Templates: time 0.01125/0.5331, allocations: 5.531 MB / 1.401 GB, free: 10.52 MB / 0.9011 GB make -j1 -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.makefile (rm -f Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; mkfifo Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe >> ../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.sim & ./Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_OBC_CDL_Continuous_Validation_PIDScale.csv","../files/Buildings_9_Buildings.Controls.OBC.CDL.Continuous.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches