Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.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.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") translateModel(Buildings.Controls.Continuous.Examples.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPID.u_s|limPID.u_m|limPID.y|limPIDRev.y",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, 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.001703/0.001703, allocations: 187.6 kB / 16.25 MB, free: 6.633 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.447/1.447, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.884/2.884, allocations: 472.6 MB / 0.7448 GB, free: 4.871 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 64.03 kB / 0.9116 GB, free: 33.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.345/0.3463, allocations: 159.9 MB / 1.068 GB, free: 10.74 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.00539/0.3517, allocations: 3.733 MB / 1.071 GB, free: 6.992 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002369/0.3541, allocations: 1.297 MB / 1.073 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003712/0.3545, allocations: 23.88 kB / 1.073 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0003408/0.3549, allocations: 91.11 kB / 1.073 GB, free: 5.574 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0005914/0.3555, allocations: 139 kB / 1.073 GB, free: 5.438 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001183/0.3567, allocations: 0.5388 MB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0009163/0.3576, allocations: 0.9643 MB / 1.074 GB, free: 3.941 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005103/0.3581, allocations: 341.6 kB / 1.075 GB, free: 3.59 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003989/0.3586, allocations: 370.3 kB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003525/0.3589, allocations: 358.1 kB / 1.075 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001128/0.359, allocations: 76 kB / 1.075 GB, free: 2.801 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.3591, allocations: 87.94 kB / 1.076 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000151/0.3593, allocations: 179.3 kB / 1.076 GB, free: 2.539 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002853/0.3596, allocations: 377.7 kB / 1.076 GB, free: 2.168 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0007216/0.3603, allocations: 0.8566 MB / 1.077 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.3603, allocations: 0 / 1.077 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.443e-06/0.3603, allocations: 0 / 1.077 GB, free: 1.309 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.538e-06/0.3604, allocations: 0 / 1.077 GB, free: 1.309 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.00187/0.3622, allocations: 1.187 MB / 1.078 GB, free: 68 kB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.764e-05/0.3623, allocations: 12.03 kB / 1.078 GB, free: 56 kB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.3624, allocations: 91.86 kB / 1.078 GB, free: 15.96 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000816/0.3633, allocations: 0.5909 MB / 1.079 GB, free: 15.33 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001013/0.3634, allocations: 101 kB / 1.079 GB, free: 15.22 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.602e-05/0.3635, allocations: 48.38 kB / 1.079 GB, free: 15.17 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001029/0.3645, allocations: 0.608 MB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.434e-05/0.3645, allocations: 4 kB / 1.079 GB, free: 14.52 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.119e-05/0.3646, allocations: 20 kB / 1.079 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.3646, allocations: 12 kB / 1.079 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000883/0.3655, allocations: 427.6 kB / 1.08 GB, free: 14.07 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002519/0.368, allocations: 2.11 MB / 1.082 GB, free: 11.88 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001129/0.3692, allocations: 0.496 MB / 1.082 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004322/0.3696, allocations: 226 kB / 1.083 GB, free: 11.15 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.125e-05/0.3696, allocations: 4 kB / 1.083 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006159/0.3703, allocations: 282.1 kB / 1.083 GB, free: 10.86 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 1.844e-06/0.3703, allocations: 4 kB / 1.083 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001364/0.3717, allocations: 0.61 MB / 1.084 GB, free: 10.23 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.363e-05/0.3717, allocations: 88.86 kB / 1.084 GB, free: 10.13 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006195/0.3723, allocations: 0.614 MB / 1.084 GB, free: 9.508 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.635e-05/0.3724, allocations: 37.7 kB / 1.084 GB, free: 9.465 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002324/0.3726, allocations: 356.7 kB / 1.085 GB, free: 9.113 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.3728, allocations: 157.7 kB / 1.085 GB, free: 8.957 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.3729, allocations: 94.16 kB / 1.085 GB, free: 8.859 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.628e-05/0.373, allocations: 326 kB / 1.085 GB, free: 8.535 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004205/0.3734, allocations: 191 kB / 1.085 GB, free: 8.344 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004476/0.3739, allocations: 276.2 kB / 1.086 GB, free: 8.043 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008347/0.3747, allocations: 470 kB / 1.086 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.3747, allocations: 7.938 kB / 1.086 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001099/0.3758, allocations: 0.6023 MB / 1.087 GB, free: 6.922 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.1e-05/0.3759, allocations: 29.7 kB / 1.087 GB, free: 6.887 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.538e-06/0.3759, allocations: 4 kB / 1.087 GB, free: 6.883 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.878e-05/0.3759, allocations: 4 kB / 1.087 GB, free: 6.879 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004559/0.3764, allocations: 107.8 kB / 1.087 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.286e-05/0.3764, allocations: 11.98 kB / 1.087 GB, free: 6.762 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003601/0.3768, allocations: 55.52 kB / 1.087 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.3768, allocations: 23.98 kB / 1.087 GB, free: 6.684 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0004999/0.3773, allocations: 309.2 kB / 1.087 GB, free: 6.375 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00041/0.3778, allocations: 268.2 kB / 1.087 GB, free: 6.078 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007356/0.3785, allocations: 450 kB / 1.088 GB, free: 5.598 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.075e-06/0.3785, allocations: 4 kB / 1.088 GB, free: 5.594 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001005/0.3795, allocations: 0.5786 MB / 1.088 GB, free: 5 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.808e-05/0.3796, allocations: 37.69 kB / 1.088 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.3796, allocations: 4 kB / 1.088 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.753e-06/0.3796, allocations: 8.312 kB / 1.088 GB, free: 4.945 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004077/0.38, allocations: 103.8 kB / 1.089 GB, free: 4.844 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.792e-06/0.38, allocations: 7.984 kB / 1.089 GB, free: 4.836 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003404/0.3804, allocations: 55.56 kB / 1.089 GB, free: 4.781 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.497e-05/0.3804, allocations: 16 kB / 1.089 GB, free: 4.766 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,limPIDOri.I.local_reset,limPIDRev.I.trigger_internal,limPID.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 62 * 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.0001716/0.3806, allocations: 221.9 kB / 1.089 GB, free: 4.547 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.926e-05/0.3807, allocations: 71.16 kB / 1.089 GB, free: 4.477 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001555/0.3808, allocations: 91.14 kB / 1.089 GB, free: 4.383 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.3808, allocations: 4 kB / 1.089 GB, free: 4.379 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.504e-06/0.3809, allocations: 3.938 kB / 1.089 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.3809, allocations: 0 / 1.089 GB, free: 4.375 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006195/0.3815, allocations: 0.6257 MB / 1.09 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.3815, allocations: 0 / 1.09 GB, free: 3.699 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004423/0.382, allocations: 83.89 kB / 1.09 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.382, allocations: 0 / 1.09 GB, free: 3.617 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.255e-05/0.382, allocations: 11.98 kB / 1.09 GB, free: 3.605 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.382, allocations: 4 kB / 1.09 GB, free: 3.602 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.382, allocations: 4 kB / 1.09 GB, free: 3.598 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001376/0.3834, allocations: 0.7249 MB / 1.09 GB, free: 2.855 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.3836, allocations: 196 kB / 1.091 GB, free: 2.645 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.385e-05/0.3837, allocations: 12 kB / 1.091 GB, free: 2.633 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003871/0.3841, allocations: 31.95 kB / 1.091 GB, free: 2.602 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.349e-05/0.3842, allocations: 27.97 kB / 1.091 GB, free: 2.574 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.575e-05/0.3842, allocations: 19.98 kB / 1.091 GB, free: 2.555 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004457/0.3847, allocations: 435 kB / 1.091 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3847, allocations: 0 / 1.091 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005612/0.3852, allocations: 211.4 kB / 1.091 GB, free: 1.93 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (limPID.I.y,limPID.D.x,limPIDRev.I.y,limPIDRev.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001405/0.3854, allocations: 111.2 kB / 1.091 GB, free: 1.812 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001562/0.387, allocations: 0.8079 MB / 1.092 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.387, allocations: 1.125 kB / 1.092 GB, free: 0.9766 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004445/0.3874, allocations: 215.8 kB / 1.092 GB, free: 0.7656 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009644/0.3884, allocations: 207.2 kB / 1.093 GB, free: 0.5664 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002213/0.3906, allocations: 1.445 MB / 1.094 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.3911, allocations: 0.9218 MB / 1.095 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0003994/0.3915, allocations: 85.12 kB / 1.095 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001465/0.3916, allocations: 51.42 kB / 1.095 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of SimCode: time 4.81e-07/0.3916, allocations: 0 / 1.095 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of Templates: time 0.0163/0.4079, allocations: 7.515 MB / 1.102 GB, free: 6.586 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches