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.008087/0.008087, allocations: 97.66 kB / 15.73 MB, free: 6.059 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.002479/0.002479, allocations: 197.5 kB / 16.68 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.466/1.466, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.857/2.857, allocations: 469.8 MB / 0.7425 GB, free: 7.371 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.00149, allocations: 71.88 kB / 1.065 GB, free: 13.12 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3377/0.3391, allocations: 159.1 MB / 1.221 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Examples.LimPID): time 0.005667/0.3448, allocations: 3.717 MB / 1.224 GB, free: 10.13 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.003021/0.3478, allocations: 1.329 MB / 1.225 GB, free: 8.797 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007814/0.3486, allocations: 31.81 kB / 1.226 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0005316/0.3491, allocations: 126.6 kB / 1.226 GB, free: 8.641 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0008915/0.35, allocations: 182.5 kB / 1.226 GB, free: 8.461 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.001407/0.3514, allocations: 0.5757 MB / 1.226 GB, free: 7.895 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.001425/0.3529, allocations: 0.9604 MB / 1.227 GB, free: 6.93 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005452/0.3534, allocations: 245.6 kB / 1.228 GB, free: 6.672 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005584/0.354, allocations: 378.4 kB / 1.228 GB, free: 6.301 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003601/0.3543, allocations: 358 kB / 1.228 GB, free: 5.949 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001044/0.3544, allocations: 76 kB / 1.228 GB, free: 5.875 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.352e-05/0.3545, allocations: 80 kB / 1.228 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.3547, allocations: 179.3 kB / 1.229 GB, free: 5.621 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.00029/0.355, allocations: 369.8 kB / 1.229 GB, free: 5.258 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0008838/0.3558, allocations: 0.8983 MB / 1.23 GB, free: 4.355 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/0.3558, allocations: 4 kB / 1.23 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.803e-06/0.3558, allocations: 0 / 1.23 GB, free: 4.352 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.256e-05/0.3559, allocations: 0 / 1.23 GB, free: 4.352 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.001913/0.3578, allocations: 1.21 MB / 1.231 GB, free: 3.082 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.3578, allocations: 8.031 kB / 1.231 GB, free: 3.074 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.358, allocations: 104.3 kB / 1.231 GB, free: 2.973 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009703/0.3589, allocations: 0.6227 MB / 1.232 GB, free: 2.309 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001004/0.359, allocations: 96.95 kB / 1.232 GB, free: 2.203 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.262e-05/0.3591, allocations: 56.38 kB / 1.232 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.3601, allocations: 0.6041 MB / 1.232 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.693e-05/0.3602, allocations: 0 / 1.232 GB, free: 1.508 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.398e-05/0.3602, allocations: 31.94 kB / 1.232 GB, free: 1.477 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.255e-05/0.3602, allocations: 12 kB / 1.232 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009291/0.3611, allocations: 419.7 kB / 1.233 GB, free: 1.051 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002676/0.3638, allocations: 2.106 MB / 1.235 GB, free: 14.86 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/0.365, allocations: 484 kB / 1.235 GB, free: 14.38 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004347/0.3654, allocations: 208.7 kB / 1.236 GB, free: 14.17 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.3654, allocations: 11.98 kB / 1.236 GB, free: 14.16 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006065/0.3661, allocations: 278.1 kB / 1.236 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=45): time 2.525e-06/0.3661, allocations: 0 / 1.236 GB, free: 13.88 MB / 0.9981 GB Notification: Performance of matching and sorting (n=45): time 0.001428/0.3675, allocations: 0.6181 MB / 1.236 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.169e-05/0.3675, allocations: 88.86 kB / 1.237 GB, free: 13.14 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007021/0.3682, allocations: 0.6178 MB / 1.237 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.418e-05/0.3683, allocations: 33.7 kB / 1.237 GB, free: 12.48 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002738/0.3686, allocations: 357.2 kB / 1.238 GB, free: 12.12 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001186/0.3687, allocations: 162.7 kB / 1.238 GB, free: 11.96 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.3688, allocations: 94.23 kB / 1.238 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001088/0.369, allocations: 326 kB / 1.238 GB, free: 11.54 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004346/0.3694, allocations: 190.9 kB / 1.238 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004543/0.3698, allocations: 272.2 kB / 1.239 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008492/0.3707, allocations: 470 kB / 1.239 GB, free: 10.56 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.704e-06/0.3707, allocations: 9.031 kB / 1.239 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of matching and sorting (n=64) (initialization): time 0.001166/0.3719, allocations: 0.6064 MB / 1.24 GB, free: 9.93 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/0.3719, allocations: 34.02 kB / 1.24 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3719, allocations: 4 kB / 1.24 GB, free: 9.887 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.551e-05/0.372, allocations: 8 kB / 1.24 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000486/0.3724, allocations: 107.8 kB / 1.24 GB, free: 9.773 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.187e-05/0.3724, allocations: 4 kB / 1.24 GB, free: 9.77 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003895/0.3728, allocations: 71.53 kB / 1.24 GB, free: 9.699 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.552e-05/0.3729, allocations: 16 kB / 1.24 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005664/0.3734, allocations: 317.2 kB / 1.24 GB, free: 9.371 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004309/0.3739, allocations: 268.1 kB / 1.24 GB, free: 9.074 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.00078/0.3747, allocations: 450 kB / 1.241 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.984e-06/0.3747, allocations: 0 / 1.241 GB, free: 8.594 MB / 0.9981 GB Notification: Performance of matching and sorting (n=64) (initialization_lambda0): time 0.00103/0.3757, allocations: 0.5868 MB / 1.241 GB, free: 7.996 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.3757, allocations: 35.73 kB / 1.241 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.022e-06/0.3757, allocations: 8 kB / 1.241 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.013e-06/0.3757, allocations: 4 kB / 1.241 GB, free: 7.945 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.3762, allocations: 112.1 kB / 1.242 GB, free: 7.836 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.3762, allocations: 7.984 kB / 1.242 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003448/0.3765, allocations: 47.75 kB / 1.242 GB, free: 7.781 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.307e-05/0.3765, allocations: 20 kB / 1.242 GB, free: 7.762 MB / 0.9981 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.0001983/0.3767, allocations: 218 kB / 1.242 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.781e-05/0.3768, allocations: 83.42 kB / 1.242 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000161/0.377, allocations: 79.2 kB / 1.242 GB, free: 7.379 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.377, allocations: 8 kB / 1.242 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.377, allocations: 4 kB / 1.242 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.377, allocations: 0 / 1.242 GB, free: 7.367 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006307/0.3776, allocations: 0.6258 MB / 1.243 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.3776, allocations: 0 / 1.243 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004468/0.3781, allocations: 79.89 kB / 1.243 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.3781, allocations: 4 kB / 1.243 GB, free: 6.609 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.055e-05/0.3781, allocations: 11.98 kB / 1.243 GB, free: 6.598 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3781, allocations: 4 kB / 1.243 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.804e-06/0.3781, allocations: 4 kB / 1.243 GB, free: 6.59 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.3795, allocations: 0.7331 MB / 1.243 GB, free: 5.836 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002108/0.3798, allocations: 192.6 kB / 1.244 GB, free: 5.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.258e-05/0.3798, allocations: 4 kB / 1.244 GB, free: 5.625 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003851/0.3802, allocations: 35.97 kB / 1.244 GB, free: 5.59 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001057/0.3803, allocations: 31.95 kB / 1.244 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.3804, allocations: 15.98 kB / 1.244 GB, free: 5.543 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0004957/0.3808, allocations: 431 kB / 1.244 GB, free: 5.125 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1e-07/0.3808, allocations: 4 kB / 1.244 GB, free: 5.121 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0005805/0.3814, allocations: 223.5 kB / 1.244 GB, free: 4.902 MB / 0.9981 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.0001514/0.3816, allocations: 123 kB / 1.244 GB, free: 4.773 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001483/0.3831, allocations: 0.7537 MB / 1.245 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.3831, allocations: 0 / 1.245 GB, free: 3.996 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005084/0.3836, allocations: 200.5 kB / 1.245 GB, free: 3.801 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008779/0.3845, allocations: 214.4 kB / 1.246 GB, free: 3.605 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002123/0.3866, allocations: 1.205 MB / 1.247 GB, free: 2.367 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000471/0.387, allocations: 0.918 MB / 1.248 GB, free: 1.422 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0003623/0.3874, allocations: 89.11 kB / 1.248 GB, free: 1.332 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.3875, allocations: 43.44 kB / 1.248 GB, free: 1.289 MB / 0.9981 GB Notification: Performance of SimCode: time 1.332e-06/0.3875, allocations: 4 kB / 1.248 GB, free: 1.285 MB / 0.9981 GB Notification: Performance of Templates: time 0.6974/1.085, allocations: 7.663 MB / 1.255 GB, free: 28.87 MB / 0.9981 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=480 -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