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.0007853/0.0007856, allocations: 89.97 kB / 15.36 MB, free: 0.7383 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.005998/0.005999, allocations: 174.1 kB / 16.26 MB, free: 6.336 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.573/1.573, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 3.021/3.021, allocations: 462.7 MB / 0.7364 GB, free: 304 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004919/0.000492, allocations: 11.53 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.384/0.3845, allocations: 159.6 MB / 1.059 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDScale): time 0.002521/0.3871, allocations: 1.71 MB / 1.06 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002419/0.3895, allocations: 1.583 MB / 1.062 GB, free: 2.184 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002932/0.3898, allocations: 11.94 kB / 1.062 GB, free: 2.172 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0002078/0.3901, allocations: 63.38 kB / 1.062 GB, free: 2.109 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001839/0.3903, allocations: 59.58 kB / 1.062 GB, free: 2.051 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007715/0.391, allocations: 286.7 kB / 1.062 GB, free: 1.773 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0005166/0.3916, allocations: 0.6217 MB / 1.063 GB, free: 1.152 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004423/0.392, allocations: 305.3 kB / 1.063 GB, free: 0.8477 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001911/0.3922, allocations: 175 kB / 1.063 GB, free: 0.6758 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002123/0.3924, allocations: 198.7 kB / 1.064 GB, free: 492 kB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 5.048e-05/0.3925, allocations: 20 kB / 1.064 GB, free: 472 kB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 9.315e-05/0.3926, allocations: 35.98 kB / 1.064 GB, free: 436 kB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 7.215e-05/0.3927, allocations: 83.5 kB / 1.064 GB, free: 352 kB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002014/0.3929, allocations: 252.2 kB / 1.064 GB, free: 92 kB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0006454/0.3935, allocations: 0.7319 MB / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.3936, allocations: 0 / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.883e-06/0.3936, allocations: 0 / 1.065 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.276e-06/0.3936, allocations: 0 / 1.065 GB, free: 15.36 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.001548/0.3951, allocations: 0.8136 MB / 1.065 GB, free: 14.48 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.3952, allocations: 12.03 kB / 1.065 GB, free: 14.47 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000122/0.3953, allocations: 68.17 kB / 1.066 GB, free: 14.41 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004946/0.3958, allocations: 412.5 kB / 1.066 GB, free: 13.96 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.593e-05/0.3959, allocations: 41.38 kB / 1.066 GB, free: 13.92 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.765e-05/0.396, allocations: 60.36 kB / 1.066 GB, free: 13.86 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009581/0.3969, allocations: 0.4995 MB / 1.067 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.351e-05/0.397, allocations: 192 / 1.067 GB, free: 13.35 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.297e-05/0.397, allocations: 27.92 kB / 1.067 GB, free: 13.32 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.389e-05/0.397, allocations: 12 kB / 1.067 GB, free: 13.31 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006937/0.3977, allocations: 359.8 kB / 1.067 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002343/0.4001, allocations: 1.585 MB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009929/0.4011, allocations: 0.8865 MB / 1.069 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003872/0.4015, allocations: 238.3 kB / 1.07 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.559e-05/0.4016, allocations: 8 kB / 1.07 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004575/0.402, allocations: 253.6 kB / 1.07 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=47): time 2.104e-06/0.402, allocations: 0 / 1.07 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of matching and sorting (n=47): time 0.001097/0.4031, allocations: 0.5493 MB / 1.07 GB, free: 9.254 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.917e-05/0.4032, allocations: 107.2 kB / 1.07 GB, free: 9.125 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004325/0.4037, allocations: 385.7 kB / 1.071 GB, free: 8.742 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.125e-05/0.4037, allocations: 37.7 kB / 1.071 GB, free: 8.699 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001842/0.4039, allocations: 252.9 kB / 1.071 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.404, allocations: 161.7 kB / 1.071 GB, free: 8.289 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001089/0.4042, allocations: 49.7 kB / 1.071 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001691/0.4043, allocations: 358.7 kB / 1.072 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004225/0.4048, allocations: 189 kB / 1.072 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004773/0.4053, allocations: 296.2 kB / 1.072 GB, free: 7.367 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007629/0.406, allocations: 443.4 kB / 1.072 GB, free: 6.902 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.135e-06/0.4061, allocations: 4 kB / 1.072 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60) (initialization): time 0.001106/0.4072, allocations: 0.583 MB / 1.073 GB, free: 6.301 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.000116/0.4073, allocations: 184.6 kB / 1.073 GB, free: 6.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.4073, allocations: 4 kB / 1.073 GB, free: 6.086 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.663e-05/0.4073, allocations: 4 kB / 1.073 GB, free: 6.082 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004171/0.4078, allocations: 99.83 kB / 1.073 GB, free: 5.984 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.227e-05/0.4078, allocations: 7.984 kB / 1.073 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004554/0.4082, allocations: 109.2 kB / 1.073 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.05e-05/0.4083, allocations: 20.03 kB / 1.073 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 7.374e-06/0.4083, allocations: 4 kB / 1.073 GB, free: 5.848 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008004/0.4091, allocations: 483.9 kB / 1.074 GB, free: 5.371 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.4091, allocations: 4 kB / 1.074 GB, free: 5.367 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.983e-06/0.4091, allocations: 8 kB / 1.074 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003242/0.4095, allocations: 91.77 kB / 1.074 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.182e-06/0.4095, allocations: 4 kB / 1.074 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003922/0.4099, allocations: 91.67 kB / 1.074 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.426e-05/0.4099, allocations: 20 kB / 1.074 GB, free: 5.156 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.0002694/0.4102, allocations: 253 kB / 1.074 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.015e-05/0.4103, allocations: 43.44 kB / 1.074 GB, free: 4.855 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008522/0.4111, allocations: 457.3 kB / 1.075 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.4111, allocations: 4 kB / 1.075 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.4112, allocations: 0 / 1.075 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.4112, allocations: 7.984 kB / 1.075 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001645/0.4128, allocations: 1.151 MB / 1.076 GB, free: 3.152 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.589e-06/0.4128, allocations: 8.188 kB / 1.076 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.4132, allocations: 83.89 kB / 1.076 GB, free: 3.062 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.204e-06/0.4132, allocations: 4 kB / 1.076 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.4133, allocations: 11.98 kB / 1.076 GB, free: 3.047 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.4133, allocations: 4 kB / 1.076 GB, free: 3.043 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4133, allocations: 3.938 kB / 1.076 GB, free: 3.039 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001168/0.4145, allocations: 0.7598 MB / 1.077 GB, free: 2.238 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 9.538e-05/0.4146, allocations: 124.6 kB / 1.077 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.431e-05/0.4146, allocations: 8 kB / 1.077 GB, free: 2.09 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002652/0.4149, allocations: 35.98 kB / 1.077 GB, free: 2.055 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.227e-05/0.415, allocations: 31.89 kB / 1.077 GB, free: 2.023 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.707e-05/0.415, allocations: 19.94 kB / 1.077 GB, free: 2.004 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0002917/0.4153, allocations: 271.2 kB / 1.077 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.4153, allocations: 0 / 1.077 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0006429/0.416, allocations: 203.3 kB / 1.078 GB, free: 1.543 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.0002356/0.4162, allocations: 123.1 kB / 1.078 GB, free: 1.414 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001395/0.4176, allocations: 0.7954 MB / 1.078 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.4176, allocations: 0 / 1.078 GB, free: 0.5977 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.000352/0.418, allocations: 204.8 kB / 1.079 GB, free: 408 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007454/0.4187, allocations: 89.5 kB / 1.079 GB, free: 316 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001595/0.4203, allocations: 1.161 MB / 1.08 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003758/0.4207, allocations: 0.8437 MB / 1.081 GB, free: 14.22 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0002229/0.421, allocations: 59.36 kB / 1.081 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.4211, allocations: 43.42 kB / 1.081 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of SimCode: time 1.943e-06/0.4211, allocations: 0 / 1.081 GB, free: 14.12 MB / 0.8419 GB Notification: Performance of Templates: time 0.01082/0.4319, allocations: 5.668 MB / 1.086 GB, free: 8.512 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