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.00158/0.00158, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00191/0.00191, allocations: 196.3 kB / 16.14 MB, free: 6.711 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.544/1.544, allocations: 222.9 MB / 239.8 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.056/3.056, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001475/0.001476, allocations: 71.8 kB / 0.9114 GB, free: 33.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3844/0.3859, allocations: 159.9 MB / 1.068 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.003277/0.3892, allocations: 2.113 MB / 1.07 GB, free: 8.766 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002251/0.3915, allocations: 1.602 MB / 1.071 GB, free: 7.148 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002319/0.3917, allocations: 8 kB / 1.071 GB, free: 7.141 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002425/0.392, allocations: 59.38 kB / 1.071 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001698/0.3922, allocations: 51.62 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006654/0.3929, allocations: 294.6 kB / 1.072 GB, free: 6.746 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0005179/0.3934, allocations: 0.614 MB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004224/0.3938, allocations: 325.2 kB / 1.073 GB, free: 5.809 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.394, allocations: 219 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002605/0.3943, allocations: 254.6 kB / 1.073 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.992e-05/0.3944, allocations: 40 kB / 1.073 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001164/0.3945, allocations: 51.92 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.692e-05/0.3946, allocations: 111.5 kB / 1.073 GB, free: 5.145 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.000202/0.3948, allocations: 254.5 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006327/0.3955, allocations: 0.7633 MB / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3955, allocations: 0 / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.172e-06/0.3955, allocations: 0 / 1.074 GB, free: 4.129 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.348e-06/0.3955, allocations: 0 / 1.074 GB, free: 4.129 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.001524/0.397, allocations: 0.9111 MB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.3971, allocations: 11.97 kB / 1.075 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001234/0.3972, allocations: 72.09 kB / 1.075 GB, free: 3.078 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004812/0.3977, allocations: 404.6 kB / 1.075 GB, free: 2.641 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.825e-05/0.3978, allocations: 45.31 kB / 1.076 GB, free: 2.598 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.487e-05/0.3979, allocations: 56.38 kB / 1.076 GB, free: 2.543 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000808/0.3987, allocations: 499.5 kB / 1.076 GB, free: 2.043 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.3987, allocations: 4.125 kB / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.269e-05/0.3987, allocations: 23.94 kB / 1.076 GB, free: 2.016 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.246e-05/0.3988, allocations: 16 kB / 1.076 GB, free: 2 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006568/0.3994, allocations: 339.8 kB / 1.076 GB, free: 1.668 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002348/0.4018, allocations: 1.566 MB / 1.078 GB, free: 44 kB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009308/0.4027, allocations: 0.8681 MB / 1.079 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000367/0.4031, allocations: 236.3 kB / 1.079 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 3.553e-05/0.4031, allocations: 7.984 kB / 1.079 GB, free: 14.82 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005167/0.4037, allocations: 252.8 kB / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=47): time 2.514e-06/0.4037, allocations: 0 / 1.079 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of matching and sorting (n=47): time 0.001031/0.4047, allocations: 0.5181 MB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.99e-05/0.4048, allocations: 119.2 kB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004333/0.4052, allocations: 389.6 kB / 1.08 GB, free: 13.5 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.4053, allocations: 37.7 kB / 1.08 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.4055, allocations: 248.9 kB / 1.081 GB, free: 13.21 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001018/0.4056, allocations: 149.8 kB / 1.081 GB, free: 13.06 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.4058, allocations: 102.1 kB / 1.081 GB, free: 12.96 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001252/0.4059, allocations: 358.8 kB / 1.081 GB, free: 12.6 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.4063, allocations: 187 kB / 1.081 GB, free: 12.41 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004602/0.4068, allocations: 284.1 kB / 1.082 GB, free: 12.1 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007252/0.4075, allocations: 435.4 kB / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.4075, allocations: 0 / 1.082 GB, free: 11.64 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001057/0.4086, allocations: 0.5675 MB / 1.083 GB, free: 11.07 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.645e-05/0.4087, allocations: 45.62 kB / 1.083 GB, free: 11.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.416e-06/0.4087, allocations: 4 kB / 1.083 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.6e-05/0.4087, allocations: 4 kB / 1.083 GB, free: 11.01 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004159/0.4091, allocations: 95.83 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.089e-05/0.4091, allocations: 4 kB / 1.083 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004041/0.4096, allocations: 91.5 kB / 1.083 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.654e-05/0.4096, allocations: 23.98 kB / 1.083 GB, free: 10.8 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004382/0.4101, allocations: 277.2 kB / 1.083 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0003731/0.4104, allocations: 260.2 kB / 1.083 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0005525/0.411, allocations: 380.2 kB / 1.084 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.933e-06/0.411, allocations: 4 kB / 1.084 GB, free: 9.828 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60) (initialization_lambda0): time 0.0009124/0.4119, allocations: 0.5205 MB / 1.084 GB, free: 9.293 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.222e-05/0.412, allocations: 37.7 kB / 1.084 GB, free: 9.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.412, allocations: 7.938 kB / 1.084 GB, free: 9.242 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.2e-06/0.412, allocations: 4 kB / 1.084 GB, free: 9.238 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003316/0.4123, allocations: 91.83 kB / 1.084 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.4124, allocations: 8.219 kB / 1.084 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003655/0.4127, allocations: 71.64 kB / 1.084 GB, free: 9.07 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.723e-05/0.4128, allocations: 19.98 kB / 1.084 GB, free: 9.051 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.0001549/0.4129, allocations: 216.8 kB / 1.085 GB, free: 8.836 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.949e-05/0.413, allocations: 47.38 kB / 1.085 GB, free: 8.789 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007696/0.4138, allocations: 433.3 kB / 1.085 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.4138, allocations: 4 kB / 1.085 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.4138, allocations: 0 / 1.085 GB, free: 8.352 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.302e-06/0.4138, allocations: 3.984 kB / 1.085 GB, free: 8.348 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.4154, allocations: 1.136 MB / 1.086 GB, free: 7.137 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.4154, allocations: 8.188 kB / 1.086 GB, free: 7.129 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.4158, allocations: 79.89 kB / 1.086 GB, free: 7.051 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.4158, allocations: 7.938 kB / 1.086 GB, free: 7.043 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.769e-05/0.4158, allocations: 8 kB / 1.086 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.552e-06/0.4159, allocations: 7.984 kB / 1.086 GB, free: 7.027 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.4159, allocations: 7.938 kB / 1.086 GB, free: 7.02 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001084/0.417, allocations: 0.7285 MB / 1.087 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.203e-05/0.4171, allocations: 124.6 kB / 1.087 GB, free: 6.113 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.654e-05/0.4171, allocations: 16 kB / 1.087 GB, free: 6.098 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002243/0.4174, allocations: 23.98 kB / 1.087 GB, free: 6.074 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.132e-05/0.4174, allocations: 35.83 kB / 1.087 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.4175, allocations: 12 kB / 1.087 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0002801/0.4177, allocations: 275.2 kB / 1.087 GB, free: 5.758 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.81e-07/0.4177, allocations: 4 kB / 1.088 GB, free: 5.754 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0006093/0.4184, allocations: 195.2 kB / 1.088 GB, free: 5.562 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.000209/0.4186, allocations: 127.1 kB / 1.088 GB, free: 5.43 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00138/0.42, allocations: 0.7845 MB / 1.089 GB, free: 4.621 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 6.602e-06/0.42, allocations: 4 kB / 1.089 GB, free: 4.617 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003291/0.4203, allocations: 195.5 kB / 1.089 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006156/0.4209, allocations: 86.06 kB / 1.089 GB, free: 4.344 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001564/0.4225, allocations: 1.134 MB / 1.09 GB, free: 3.16 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004715/0.423, allocations: 0.8515 MB / 1.091 GB, free: 2.281 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002292/0.4232, allocations: 59.45 kB / 1.091 GB, free: 2.223 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001179/0.4234, allocations: 43.42 kB / 1.091 GB, free: 2.18 MB / 0.8419 GB Notification: Performance of SimCode: time 9.82e-07/0.4234, allocations: 3.938 kB / 1.091 GB, free: 2.176 MB / 0.8419 GB Notification: Performance of Templates: time 0.01106/0.4344, allocations: 5.7 MB / 1.096 GB, free: 12.54 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