Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/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_9_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_9_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.001672/0.001672, allocations: 112.5 kB / 15.73 MB, free: 76 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.002999/0.002999, allocations: 188.9 kB / 16.67 MB, free: 6.543 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.481/1.481, 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 9.1.3-maint.9.1.x/package.mo): time 2.483/2.483, allocations: 390.2 MB / 0.6648 GB, free: 224 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 58.94 kB / 0.9508 GB, free: 5.523 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3335/0.3351, allocations: 140.4 MB / 1.088 GB, free: 1.562 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005117/0.3402, allocations: 3.703 MB / 1.092 GB, free: 13.83 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.002704/0.343, allocations: 1.332 MB / 1.093 GB, free: 12.49 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004043/0.3434, allocations: 31.88 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.0003518/0.3438, allocations: 126.6 kB / 1.093 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.000533/0.3444, allocations: 186.5 kB / 1.093 GB, free: 12.15 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001147/0.3455, allocations: 0.5729 MB / 1.094 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0009329/0.3465, allocations: 0.9682 MB / 1.095 GB, free: 10.62 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005164/0.347, allocations: 349.6 kB / 1.095 GB, free: 10.27 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004319/0.3474, allocations: 378.4 kB / 1.095 GB, free: 9.895 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000342/0.3478, allocations: 350.1 kB / 1.096 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.0001059/0.3479, allocations: 80 kB / 1.096 GB, free: 9.473 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.76e-05/0.348, allocations: 76 kB / 1.096 GB, free: 9.398 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0001532/0.3481, allocations: 179.3 kB / 1.096 GB, free: 9.223 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.0002955/0.3484, allocations: 381.7 kB / 1.096 GB, free: 8.848 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0008804/0.3493, allocations: 0.8944 MB / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.36e-06/0.3493, allocations: 0 / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.463e-06/0.3493, allocations: 0 / 1.097 GB, free: 7.949 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 1.013e-05/0.3494, allocations: 0 / 1.097 GB, free: 7.949 MB / 0.8575 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.002007/0.3514, allocations: 1.206 MB / 1.098 GB, free: 6.688 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.3514, allocations: 12.03 kB / 1.098 GB, free: 6.676 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001623/0.3516, allocations: 100.3 kB / 1.099 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001057/0.3527, allocations: 0.6266 MB / 1.099 GB, free: 5.906 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001184/0.3528, allocations: 101 kB / 1.099 GB, free: 5.797 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.351e-05/0.3529, allocations: 56.31 kB / 1.099 GB, free: 5.742 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001057/0.3539, allocations: 0.5964 MB / 1.1 GB, free: 5.098 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.354, allocations: 4 kB / 1.1 GB, free: 5.094 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/0.354, allocations: 23.98 kB / 1.1 GB, free: 5.07 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.3541, allocations: 19.92 kB / 1.1 GB, free: 5.051 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009553/0.355, allocations: 419.7 kB / 1.1 GB, free: 4.645 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002812/0.3578, allocations: 2.103 MB / 1.102 GB, free: 2.453 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/0.3592, allocations: 0.4961 MB / 1.103 GB, free: 1.945 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004853/0.3597, allocations: 216.8 kB / 1.103 GB, free: 1.73 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 4.808e-05/0.3597, allocations: 4 kB / 1.103 GB, free: 1.727 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007032/0.3604, allocations: 285.9 kB / 1.103 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=45): time 6.151e-06/0.3605, allocations: 3.984 kB / 1.103 GB, free: 1.43 MB / 0.8575 GB Notification: Performance of matching and sorting (n=45): time 0.0016/0.3621, allocations: 0.6154 MB / 1.104 GB, free: 0.8086 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.419e-05/0.3622, allocations: 96.84 kB / 1.104 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007953/0.363, allocations: 0.6138 MB / 1.105 GB, free: 72 kB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 5.188e-05/0.363, allocations: 37.64 kB / 1.105 GB, free: 28 kB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003287/0.3634, allocations: 357.2 kB / 1.105 GB, free: 15.68 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001506/0.3635, allocations: 166.6 kB / 1.105 GB, free: 15.51 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000172/0.3637, allocations: 102.2 kB / 1.105 GB, free: 15.41 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001589/0.3639, allocations: 323.1 kB / 1.106 GB, free: 15.09 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004552/0.3643, allocations: 183 kB / 1.106 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004921/0.3648, allocations: 276.2 kB / 1.106 GB, free: 14.6 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009205/0.3658, allocations: 477.9 kB / 1.106 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.033e-06/0.3658, allocations: 3.938 kB / 1.106 GB, free: 14.09 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001217/0.367, allocations: 0.5987 MB / 1.107 GB, free: 13.48 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 5.912e-05/0.3671, allocations: 33.7 kB / 1.107 GB, free: 13.44 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.3671, allocations: 11.88 kB / 1.107 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.147e-05/0.3671, allocations: 4 kB / 1.107 GB, free: 13.43 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000494/0.3676, allocations: 108.2 kB / 1.107 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.691e-05/0.3677, allocations: 7.938 kB / 1.107 GB, free: 13.31 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004183/0.3681, allocations: 67.59 kB / 1.107 GB, free: 13.25 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.859e-05/0.3681, allocations: 16 kB / 1.107 GB, free: 13.23 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005767/0.3687, allocations: 313.2 kB / 1.108 GB, free: 12.92 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004562/0.3692, allocations: 264.3 kB / 1.108 GB, free: 12.62 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007947/0.37, allocations: 450 kB / 1.108 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.694e-06/0.37, allocations: 0 / 1.108 GB, free: 12.14 MB / 0.8731 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001055/0.3711, allocations: 0.5908 MB / 1.109 GB, free: 11.54 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.3711, allocations: 29.7 kB / 1.109 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.296e-06/0.3711, allocations: 4 kB / 1.109 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.073e-06/0.3711, allocations: 4 kB / 1.109 GB, free: 11.5 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004216/0.3715, allocations: 107.8 kB / 1.109 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.064e-06/0.3716, allocations: 4 kB / 1.109 GB, free: 11.39 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003565/0.3719, allocations: 55.95 kB / 1.109 GB, free: 11.33 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.081e-05/0.372, allocations: 20 kB / 1.109 GB, free: 11.31 MB / 0.8731 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.000202/0.3722, allocations: 216 kB / 1.109 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.812e-05/0.3723, allocations: 75.53 kB / 1.109 GB, free: 11.02 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.3724, allocations: 83.22 kB / 1.109 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.869e-06/0.3725, allocations: 7.984 kB / 1.109 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.662e-06/0.3725, allocations: 0 / 1.109 GB, free: 10.93 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.3725, allocations: 4 kB / 1.109 GB, free: 10.92 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006465/0.3731, allocations: 0.6219 MB / 1.11 GB, free: 10.25 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.3731, allocations: 0 / 1.11 GB, free: 10.25 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004342/0.3736, allocations: 83.89 kB / 1.11 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3736, allocations: 0 / 1.11 GB, free: 10.17 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.3736, allocations: 12 kB / 1.11 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.3736, allocations: 0 / 1.11 GB, free: 10.16 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/0.3737, allocations: 3.984 kB / 1.11 GB, free: 10.15 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001401/0.3751, allocations: 0.7355 MB / 1.111 GB, free: 9.398 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002339/0.3753, allocations: 196.5 kB / 1.111 GB, free: 9.188 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.607e-05/0.3754, allocations: 15.92 kB / 1.111 GB, free: 9.172 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003897/0.3758, allocations: 35.97 kB / 1.111 GB, free: 9.137 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001014/0.3759, allocations: 31.95 kB / 1.111 GB, free: 9.105 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.323e-05/0.3759, allocations: 15.98 kB / 1.111 GB, free: 9.09 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 0.0004893/0.3764, allocations: 431 kB / 1.112 GB, free: 8.676 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3764, allocations: 0 / 1.112 GB, free: 8.676 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.000592/0.377, allocations: 219.5 kB / 1.112 GB, free: 8.461 MB / 0.8731 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.0001606/0.3772, allocations: 119.7 kB / 1.112 GB, free: 8.336 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.001512/0.3787, allocations: 0.7858 MB / 1.113 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.3787, allocations: 0 / 1.113 GB, free: 7.523 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.0004435/0.3792, allocations: 215.5 kB / 1.113 GB, free: 7.312 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008906/0.3801, allocations: 202 kB / 1.113 GB, free: 7.125 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001958/0.3821, allocations: 1.205 MB / 1.114 GB, free: 5.887 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004423/0.3825, allocations: 0.9139 MB / 1.115 GB, free: 4.945 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0003509/0.3829, allocations: 93.14 kB / 1.115 GB, free: 4.855 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001389/0.383, allocations: 51.42 kB / 1.115 GB, free: 4.805 MB / 0.8731 GB Notification: Performance of SimCode: time 2.2e-07/0.383, allocations: 0 / 1.115 GB, free: 4.805 MB / 0.8731 GB Notification: Performance of Templates: time 0.0134/0.3964, allocations: 7.668 MB / 1.123 GB, free: 13.22 MB / 0.8887 GB make -j1 -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_9_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches