Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.PIDScale") translateModel(Buildings.Controls.OBC.CDL.Reals.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.Reals.Validation.PIDScale") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005805/0.005805, allocations: 99.38 kB / 15.73 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001076/0.001076, allocations: 187.6 kB / 16.67 MB, free: 5.961 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.953/2.953, allocations: 461.8 MB / 0.7347 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.002205/0.002205, allocations: 67.91 kB / 1.054 GB, free: 7.086 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4278/0.43, allocations: 157.4 MB / 1.208 GB, free: 9.574 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.004215/0.4342, allocations: 2.082 MB / 1.21 GB, free: 7.488 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004203/0.4385, allocations: 1.602 MB / 1.211 GB, free: 5.871 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000905/0.4394, allocations: 15.94 kB / 1.211 GB, free: 5.855 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005918/0.4401, allocations: 83.06 kB / 1.211 GB, free: 5.773 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0007324/0.4409, allocations: 83.19 kB / 1.212 GB, free: 5.691 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.4426, allocations: 323.8 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001375/0.4439, allocations: 0.692 MB / 1.213 GB, free: 4.688 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007461/0.4447, allocations: 321.3 kB / 1.213 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005081/0.4452, allocations: 263 kB / 1.213 GB, free: 4.109 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000544/0.4458, allocations: 278.6 kB / 1.213 GB, free: 3.836 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001986/0.446, allocations: 84 kB / 1.213 GB, free: 3.754 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002372/0.4462, allocations: 87.92 kB / 1.214 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001808/0.4464, allocations: 147.5 kB / 1.214 GB, free: 3.523 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0004503/0.4469, allocations: 302.4 kB / 1.214 GB, free: 3.227 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.001299/0.4482, allocations: 0.8291 MB / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 9.428e-06/0.4482, allocations: 0 / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of FrontEnd: time 4.208e-06/0.4482, allocations: 0 / 1.215 GB, free: 2.395 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.232e-05/0.4483, allocations: 0 / 1.215 GB, free: 2.395 MB / 0.9669 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.002887/0.4512, allocations: 0.9032 MB / 1.216 GB, free: 1.43 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 6.237e-05/0.4512, allocations: 8.031 kB / 1.216 GB, free: 1.422 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.4515, allocations: 72.12 kB / 1.216 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008459/0.4524, allocations: 408.6 kB / 1.216 GB, free: 0.9102 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.472e-05/0.4524, allocations: 41.38 kB / 1.216 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-05/0.4525, allocations: 64.36 kB / 1.216 GB, free: 0.8086 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001102/0.4537, allocations: 495.5 kB / 1.217 GB, free: 320 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/0.4537, allocations: 192 / 1.217 GB, free: 320 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.878e-05/0.4537, allocations: 27.94 kB / 1.217 GB, free: 292 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.4538, allocations: 12 kB / 1.217 GB, free: 280 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007153/0.4545, allocations: 347.8 kB / 1.217 GB, free: 15.93 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002611/0.4571, allocations: 1.546 MB / 1.219 GB, free: 14.33 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001137/0.4583, allocations: 0.8666 MB / 1.219 GB, free: 13.34 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004187/0.4587, allocations: 240.4 kB / 1.22 GB, free: 13.11 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.481e-05/0.4587, allocations: 7.938 kB / 1.22 GB, free: 13.1 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005121/0.4593, allocations: 248.7 kB / 1.22 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=47): time 4.478e-06/0.4593, allocations: 7.984 kB / 1.22 GB, free: 12.84 MB / 0.9825 GB Notification: Performance of matching and sorting (n=47): time 0.001266/0.4606, allocations: 0.5259 MB / 1.22 GB, free: 12.31 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001409/0.4607, allocations: 107.2 kB / 1.221 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005265/0.4612, allocations: 389.6 kB / 1.221 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.416e-05/0.4613, allocations: 37.7 kB / 1.221 GB, free: 11.74 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.4615, allocations: 252.9 kB / 1.221 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.4617, allocations: 157.7 kB / 1.221 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.4619, allocations: 102.2 kB / 1.221 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0002443/0.4621, allocations: 358.7 kB / 1.222 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004263/0.4626, allocations: 179 kB / 1.222 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/0.4631, allocations: 292.2 kB / 1.222 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007638/0.4639, allocations: 423.4 kB / 1.223 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.766e-06/0.4639, allocations: 0 / 1.223 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001065/0.4649, allocations: 0.5674 MB / 1.223 GB, free: 9.348 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 5.205e-05/0.465, allocations: 47.19 kB / 1.223 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.465, allocations: 4 kB / 1.223 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.871e-05/0.465, allocations: 4 kB / 1.223 GB, free: 9.289 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004007/0.4654, allocations: 95.83 kB / 1.223 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.464e-05/0.4655, allocations: 12.2 kB / 1.223 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003902/0.4659, allocations: 79.48 kB / 1.223 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.128e-05/0.4659, allocations: 23.98 kB / 1.223 GB, free: 9.082 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000419/0.4664, allocations: 277.2 kB / 1.224 GB, free: 8.809 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003727/0.4667, allocations: 260.3 kB / 1.224 GB, free: 8.516 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005436/0.4673, allocations: 391.4 kB / 1.224 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.563e-06/0.4673, allocations: 0 / 1.224 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008906/0.4682, allocations: 0.5166 MB / 1.225 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.007e-05/0.4682, allocations: 41.92 kB / 1.225 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.4683, allocations: 7.938 kB / 1.225 GB, free: 7.52 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.065e-06/0.4683, allocations: 4 kB / 1.225 GB, free: 7.516 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003197/0.4686, allocations: 87.89 kB / 1.225 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.4686, allocations: 11.92 kB / 1.225 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003586/0.469, allocations: 67.64 kB / 1.225 GB, free: 7.352 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.001e-05/0.469, allocations: 23.98 kB / 1.225 GB, free: 7.328 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition3,$whenCondition1,$whenCondition2,pulse.booPul.y,$PRE.pulse.booPul.y,pidNoSca.con1.y,pidSca.con1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002121/0.4692, allocations: 208.2 kB / 1.225 GB, free: 7.117 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.472e-05/0.4693, allocations: 47.38 kB / 1.225 GB, free: 7.07 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000834/0.4702, allocations: 433.3 kB / 1.226 GB, free: 6.637 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.941e-06/0.4702, allocations: 4 kB / 1.226 GB, free: 6.633 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.985e-06/0.4702, allocations: 4 kB / 1.226 GB, free: 6.629 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.4702, allocations: 11.92 kB / 1.226 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00162/0.4718, allocations: 1.128 MB / 1.227 GB, free: 5.414 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4718, allocations: 7.938 kB / 1.227 GB, free: 5.406 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003492/0.4722, allocations: 83.83 kB / 1.227 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.203e-06/0.4722, allocations: 4 kB / 1.227 GB, free: 5.32 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.4722, allocations: 8 kB / 1.227 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.573e-06/0.4723, allocations: 8 kB / 1.227 GB, free: 5.305 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.893e-06/0.4723, allocations: 7.938 kB / 1.227 GB, free: 5.297 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.4734, allocations: 0.7262 MB / 1.228 GB, free: 4.531 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.4735, allocations: 132.5 kB / 1.228 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.933e-05/0.4735, allocations: 8 kB / 1.228 GB, free: 4.375 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002152/0.4737, allocations: 23.98 kB / 1.228 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.225e-05/0.4738, allocations: 31.89 kB / 1.228 GB, free: 4.32 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-05/0.4738, allocations: 16 kB / 1.228 GB, free: 4.305 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0003009/0.4741, allocations: 271.2 kB / 1.228 GB, free: 4.043 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4742, allocations: 8 kB / 1.228 GB, free: 4.035 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0006451/0.4748, allocations: 195.2 kB / 1.228 GB, free: 3.844 MB / 0.9825 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: 4 ($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 (47): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002544/0.4751, allocations: 127.1 kB / 1.228 GB, free: 3.711 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001463/0.4765, allocations: 0.7916 MB / 1.229 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.4766, allocations: 0 / 1.229 GB, free: 2.895 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003287/0.4769, allocations: 195.9 kB / 1.229 GB, free: 2.703 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006347/0.4775, allocations: 90.44 kB / 1.229 GB, free: 2.617 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001596/0.4791, allocations: 0.9214 MB / 1.23 GB, free: 1.648 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004238/0.4796, allocations: 0.8512 MB / 1.231 GB, free: 0.7656 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0002227/0.4798, allocations: 55.45 kB / 1.231 GB, free: 0.7109 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001238/0.4799, allocations: 47.42 kB / 1.231 GB, free: 0.668 MB / 0.9825 GB Notification: Performance of SimCode: time 3.91e-07/0.4799, allocations: 0 / 1.231 GB, free: 0.668 MB / 0.9825 GB Notification: Performance of Templates: time 0.01233/0.4923, allocations: 6.215 MB / 1.237 GB, free: 10.51 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDScale.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches