Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.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.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|noLimPID.y|limP.y|limPI.y|limPD.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009955/0.009955, allocations: 100.8 kB / 15.73 MB, free: 6.043 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.002075/0.002075, allocations: 195.7 kB / 16.67 MB, free: 5.977 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.79/2.79, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 67.91 kB / 1.054 GB, free: 7.039 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3936/0.3949, allocations: 157.4 MB / 1.208 GB, free: 9.531 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PID): time 0.006629/0.4016, allocations: 3.617 MB / 1.211 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.004748/0.4064, allocations: 2.128 MB / 1.213 GB, free: 3.758 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001109/0.4075, allocations: 23.94 kB / 1.213 GB, free: 3.734 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0005299/0.4081, allocations: 174.1 kB / 1.214 GB, free: 3.562 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.000472/0.4086, allocations: 146.6 kB / 1.214 GB, free: 3.418 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001337/0.41, allocations: 0.4949 MB / 1.214 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001305/0.4113, allocations: 1.264 MB / 1.215 GB, free: 1.66 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009705/0.4123, allocations: 0.5954 MB / 1.216 GB, free: 1.039 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005731/0.4128, allocations: 446.2 kB / 1.216 GB, free: 0.6016 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005459/0.4134, allocations: 489.5 kB / 1.217 GB, free: 124 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001953/0.4136, allocations: 128 kB / 1.217 GB, free: 15.99 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002292/0.4138, allocations: 147.9 kB / 1.217 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002341/0.4141, allocations: 247.1 kB / 1.217 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005016/0.4146, allocations: 0.505 MB / 1.218 GB, free: 15.1 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.001549/0.4161, allocations: 1.432 MB / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.4162, allocations: 0 / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.492e-06/0.4162, allocations: 0 / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.76e-05/0.4162, allocations: 0 / 1.219 GB, free: 13.66 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 218 * Number of variables: 218 Notification: Performance of Generate backend data structure: time 0.002615/0.4188, allocations: 1.379 MB / 1.221 GB, free: 12.22 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.4189, allocations: 12.03 kB / 1.221 GB, free: 12.21 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.4191, allocations: 115.6 kB / 1.221 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008384/0.4199, allocations: 0.5986 MB / 1.221 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.97e-05/0.42, allocations: 70.38 kB / 1.221 GB, free: 11.39 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.4201, allocations: 92.38 kB / 1.222 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.4217, allocations: 0.8602 MB / 1.222 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.249e-05/0.4217, allocations: 192 / 1.222 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.257e-05/0.4218, allocations: 39.94 kB / 1.222 GB, free: 10.38 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.324e-05/0.4218, allocations: 24 kB / 1.222 GB, free: 10.35 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001393/0.4232, allocations: 0.6402 MB / 1.223 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004366/0.4276, allocations: 2.96 MB / 1.226 GB, free: 6.652 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001511/0.4291, allocations: 0.6759 MB / 1.227 GB, free: 5.961 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006625/0.4298, allocations: 374.6 kB / 1.227 GB, free: 5.594 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 4.475e-05/0.4298, allocations: 17.02 kB / 1.227 GB, free: 5.578 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006892/0.4305, allocations: 347 kB / 1.227 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=68): time 5.43e-06/0.4306, allocations: 0 / 1.227 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of matching and sorting (n=68): time 0.001869/0.4324, allocations: 0.8337 MB / 1.228 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000133/0.4326, allocations: 196.5 kB / 1.228 GB, free: 4.148 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008564/0.4334, allocations: 0.6762 MB / 1.229 GB, free: 3.461 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 7.428e-05/0.4335, allocations: 37.7 kB / 1.229 GB, free: 3.418 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000357/0.4339, allocations: 431.8 kB / 1.229 GB, free: 2.988 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001968/0.4341, allocations: 228.6 kB / 1.23 GB, free: 2.762 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002963/0.4344, allocations: 150.6 kB / 1.23 GB, free: 2.609 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0003379/0.4347, allocations: 341.9 kB / 1.23 GB, free: 2.27 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000736/0.4355, allocations: 292.7 kB / 1.23 GB, free: 1.98 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007857/0.4363, allocations: 490.1 kB / 1.231 GB, free: 1.43 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001238/0.4375, allocations: 0.677 MB / 1.232 GB, free: 0.7109 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.708e-06/0.4375, allocations: 96 / 1.232 GB, free: 0.7109 MB / 0.9825 GB Notification: Performance of matching and sorting (n=92) (initialization): time 0.001829/0.4394, allocations: 0.8808 MB / 1.232 GB, free: 15.82 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.4394, allocations: 37.69 kB / 1.232 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.934e-05/0.4395, allocations: 4 kB / 1.232 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.529e-05/0.4395, allocations: 4 kB / 1.232 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006401/0.4401, allocations: 167.7 kB / 1.233 GB, free: 15.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.656e-05/0.4402, allocations: 11.98 kB / 1.233 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000654/0.4408, allocations: 143 kB / 1.233 GB, free: 15.45 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.579e-05/0.4409, allocations: 28 kB / 1.233 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006647/0.4416, allocations: 402 kB / 1.233 GB, free: 15.02 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005516/0.4421, allocations: 410.2 kB / 1.234 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008305/0.443, allocations: 0.5756 MB / 1.234 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.445e-06/0.443, allocations: 0 / 1.234 GB, free: 13.93 MB / 0.9981 GB Notification: Performance of matching and sorting (n=92) (initialization_lambda0): time 0.001247/0.4442, allocations: 0.7558 MB / 1.235 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.077e-05/0.4443, allocations: 47.41 kB / 1.235 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.4443, allocations: 0 / 1.235 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.939e-06/0.4443, allocations: 11.98 kB / 1.235 GB, free: 13.1 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/0.4448, allocations: 139.8 kB / 1.235 GB, free: 12.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.4448, allocations: 7.984 kB / 1.235 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005544/0.4454, allocations: 115.5 kB / 1.235 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/0.4454, allocations: 24 kB / 1.235 GB, free: 12.82 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,noLimPID.con1.y,limPI.con1.y,limPID.con1.y,pulse.booPul.y,$PRE.pulse.booPul.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * 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.0002482/0.4457, allocations: 236 kB / 1.235 GB, free: 12.58 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001153/0.4458, allocations: 75.06 kB / 1.235 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001352/0.4472, allocations: 0.6516 MB / 1.236 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.598e-06/0.4472, allocations: 8 kB / 1.236 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.977e-06/0.4472, allocations: 0 / 1.236 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.783e-06/0.4472, allocations: 0 / 1.236 GB, free: 11.83 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002607/0.4498, allocations: 1.671 MB / 1.238 GB, free: 10.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.835e-06/0.4499, allocations: 7.938 kB / 1.238 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005281/0.4504, allocations: 127.8 kB / 1.238 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/0.4504, allocations: 8.281 kB / 1.238 GB, free: 9.938 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.106e-05/0.4505, allocations: 19.98 kB / 1.238 GB, free: 9.918 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.776e-06/0.4505, allocations: 11.94 kB / 1.238 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.4505, allocations: 0 / 1.238 GB, free: 9.906 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001875/0.4524, allocations: 1.089 MB / 1.239 GB, free: 8.773 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.4526, allocations: 175.9 kB / 1.239 GB, free: 8.582 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.547e-05/0.4526, allocations: 19.98 kB / 1.239 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000372/0.453, allocations: 51.95 kB / 1.239 GB, free: 8.512 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.079e-05/0.4531, allocations: 40.52 kB / 1.239 GB, free: 8.473 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.932e-05/0.4532, allocations: 23.98 kB / 1.239 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0005871/0.4538, allocations: 479 kB / 1.24 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4538, allocations: 0 / 1.24 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0009154/0.4547, allocations: 314.9 kB / 1.24 GB, free: 7.68 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (limPID.I.y,limPID.D.x,limPI.I.y,limPD.D.x,noLimPID.I.y,noLimPID.D.x) * Number of discrete variables: 3 ($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 (68): * Single equations (assignments): 67 * 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.0002632/0.455, allocations: 139 kB / 1.24 GB, free: 7.535 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002117/0.4571, allocations: 1.151 MB / 1.241 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.596e-06/0.4571, allocations: 0 / 1.241 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005483/0.4576, allocations: 305 kB / 1.242 GB, free: 6.062 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009387/0.4586, allocations: 183.9 kB / 1.242 GB, free: 5.883 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.461, allocations: 1.493 MB / 1.243 GB, free: 4.332 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005241/0.4615, allocations: 0.9821 MB / 1.244 GB, free: 3.32 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003821/0.4619, allocations: 101.9 kB / 1.244 GB, free: 3.219 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001806/0.4621, allocations: 63.42 kB / 1.244 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of SimCode: time 1.032e-06/0.4621, allocations: 0 / 1.244 GB, free: 3.156 MB / 0.9981 GB Notification: Performance of Templates: time 0.7775/1.24, allocations: 10.02 MB / 1.254 GB, free: 36.3 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches