Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.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.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") translateModel(Buildings.Controls.Continuous.Validation.LimPIDReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|setPoi.y|mea.y|trigger.y|limPIDDef.y|limPIDDef.controlError|limPIDPar.y|limPIDPar.y_reset|limPIDInp.y|limPIDInp.y_reset_in",fileNamePrefix="Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 108.7 kB / 16.41 MB, free: 6.027 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.001987/0.001988, allocations: 186.2 kB / 17.34 MB, free: 5.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.416/1.416, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.642/2.642, allocations: 461.9 MB / 0.7354 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001427/0.001427, allocations: 59.91 kB / 1.055 GB, free: 7.699 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9455/0.9469, allocations: 157.4 MB / 1.208 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.005955/0.9529, allocations: 4.334 MB / 1.213 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.003462/0.9564, allocations: 1.582 MB / 1.214 GB, free: 7.645 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009127/0.9574, allocations: 35.81 kB / 1.214 GB, free: 7.609 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.000571/0.9579, allocations: 162.2 kB / 1.214 GB, free: 7.449 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.001101/0.9591, allocations: 234.1 kB / 1.215 GB, free: 7.219 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.9608, allocations: 0.6761 MB / 1.215 GB, free: 6.555 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.00168/0.9624, allocations: 1.226 MB / 1.216 GB, free: 5.324 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008765/0.9633, allocations: 0.4923 MB / 1.217 GB, free: 4.812 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007778/0.9641, allocations: 474 kB / 1.217 GB, free: 4.348 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000684/0.9648, allocations: 461.4 kB / 1.218 GB, free: 3.895 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0002628/0.9651, allocations: 104 kB / 1.218 GB, free: 3.793 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001879/0.9653, allocations: 100 kB / 1.218 GB, free: 3.695 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002442/0.9655, allocations: 243 kB / 1.218 GB, free: 3.457 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0005224/0.9661, allocations: 489 kB / 1.219 GB, free: 2.977 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.001238/0.9673, allocations: 1.153 MB / 1.22 GB, free: 1.824 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.9673, allocations: 3.938 kB / 1.22 GB, free: 1.82 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.913e-06/0.9673, allocations: 4 kB / 1.22 GB, free: 1.816 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.231e-05/0.9674, allocations: 0 / 1.22 GB, free: 1.816 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002704/0.9701, allocations: 1.399 MB / 1.221 GB, free: 372 kB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.9701, allocations: 12.03 kB / 1.221 GB, free: 360 kB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001849/0.9703, allocations: 119.5 kB / 1.221 GB, free: 240 kB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00138/0.9717, allocations: 0.7626 MB / 1.222 GB, free: 15.43 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.521e-05/0.9718, allocations: 80.27 kB / 1.222 GB, free: 15.34 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001038/0.9719, allocations: 68.38 kB / 1.222 GB, free: 15.28 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001216/0.9732, allocations: 0.7329 MB / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.8e-05/0.9732, allocations: 0 / 1.223 GB, free: 14.51 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.449e-05/0.9733, allocations: 28 kB / 1.223 GB, free: 14.48 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.112e-05/0.9733, allocations: 20 kB / 1.223 GB, free: 14.46 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001032/0.9743, allocations: 0.5243 MB / 1.223 GB, free: 13.94 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003273/0.9776, allocations: 2.243 MB / 1.226 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.9789, allocations: 0.6271 MB / 1.226 GB, free: 10.99 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004892/0.9794, allocations: 270.4 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.275e-05/0.9795, allocations: 12.55 kB / 1.227 GB, free: 10.71 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006449/0.9802, allocations: 319.1 kB / 1.227 GB, free: 10.39 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=60): time 2.755e-06/0.9802, allocations: 3.938 kB / 1.227 GB, free: 10.38 MB / 0.9512 GB Notification: Performance of matching and sorting (n=60): time 0.001594/0.9818, allocations: 0.7517 MB / 1.228 GB, free: 9.625 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.825e-05/0.9818, allocations: 89.61 kB / 1.228 GB, free: 9.52 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009341/0.9828, allocations: 0.7555 MB / 1.228 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.9829, allocations: 41.7 kB / 1.228 GB, free: 8.707 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.9832, allocations: 440.5 kB / 1.229 GB, free: 8.273 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.9834, allocations: 208.9 kB / 1.229 GB, free: 8.066 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001939/0.9836, allocations: 110.2 kB / 1.229 GB, free: 7.953 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001178/0.9837, allocations: 333.9 kB / 1.229 GB, free: 7.621 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004626/0.9842, allocations: 207.4 kB / 1.23 GB, free: 7.414 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005076/0.9847, allocations: 308.4 kB / 1.23 GB, free: 7.078 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009259/0.9856, allocations: 0.5075 MB / 1.23 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.9856, allocations: 0 / 1.23 GB, free: 6.539 MB / 0.9512 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001226/0.9869, allocations: 0.6501 MB / 1.231 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.004e-05/0.9869, allocations: 4 kB / 1.231 GB, free: 5.879 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.768e-06/0.9869, allocations: 4 kB / 1.231 GB, free: 5.875 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.936e-05/0.9869, allocations: 4 kB / 1.231 GB, free: 5.871 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006327/0.9876, allocations: 143.8 kB / 1.231 GB, free: 5.73 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.746e-05/0.9876, allocations: 16.06 kB / 1.231 GB, free: 5.715 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004518/0.9881, allocations: 71.34 kB / 1.231 GB, free: 5.645 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.654e-05/0.9881, allocations: 23.98 kB / 1.231 GB, free: 5.621 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000582/0.9887, allocations: 353.4 kB / 1.232 GB, free: 5.273 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004417/0.9892, allocations: 292.5 kB / 1.232 GB, free: 4.957 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008315/0.99, allocations: 491.7 kB / 1.232 GB, free: 4.441 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 4.528e-06/0.99, allocations: 8 kB / 1.232 GB, free: 4.434 MB / 0.9512 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.00114/0.9912, allocations: 0.6304 MB / 1.233 GB, free: 3.801 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/0.9912, allocations: 5.719 kB / 1.233 GB, free: 3.797 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.9912, allocations: 4.25 kB / 1.233 GB, free: 3.793 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.795e-06/0.9912, allocations: 8 kB / 1.233 GB, free: 3.785 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005909/0.9918, allocations: 139.8 kB / 1.233 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.19e-05/0.9918, allocations: 4 kB / 1.233 GB, free: 3.645 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004364/0.9923, allocations: 59.5 kB / 1.233 GB, free: 3.586 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.046e-05/0.9923, allocations: 23.98 kB / 1.233 GB, free: 3.562 MB / 0.9512 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,trigger.pulseStart,$PRE.trigger.pulseStart,trigger.y,$whenCondition2,limPIDOri.I.local_reset,limPIDDef.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * 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.0001991/0.9925, allocations: 216.1 kB / 1.234 GB, free: 3.344 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001287/0.9927, allocations: 98.78 kB / 1.234 GB, free: 3.246 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002132/0.9929, allocations: 101.2 kB / 1.234 GB, free: 3.145 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-06/0.9929, allocations: 8 kB / 1.234 GB, free: 3.137 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.9929, allocations: 3.938 kB / 1.234 GB, free: 3.133 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.074e-05/0.9929, allocations: 7.922 kB / 1.234 GB, free: 3.125 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.9952, allocations: 1.435 MB / 1.235 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.9952, allocations: 0 / 1.235 GB, free: 1.633 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005648/0.9958, allocations: 107.8 kB / 1.235 GB, free: 1.527 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.837e-06/0.9958, allocations: 4 kB / 1.235 GB, free: 1.523 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.659e-05/0.9958, allocations: 19.98 kB / 1.235 GB, free: 1.504 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.042e-06/0.9958, allocations: 7.938 kB / 1.235 GB, free: 1.496 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/0.9958, allocations: 3.938 kB / 1.235 GB, free: 1.492 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001608/0.9975, allocations: 0.9557 MB / 1.236 GB, free: 0.5156 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003082/0.9978, allocations: 235.7 kB / 1.236 GB, free: 272 kB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.944e-05/0.9979, allocations: 12 kB / 1.236 GB, free: 260 kB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.9983, allocations: 31.97 kB / 1.236 GB, free: 228 kB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.389e-05/0.9984, allocations: 36.5 kB / 1.237 GB, free: 192 kB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.043e-05/0.9985, allocations: 16 kB / 1.237 GB, free: 176 kB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0007024/0.9992, allocations: 0.5146 MB / 1.237 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9992, allocations: 0 / 1.237 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0007912/1, allocations: 279.1 kB / 1.237 GB, free: 15.39 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (limPIDPar.I.y,limPIDPar.D.x,limPIDDef.I.y,limPIDDef.D.x,limPIDInp.I.y,limPIDInp.D.x,limPIDOri.I.y,limPIDOri.D.x) * Number of discrete variables: 4 (trigger.y,$whenCondition2,$whenCondition1,trigger.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 59 * 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.000168/1, allocations: 119.1 kB / 1.237 GB, free: 15.26 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.001623/1.002, allocations: 0.7936 MB / 1.238 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.248e-06/1.002, allocations: 0 / 1.238 GB, free: 14.47 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0004989/1.002, allocations: 271.7 kB / 1.238 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/1.003, allocations: 264.2 kB / 1.239 GB, free: 13.96 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/1.006, allocations: 1.58 MB / 1.24 GB, free: 12.34 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005682/1.007, allocations: 0.9976 MB / 1.241 GB, free: 11.32 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002348/1.007, allocations: 59.44 kB / 1.241 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of SimCode: time 6.51e-07/1.007, allocations: 0 / 1.241 GB, free: 11.26 MB / 0.9669 GB Notification: Performance of Templates: time 0.01856/1.026, allocations: 11.03 MB / 1.252 GB, free: 292 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.makefile (rm -f Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe >> ../files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.sim & ./Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_Continuous_Validation_LimPIDReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches