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.001211/0.001211, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001307/0.001307, allocations: 189.4 kB / 16.25 MB, free: 6.637 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.49/1.49, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.722/2.722, allocations: 461.8 MB / 0.7343 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 72.42 kB / 0.8986 GB, free: 37.18 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3613, allocations: 157.4 MB / 1.052 GB, free: 8.734 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003685/0.365, allocations: 2.111 MB / 1.054 GB, free: 6.617 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002587/0.3677, allocations: 1.583 MB / 1.056 GB, free: 5.02 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000246/0.3679, allocations: 8 kB / 1.056 GB, free: 5.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002795/0.3682, allocations: 63.38 kB / 1.056 GB, free: 4.949 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.3684, allocations: 55.58 kB / 1.056 GB, free: 4.895 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008546/0.3693, allocations: 294.7 kB / 1.056 GB, free: 4.609 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0006743/0.37, allocations: 0.6804 MB / 1.057 GB, free: 3.93 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005931/0.3706, allocations: 325.3 kB / 1.057 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002637/0.3709, allocations: 267 kB / 1.058 GB, free: 3.344 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002749/0.3711, allocations: 270.6 kB / 1.058 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.286e-05/0.3712, allocations: 83.92 kB / 1.058 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001467/0.3714, allocations: 87.98 kB / 1.058 GB, free: 2.91 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0001119/0.3715, allocations: 143.5 kB / 1.058 GB, free: 2.77 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002607/0.3718, allocations: 302.4 kB / 1.058 GB, free: 2.473 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0007943/0.3726, allocations: 0.7984 MB / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.3726, allocations: 0 / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.324e-06/0.3726, allocations: 0 / 1.059 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.047e-05/0.3726, allocations: 8 kB / 1.059 GB, free: 1.664 MB / 0.8106 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.001616/0.3742, allocations: 0.8993 MB / 1.06 GB, free: 0.707 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.3743, allocations: 12.03 kB / 1.06 GB, free: 0.6953 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001435/0.3744, allocations: 64.19 kB / 1.06 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005294/0.375, allocations: 412.5 kB / 1.061 GB, free: 192 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.271e-05/0.375, allocations: 41.31 kB / 1.061 GB, free: 152 kB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.763e-05/0.3751, allocations: 56.38 kB / 1.061 GB, free: 96 kB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008601/0.376, allocations: 0.4957 MB / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.376, allocations: 192 / 1.061 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.817e-05/0.3761, allocations: 23.94 kB / 1.061 GB, free: 15.55 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.3761, allocations: 12 kB / 1.061 GB, free: 15.54 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007003/0.3768, allocations: 347.8 kB / 1.061 GB, free: 15.21 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002436/0.3792, allocations: 1.562 MB / 1.063 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009033/0.3802, allocations: 0.8662 MB / 1.064 GB, free: 12.6 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003515/0.3805, allocations: 236 kB / 1.064 GB, free: 12.37 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.084e-05/0.3806, allocations: 11.98 kB / 1.064 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004925/0.3811, allocations: 241.5 kB / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 2.084e-06/0.3811, allocations: 0 / 1.064 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47): time 0.001021/0.3821, allocations: 0.5259 MB / 1.065 GB, free: 11.58 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.91e-05/0.3822, allocations: 107.2 kB / 1.065 GB, free: 11.45 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000558/0.3828, allocations: 381.7 kB / 1.065 GB, free: 11.07 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.226e-05/0.3828, allocations: 41.69 kB / 1.065 GB, free: 11.03 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001888/0.383, allocations: 252.9 kB / 1.066 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.3831, allocations: 157.7 kB / 1.066 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.3833, allocations: 98.23 kB / 1.066 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001588/0.3835, allocations: 362.8 kB / 1.066 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003967/0.3839, allocations: 191 kB / 1.066 GB, free: 9.965 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000436/0.3843, allocations: 284.2 kB / 1.067 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007257/0.3851, allocations: 435.3 kB / 1.067 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3851, allocations: 0 / 1.067 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.00115/0.3862, allocations: 0.5674 MB / 1.068 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 4.752e-05/0.3863, allocations: 39.52 kB / 1.068 GB, free: 8.574 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.067e-06/0.3863, allocations: 7.922 kB / 1.068 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.038e-05/0.3863, allocations: 4 kB / 1.068 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004183/0.3867, allocations: 95.83 kB / 1.068 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.245e-05/0.3868, allocations: 4 kB / 1.068 GB, free: 8.465 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004078/0.3872, allocations: 87.69 kB / 1.068 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.348e-05/0.3872, allocations: 23.98 kB / 1.068 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000423/0.3877, allocations: 282.7 kB / 1.068 GB, free: 8.078 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004128/0.3881, allocations: 260.2 kB / 1.068 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005311/0.3886, allocations: 383.5 kB / 1.069 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.704e-06/0.3886, allocations: 7.938 kB / 1.069 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008379/0.3895, allocations: 0.5167 MB / 1.069 GB, free: 6.844 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 3.145e-05/0.3895, allocations: 37.7 kB / 1.069 GB, free: 6.801 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.3895, allocations: 8.156 kB / 1.069 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.38e-06/0.3895, allocations: 7.938 kB / 1.069 GB, free: 6.785 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003143/0.3899, allocations: 91.83 kB / 1.069 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.3899, allocations: 7.984 kB / 1.069 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003586/0.3902, allocations: 71.55 kB / 1.069 GB, free: 6.617 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.625e-05/0.3903, allocations: 23.98 kB / 1.069 GB, free: 6.594 MB / 0.8262 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.0001663/0.3905, allocations: 210.5 kB / 1.07 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.03e-05/0.3905, allocations: 51.38 kB / 1.07 GB, free: 6.332 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000794/0.3913, allocations: 433.3 kB / 1.07 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3913, allocations: 4 kB / 1.07 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.3914, allocations: 0 / 1.07 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.616e-06/0.3914, allocations: 3.984 kB / 1.07 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00173/0.3931, allocations: 1.14 MB / 1.071 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3931, allocations: 3.984 kB / 1.071 GB, free: 4.668 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003442/0.3935, allocations: 83.89 kB / 1.071 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.798e-06/0.3935, allocations: 0 / 1.071 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.959e-05/0.3935, allocations: 16 kB / 1.071 GB, free: 4.57 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.449e-06/0.3935, allocations: 4 kB / 1.071 GB, free: 4.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.3935, allocations: 7.875 kB / 1.071 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001129/0.3947, allocations: 0.725 MB / 1.072 GB, free: 3.801 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.316e-05/0.3948, allocations: 124.5 kB / 1.072 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.327e-05/0.3948, allocations: 16.06 kB / 1.072 GB, free: 3.645 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002136/0.3951, allocations: 23.98 kB / 1.072 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.727e-05/0.3951, allocations: 39.83 kB / 1.072 GB, free: 3.582 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.103e-05/0.3952, allocations: 16 kB / 1.072 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000277/0.3954, allocations: 279.2 kB / 1.073 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3955, allocations: 0 / 1.073 GB, free: 3.297 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006005/0.3961, allocations: 195.2 kB / 1.073 GB, free: 3.105 MB / 0.8262 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.0002587/0.3963, allocations: 123.2 kB / 1.073 GB, free: 2.977 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001445/0.3978, allocations: 0.8071 MB / 1.074 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3978, allocations: 0 / 1.074 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003794/0.3982, allocations: 192.7 kB / 1.074 GB, free: 1.953 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006439/0.3988, allocations: 85.45 kB / 1.074 GB, free: 1.863 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.4005, allocations: 1.144 MB / 1.075 GB, free: 0.6719 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.4009, allocations: 0.8474 MB / 1.076 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.00022/0.4012, allocations: 59.36 kB / 1.076 GB, free: 15.74 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.4013, allocations: 39.44 kB / 1.076 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of SimCode: time 2.4e-07/0.4013, allocations: 0 / 1.076 GB, free: 15.7 MB / 0.8419 GB Notification: Performance of Templates: time 0.01145/0.4127, allocations: 5.968 MB / 1.082 GB, free: 9.797 MB / 0.8419 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