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.008864/0.008864, allocations: 100.5 kB / 15.73 MB, free: 5.582 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.001983/0.001983, allocations: 195.9 kB / 16.67 MB, free: 5.523 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.467/1.467, allocations: 222.9 MB / 240.4 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.781/2.781, allocations: 461.9 MB / 0.7348 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001474/0.001474, allocations: 67.91 kB / 1.054 GB, free: 7.691 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9713/0.9728, allocations: 157.4 MB / 1.208 GB, free: 13.64 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003504/0.9764, allocations: 2.072 MB / 1.21 GB, free: 11.57 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.0027/0.9791, allocations: 1.61 MB / 1.211 GB, free: 9.949 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002957/0.9794, allocations: 8 kB / 1.211 GB, free: 9.941 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002948/0.9797, allocations: 87 kB / 1.211 GB, free: 9.855 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.0002153/0.9799, allocations: 79.25 kB / 1.212 GB, free: 9.777 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008723/0.9808, allocations: 335.2 kB / 1.212 GB, free: 9.453 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0006551/0.9815, allocations: 0.6881 MB / 1.213 GB, free: 8.762 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004796/0.982, allocations: 321.3 kB / 1.213 GB, free: 8.445 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002604/0.9822, allocations: 263 kB / 1.213 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000335/0.9826, allocations: 290.6 kB / 1.213 GB, free: 7.902 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 9.978e-05/0.9827, allocations: 76 kB / 1.213 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000162/0.9829, allocations: 87.94 kB / 1.214 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0001504/0.983, allocations: 151.5 kB / 1.214 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002911/0.9833, allocations: 306.4 kB / 1.214 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0009272/0.9843, allocations: 0.8191 MB / 1.215 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 7.364e-06/0.9843, allocations: 0 / 1.215 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.915e-06/0.9843, allocations: 0 / 1.215 GB, free: 6.477 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.703e-05/0.9843, allocations: 0 / 1.215 GB, free: 6.477 MB / 0.9356 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.001853/0.9862, allocations: 0.9033 MB / 1.216 GB, free: 5.516 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.9862, allocations: 12.03 kB / 1.216 GB, free: 5.504 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001607/0.9864, allocations: 72.09 kB / 1.216 GB, free: 5.434 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006551/0.9871, allocations: 404.6 kB / 1.216 GB, free: 4.992 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.214e-05/0.9871, allocations: 37.38 kB / 1.216 GB, free: 4.957 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.643e-05/0.9872, allocations: 68.3 kB / 1.216 GB, free: 4.891 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008601/0.9881, allocations: 0.4917 MB / 1.217 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.83e-05/0.9881, allocations: 192 / 1.217 GB, free: 4.387 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.9e-05/0.9882, allocations: 23.94 kB / 1.217 GB, free: 4.363 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.9882, allocations: 12 kB / 1.217 GB, free: 4.352 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006679/0.9889, allocations: 339.8 kB / 1.217 GB, free: 4.02 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002292/0.9912, allocations: 1.554 MB / 1.219 GB, free: 2.406 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009572/0.9922, allocations: 0.8666 MB / 1.219 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003824/0.9925, allocations: 228.9 kB / 1.22 GB, free: 1.199 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.773e-05/0.9926, allocations: 8 kB / 1.22 GB, free: 1.191 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004587/0.9931, allocations: 248.8 kB / 1.22 GB, free: 0.9375 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=47): time 4.258e-06/0.9931, allocations: 4 kB / 1.22 GB, free: 0.9336 MB / 0.9356 GB Notification: Performance of matching and sorting (n=47): time 0.001168/0.9943, allocations: 0.5259 MB / 1.22 GB, free: 408 kB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.614e-05/0.9943, allocations: 111.2 kB / 1.221 GB, free: 272 kB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004884/0.9948, allocations: 393.6 kB / 1.221 GB, free: 15.86 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 4.824e-05/0.9949, allocations: 41.64 kB / 1.221 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002056/0.9951, allocations: 249 kB / 1.221 GB, free: 15.57 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001228/0.9952, allocations: 161.7 kB / 1.221 GB, free: 15.41 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.9954, allocations: 98.14 kB / 1.221 GB, free: 15.31 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001779/0.9956, allocations: 358.8 kB / 1.222 GB, free: 14.95 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004039/0.996, allocations: 183 kB / 1.222 GB, free: 14.77 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004782/0.9965, allocations: 284.2 kB / 1.222 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007399/0.9972, allocations: 435.4 kB / 1.223 GB, free: 14 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.9973, allocations: 0 / 1.223 GB, free: 14 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00115/0.9984, allocations: 0.5674 MB / 1.223 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 8.044e-05/0.9985, allocations: 45.62 kB / 1.223 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.528e-06/0.9985, allocations: 0 / 1.223 GB, free: 13.38 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.566e-05/0.9986, allocations: 4 kB / 1.223 GB, free: 13.37 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000416/0.999, allocations: 100.1 kB / 1.223 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.158e-05/0.999, allocations: 4 kB / 1.223 GB, free: 13.27 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003875/0.9994, allocations: 83.42 kB / 1.223 GB, free: 13.19 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.71e-05/0.9994, allocations: 23.98 kB / 1.223 GB, free: 13.16 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004723/0.9999, allocations: 278.7 kB / 1.224 GB, free: 12.89 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004244/1, allocations: 268.2 kB / 1.224 GB, free: 12.59 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0006085/1.001, allocations: 391.4 kB / 1.224 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.603e-06/1.001, allocations: 0 / 1.224 GB, free: 12.18 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.00093/1.002, allocations: 0.5168 MB / 1.225 GB, free: 11.65 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/1.002, allocations: 37.7 kB / 1.225 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/1.002, allocations: 3.938 kB / 1.225 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.969e-06/1.002, allocations: 4 kB / 1.225 GB, free: 11.6 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/1.002, allocations: 91.83 kB / 1.225 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.564e-06/1.002, allocations: 4 kB / 1.225 GB, free: 11.5 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/1.003, allocations: 71.64 kB / 1.225 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.131e-05/1.003, allocations: 28.11 kB / 1.225 GB, free: 11.41 MB / 0.9512 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.0002259/1.003, allocations: 212.1 kB / 1.225 GB, free: 11.19 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.275e-05/1.003, allocations: 47.38 kB / 1.225 GB, free: 11.14 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008567/1.004, allocations: 425.4 kB / 1.226 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/1.004, allocations: 4 kB / 1.226 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/1.004, allocations: 4 kB / 1.226 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.22e-05/1.004, allocations: 3.984 kB / 1.226 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001855/1.006, allocations: 1.143 MB / 1.227 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/1.006, allocations: 0 / 1.227 GB, free: 9.484 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003615/1.006, allocations: 79.89 kB / 1.227 GB, free: 9.406 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.37e-06/1.006, allocations: 4 kB / 1.227 GB, free: 9.402 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.07e-05/1.006, allocations: 15.94 kB / 1.227 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/1.006, allocations: 0 / 1.227 GB, free: 9.387 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.143e-06/1.006, allocations: 11.88 kB / 1.227 GB, free: 9.375 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001132/1.007, allocations: 0.7223 MB / 1.228 GB, free: 8.617 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001462/1.008, allocations: 128.6 kB / 1.228 GB, free: 8.473 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.88e-05/1.008, allocations: 12 kB / 1.228 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002153/1.008, allocations: 27.92 kB / 1.228 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.475e-05/1.008, allocations: 35.89 kB / 1.228 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.393e-05/1.008, allocations: 12 kB / 1.228 GB, free: 8.387 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0003169/1.008, allocations: 279.2 kB / 1.228 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.7e-07/1.008, allocations: 0 / 1.228 GB, free: 8.117 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0006356/1.009, allocations: 191.3 kB / 1.228 GB, free: 7.93 MB / 0.9512 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.000309/1.009, allocations: 119.2 kB / 1.228 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.001397/1.011, allocations: 0.7952 MB / 1.229 GB, free: 6.984 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/1.011, allocations: 0 / 1.229 GB, free: 6.984 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 0.0003318/1.011, allocations: 192.9 kB / 1.229 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006663/1.012, allocations: 101.9 kB / 1.229 GB, free: 6.703 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001516/1.013, allocations: 0.9419 MB / 1.23 GB, free: 5.715 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000454/1.014, allocations: 0.8473 MB / 1.231 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.0002134/1.014, allocations: 59.45 kB / 1.231 GB, free: 4.777 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000105/1.014, allocations: 43.42 kB / 1.231 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of SimCode: time 4.21e-07/1.014, allocations: 0 / 1.231 GB, free: 4.734 MB / 0.9512 GB Notification: Performance of Templates: time 0.01162/1.026, allocations: 6.059 MB / 1.237 GB, free: 14.74 MB / 0.9669 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