Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001692/0.001692, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001697/0.001697, allocations: 196.3 kB / 16.26 MB, free: 6.629 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.448/1.448, 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 11.1.0-maint.11.x/package.mo): time 2.935/2.935, allocations: 469.8 MB / 0.742 GB, free: 7.598 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 63.22 kB / 0.908 GB, free: 34.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2961/0.298, allocations: 159.2 MB / 1.063 GB, free: 14.67 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005564/0.3036, allocations: 3.716 MB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002759/0.3064, allocations: 1.305 MB / 1.068 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006165/0.307, allocations: 23.88 kB / 1.068 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004143/0.3075, allocations: 99.09 kB / 1.068 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0006947/0.3082, allocations: 135.9 kB / 1.069 GB, free: 9.367 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001281/0.3095, allocations: 0.5292 MB / 1.069 GB, free: 8.848 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.00104/0.3105, allocations: 0.9642 MB / 1.07 GB, free: 7.879 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005365/0.3111, allocations: 345.6 kB / 1.07 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004157/0.3115, allocations: 370.3 kB / 1.071 GB, free: 7.164 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003776/0.3119, allocations: 354.1 kB / 1.071 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001112/0.312, allocations: 76 kB / 1.071 GB, free: 6.742 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000103/0.3121, allocations: 87.94 kB / 1.071 GB, free: 6.656 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001553/0.3123, allocations: 183.3 kB / 1.071 GB, free: 6.477 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003096/0.3126, allocations: 373.7 kB / 1.072 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0008481/0.3135, allocations: 0.8527 MB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.3135, allocations: 0 / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.774e-06/0.3135, allocations: 0 / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.037e-05/0.3135, allocations: 0 / 1.073 GB, free: 5.254 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.002056/0.3156, allocations: 1.191 MB / 1.074 GB, free: 4.008 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.3156, allocations: 12.03 kB / 1.074 GB, free: 3.996 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.3158, allocations: 91.81 kB / 1.074 GB, free: 3.906 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009014/0.3167, allocations: 0.5909 MB / 1.074 GB, free: 3.27 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001183/0.3168, allocations: 101 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.304e-05/0.3169, allocations: 56.38 kB / 1.075 GB, free: 3.105 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3181, allocations: 0.6003 MB / 1.075 GB, free: 2.461 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.102e-05/0.3181, allocations: 7.938 kB / 1.075 GB, free: 2.453 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.277e-05/0.3182, allocations: 20 kB / 1.075 GB, free: 2.434 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.549e-05/0.3182, allocations: 12 kB / 1.075 GB, free: 2.422 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001033/0.3192, allocations: 423.7 kB / 1.076 GB, free: 2.012 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003271/0.3225, allocations: 2.11 MB / 1.078 GB, free: 15.81 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.3238, allocations: 0.4921 MB / 1.078 GB, free: 15.31 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004507/0.3242, allocations: 224.7 kB / 1.078 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.374e-05/0.3243, allocations: 7.906 kB / 1.078 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006575/0.325, allocations: 278.2 kB / 1.079 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=45): time 2.334e-06/0.325, allocations: 7.938 kB / 1.079 GB, free: 14.79 MB / 0.8419 GB Notification: Performance of matching and sorting (n=45): time 0.001442/0.3264, allocations: 0.6138 MB / 1.079 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.949e-05/0.3265, allocations: 92.86 kB / 1.079 GB, free: 14.06 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007208/0.3272, allocations: 0.6063 MB / 1.08 GB, free: 13.44 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.304e-05/0.3273, allocations: 37.7 kB / 1.08 GB, free: 13.4 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002821/0.3276, allocations: 360.6 kB / 1.08 GB, free: 13.04 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.3277, allocations: 157.8 kB / 1.08 GB, free: 12.89 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001567/0.3279, allocations: 94.23 kB / 1.081 GB, free: 12.79 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.328, allocations: 322 kB / 1.081 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004417/0.3285, allocations: 191 kB / 1.081 GB, free: 12.28 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005002/0.329, allocations: 280.2 kB / 1.081 GB, free: 11.97 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000898/0.3299, allocations: 466 kB / 1.082 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.3299, allocations: 7.938 kB / 1.082 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001186/0.3311, allocations: 0.6062 MB / 1.082 GB, free: 10.85 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.82e-05/0.3311, allocations: 29.7 kB / 1.082 GB, free: 10.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.3312, allocations: 4 kB / 1.082 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.639e-05/0.3312, allocations: 4 kB / 1.082 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004685/0.3317, allocations: 103.9 kB / 1.082 GB, free: 10.71 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.503e-05/0.3317, allocations: 11.94 kB / 1.083 GB, free: 10.7 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003727/0.3321, allocations: 67.41 kB / 1.083 GB, free: 10.63 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.799e-05/0.3321, allocations: 20.09 kB / 1.083 GB, free: 10.61 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005453/0.3327, allocations: 313.2 kB / 1.083 GB, free: 10.3 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004636/0.3331, allocations: 260.3 kB / 1.083 GB, free: 10 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008143/0.334, allocations: 457.9 kB / 1.084 GB, free: 9.52 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.657e-06/0.334, allocations: 4 kB / 1.084 GB, free: 9.516 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.001074/0.3351, allocations: 0.5787 MB / 1.084 GB, free: 8.922 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.013e-05/0.3351, allocations: 34.8 kB / 1.084 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.015e-06/0.3351, allocations: 320 / 1.084 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.186e-06/0.3351, allocations: 8 kB / 1.084 GB, free: 8.875 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004204/0.3355, allocations: 107.8 kB / 1.084 GB, free: 8.77 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.668e-06/0.3356, allocations: 7.984 kB / 1.084 GB, free: 8.762 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003459/0.3359, allocations: 51.66 kB / 1.084 GB, free: 8.711 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.336, allocations: 16 kB / 1.084 GB, free: 8.695 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.000181/0.3361, allocations: 216 kB / 1.085 GB, free: 8.477 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.3362, allocations: 75.06 kB / 1.085 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000154/0.3364, allocations: 91.14 kB / 1.085 GB, free: 8.309 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.05e-06/0.3364, allocations: 4 kB / 1.085 GB, free: 8.305 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.3364, allocations: 3.984 kB / 1.085 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.989e-06/0.3364, allocations: 0 / 1.085 GB, free: 8.301 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006869/0.3371, allocations: 0.6218 MB / 1.085 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.3371, allocations: 0 / 1.085 GB, free: 7.629 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004549/0.3376, allocations: 83.89 kB / 1.085 GB, free: 7.547 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.3376, allocations: 7.875 kB / 1.085 GB, free: 7.539 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.793e-05/0.3377, allocations: 19.98 kB / 1.085 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.984e-06/0.3377, allocations: 0 / 1.085 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3377, allocations: 0 / 1.085 GB, free: 7.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001496/0.3392, allocations: 0.7286 MB / 1.086 GB, free: 6.773 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002364/0.3394, allocations: 192 kB / 1.086 GB, free: 6.566 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.706e-05/0.3395, allocations: 12 kB / 1.086 GB, free: 6.555 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003972/0.3399, allocations: 31.97 kB / 1.086 GB, free: 6.523 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.543e-05/0.34, allocations: 31.95 kB / 1.086 GB, free: 6.492 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.642e-05/0.34, allocations: 15.98 kB / 1.086 GB, free: 6.477 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004961/0.3405, allocations: 435 kB / 1.087 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.3406, allocations: 0 / 1.087 GB, free: 6.059 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0005801/0.3411, allocations: 215.4 kB / 1.087 GB, free: 5.848 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.0001404/0.3413, allocations: 115.1 kB / 1.087 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001677/0.343, allocations: 0.7961 MB / 1.088 GB, free: 4.906 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.343, allocations: 1.188 kB / 1.088 GB, free: 4.906 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0004707/0.3435, allocations: 227.7 kB / 1.088 GB, free: 4.684 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008796/0.3443, allocations: 200.3 kB / 1.088 GB, free: 4.496 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.3465, allocations: 1.444 MB / 1.09 GB, free: 3.023 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005064/0.347, allocations: 0.9141 MB / 1.091 GB, free: 2.082 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003769/0.3474, allocations: 93.11 kB / 1.091 GB, free: 1.992 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000147/0.3476, allocations: 51.42 kB / 1.091 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of SimCode: time 2.6e-07/0.3476, allocations: 0 / 1.091 GB, free: 1.941 MB / 0.8419 GB Notification: Performance of Templates: time 0.01461/0.3622, allocations: 7.511 MB / 1.098 GB, free: 10.51 MB / 0.8575 GB make -j1 -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.makefile (rm -f Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; mkfifo Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe ; head -c 1048576 < Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe >> ../files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.sim & ./Buildings_11_Buildings.Controls.Continuous.Examples.LimPID -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Controls.Continuous.Examples.LimPID_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Controls_Continuous_Examples_LimPID.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Controls.Continuous.Examples.LimPID.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches