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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001445/0.00145, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 194.7 kB / 16.53 MB, free: 6.699 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.502/1.502, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.952/2.952, allocations: 472.6 MB / 0.7451 GB, free: 4.629 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 73.33 kB / 0.9121 GB, free: 33.33 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.356/0.3572, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003538/0.3608, allocations: 2.077 MB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002385/0.3632, allocations: 1.61 MB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002218/0.3635, allocations: 8 kB / 1.072 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002518/0.3637, allocations: 86.98 kB / 1.072 GB, free: 6.625 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001971/0.3639, allocations: 75.27 kB / 1.072 GB, free: 6.551 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007847/0.3647, allocations: 330.6 kB / 1.072 GB, free: 6.23 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0006111/0.3654, allocations: 0.6804 MB / 1.073 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004552/0.3658, allocations: 337.3 kB / 1.073 GB, free: 5.215 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002373/0.3661, allocations: 262.9 kB / 1.074 GB, free: 4.957 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.3663, allocations: 278.6 kB / 1.074 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.371e-05/0.3664, allocations: 83.92 kB / 1.074 GB, free: 4.602 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001345/0.3666, allocations: 91.98 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/0.3667, allocations: 139.5 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002436/0.3669, allocations: 302.4 kB / 1.074 GB, free: 4.078 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007529/0.3677, allocations: 0.7946 MB / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.3677, allocations: 0 / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3677, allocations: 0 / 1.075 GB, free: 3.281 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.043e-05/0.3677, allocations: 0 / 1.075 GB, free: 3.281 MB / 0.8262 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.001505/0.3692, allocations: 0.9033 MB / 1.076 GB, free: 2.32 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.3693, allocations: 12.03 kB / 1.076 GB, free: 2.309 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.3694, allocations: 72.09 kB / 1.076 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004793/0.3699, allocations: 400.6 kB / 1.077 GB, free: 1.801 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.82e-05/0.37, allocations: 45.38 kB / 1.077 GB, free: 1.758 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-05/0.3701, allocations: 52.38 kB / 1.077 GB, free: 1.707 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007871/0.3708, allocations: 0.4916 MB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.3709, allocations: 4.188 kB / 1.077 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.534e-05/0.3709, allocations: 27.94 kB / 1.077 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.267e-05/0.3709, allocations: 12 kB / 1.077 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006633/0.3716, allocations: 347.8 kB / 1.077 GB, free: 0.8203 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002211/0.3738, allocations: 1.562 MB / 1.079 GB, free: 15.2 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009356/0.3748, allocations: 0.8701 MB / 1.08 GB, free: 14.21 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003823/0.3752, allocations: 230.6 kB / 1.08 GB, free: 13.99 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.07e-05/0.3752, allocations: 15.98 kB / 1.08 GB, free: 13.97 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005149/0.3758, allocations: 244.8 kB / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 2.414e-06/0.3758, allocations: 0 / 1.08 GB, free: 13.72 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47): time 0.001069/0.3768, allocations: 0.522 MB / 1.081 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.906e-05/0.3769, allocations: 111.2 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004479/0.3774, allocations: 389.5 kB / 1.081 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.728e-05/0.3774, allocations: 37.7 kB / 1.081 GB, free: 12.62 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.3777, allocations: 260.9 kB / 1.082 GB, free: 12.36 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001179/0.3778, allocations: 145.8 kB / 1.082 GB, free: 12.22 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001684/0.378, allocations: 106.1 kB / 1.082 GB, free: 12.11 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001573/0.3781, allocations: 354.8 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004039/0.3785, allocations: 187 kB / 1.082 GB, free: 11.57 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004683/0.379, allocations: 280.3 kB / 1.083 GB, free: 11.26 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007585/0.3798, allocations: 439.3 kB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3798, allocations: 0 / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001079/0.3809, allocations: 0.5674 MB / 1.084 GB, free: 10.22 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.634e-05/0.3809, allocations: 41.64 kB / 1.084 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.381, allocations: 0 / 1.084 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.381, allocations: 4 kB / 1.084 GB, free: 10.17 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004091/0.3814, allocations: 95.88 kB / 1.084 GB, free: 10.08 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.157e-06/0.3814, allocations: 7.938 kB / 1.084 GB, free: 10.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/0.3818, allocations: 87.59 kB / 1.084 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.325e-05/0.3819, allocations: 20 kB / 1.084 GB, free: 9.965 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004567/0.3824, allocations: 294.7 kB / 1.084 GB, free: 9.676 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003781/0.3827, allocations: 248.3 kB / 1.084 GB, free: 9.395 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000588/0.3833, allocations: 396.1 kB / 1.085 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.244e-06/0.3834, allocations: 0 / 1.085 GB, free: 8.98 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0008474/0.3842, allocations: 0.5128 MB / 1.085 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.314e-05/0.3842, allocations: 39.25 kB / 1.085 GB, free: 8.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.3843, allocations: 7.938 kB / 1.085 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.541e-06/0.3843, allocations: 4.219 kB / 1.085 GB, free: 8.398 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000387/0.3847, allocations: 87.84 kB / 1.085 GB, free: 8.312 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3847, allocations: 7.984 kB / 1.085 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003657/0.3851, allocations: 71.62 kB / 1.085 GB, free: 8.234 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.528e-05/0.3851, allocations: 20 kB / 1.085 GB, free: 8.215 MB / 0.8419 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.0001824/0.3853, allocations: 216.1 kB / 1.086 GB, free: 7.996 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.099e-05/0.3854, allocations: 55.38 kB / 1.086 GB, free: 7.941 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008351/0.3862, allocations: 433.3 kB / 1.086 GB, free: 7.504 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3862, allocations: 4 kB / 1.086 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3862, allocations: 0 / 1.086 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.581e-06/0.3862, allocations: 0 / 1.086 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001644/0.3879, allocations: 1.136 MB / 1.087 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.3879, allocations: 0 / 1.087 GB, free: 6.289 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000355/0.3883, allocations: 83.89 kB / 1.087 GB, free: 6.207 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.3883, allocations: 4 kB / 1.087 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.654e-05/0.3883, allocations: 15.98 kB / 1.087 GB, free: 6.188 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.244e-06/0.3883, allocations: 7.938 kB / 1.087 GB, free: 6.18 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/0.3883, allocations: 7.875 kB / 1.087 GB, free: 6.172 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001125/0.3895, allocations: 0.7327 MB / 1.088 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.3896, allocations: 120.7 kB / 1.088 GB, free: 5.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.902e-05/0.3897, allocations: 23.91 kB / 1.088 GB, free: 5.246 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3899, allocations: 19.98 kB / 1.088 GB, free: 5.227 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.96e-05/0.39, allocations: 31.91 kB / 1.088 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.8e-05/0.39, allocations: 19.98 kB / 1.088 GB, free: 5.176 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0003174/0.3903, allocations: 271.2 kB / 1.089 GB, free: 4.914 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3903, allocations: 4 kB / 1.089 GB, free: 4.91 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006271/0.391, allocations: 199.2 kB / 1.089 GB, free: 4.715 MB / 0.8419 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.0002808/0.3912, allocations: 131.6 kB / 1.089 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001485/0.3927, allocations: 0.7993 MB / 1.09 GB, free: 3.754 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3927, allocations: 0 / 1.09 GB, free: 3.754 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003177/0.3931, allocations: 195.7 kB / 1.09 GB, free: 3.562 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005987/0.3937, allocations: 91.19 kB / 1.09 GB, free: 3.477 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.3952, allocations: 0.9372 MB / 1.091 GB, free: 2.492 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.3956, allocations: 0.8512 MB / 1.092 GB, free: 1.613 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002069/0.3959, allocations: 55.38 kB / 1.092 GB, free: 1.559 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.396, allocations: 39.42 kB / 1.092 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of SimCode: time 3.51e-07/0.396, allocations: 0 / 1.092 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of Templates: time 0.01118/0.4072, allocations: 5.986 MB / 1.098 GB, free: 11.6 MB / 0.8575 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