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 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.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.008081/0.008081, allocations: 104.7 kB / 15.74 MB, free: 6.02 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.001638/0.001638, allocations: 193.4 kB / 16.67 MB, free: 5.934 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.334/1.334, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.717/2.717, allocations: 472.6 MB / 0.7453 GB, free: 0.5117 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 59.91 kB / 1.069 GB, free: 9.605 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9119/0.9131, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.006229/0.9194, allocations: 4.326 MB / 1.23 GB, free: 9.188 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.003401/0.9228, allocations: 1.585 MB / 1.231 GB, free: 7.594 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008757/0.9237, allocations: 35.81 kB / 1.231 GB, free: 7.559 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0004747/0.9242, allocations: 170.2 kB / 1.232 GB, free: 7.391 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0007654/0.925, allocations: 230.1 kB / 1.232 GB, free: 7.164 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001376/0.9264, allocations: 0.6641 MB / 1.232 GB, free: 6.512 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.001448/0.9279, allocations: 1.234 MB / 1.234 GB, free: 5.273 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000768/0.9286, allocations: 0.4962 MB / 1.234 GB, free: 4.754 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0006842/0.9293, allocations: 461.9 kB / 1.235 GB, free: 4.301 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004979/0.9298, allocations: 457.4 kB / 1.235 GB, free: 3.852 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001445/0.93, allocations: 104 kB / 1.235 GB, free: 3.75 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.9301, allocations: 104 kB / 1.235 GB, free: 3.648 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.9303, allocations: 231.1 kB / 1.235 GB, free: 3.422 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0003976/0.9307, allocations: 493 kB / 1.236 GB, free: 2.938 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001207/0.9319, allocations: 1.163 MB / 1.237 GB, free: 1.773 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.932, allocations: 4 kB / 1.237 GB, free: 1.77 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.974e-06/0.932, allocations: 4 kB / 1.237 GB, free: 1.766 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.508e-05/0.932, allocations: 0 / 1.237 GB, free: 1.766 MB / 0.9512 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.002387/0.9344, allocations: 1.433 MB / 1.238 GB, free: 284 kB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.9344, allocations: 8.031 kB / 1.238 GB, free: 276 kB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001959/0.9346, allocations: 128.1 kB / 1.239 GB, free: 148 kB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001315/0.936, allocations: 0.7712 MB / 1.239 GB, free: 15.33 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.957e-05/0.9361, allocations: 80.27 kB / 1.239 GB, free: 15.25 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.475e-05/0.9362, allocations: 72.33 kB / 1.239 GB, free: 15.18 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.9375, allocations: 0.7367 MB / 1.24 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.9375, allocations: 4 kB / 1.24 GB, free: 14.4 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.038e-05/0.9376, allocations: 35.98 kB / 1.24 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.005e-05/0.9376, allocations: 16 kB / 1.24 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001147/0.9388, allocations: 0.5165 MB / 1.241 GB, free: 13.83 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003707/0.9425, allocations: 2.248 MB / 1.243 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001529/0.944, allocations: 0.6181 MB / 1.244 GB, free: 10.89 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005278/0.9446, allocations: 282.4 kB / 1.244 GB, free: 10.61 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 5.502e-05/0.9446, allocations: 8.547 kB / 1.244 GB, free: 10.6 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006945/0.9453, allocations: 319.1 kB / 1.244 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=60): time 3.186e-06/0.9454, allocations: 0 / 1.244 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of matching and sorting (n=60): time 0.0017/0.9471, allocations: 0.7523 MB / 1.245 GB, free: 9.52 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.307e-05/0.9472, allocations: 93.59 kB / 1.245 GB, free: 9.41 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009493/0.9481, allocations: 0.7594 MB / 1.246 GB, free: 8.641 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 4.745e-05/0.9482, allocations: 37.7 kB / 1.246 GB, free: 8.598 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003641/0.9485, allocations: 445 kB / 1.246 GB, free: 8.156 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001899/0.9487, allocations: 222.1 kB / 1.246 GB, free: 7.938 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.9489, allocations: 110.3 kB / 1.246 GB, free: 7.824 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001403/0.9491, allocations: 326 kB / 1.247 GB, free: 7.5 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004463/0.9495, allocations: 207.4 kB / 1.247 GB, free: 7.293 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.9501, allocations: 304.5 kB / 1.247 GB, free: 6.957 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009439/0.951, allocations: 0.5075 MB / 1.248 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.951, allocations: 0 / 1.248 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001287/0.9523, allocations: 0.6622 MB / 1.248 GB, free: 5.75 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.9524, allocations: 5.25 kB / 1.248 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.699e-06/0.9524, allocations: 4 kB / 1.248 GB, free: 5.742 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.9524, allocations: 4 kB / 1.248 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006423/0.953, allocations: 148 kB / 1.249 GB, free: 5.594 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.9531, allocations: 11.94 kB / 1.249 GB, free: 5.582 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004239/0.9535, allocations: 67.53 kB / 1.249 GB, free: 5.516 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.382e-05/0.9535, allocations: 24 kB / 1.249 GB, free: 5.492 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006371/0.9542, allocations: 353.4 kB / 1.249 GB, free: 5.145 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.000478/0.9547, allocations: 296.4 kB / 1.249 GB, free: 4.82 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008938/0.9556, allocations: 495.7 kB / 1.25 GB, free: 4.309 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.144e-06/0.9556, allocations: 4 kB / 1.25 GB, free: 4.305 MB / 0.9669 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.001127/0.9567, allocations: 0.631 MB / 1.25 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.4e-05/0.9567, allocations: 8.25 kB / 1.25 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.917e-06/0.9568, allocations: 4 kB / 1.25 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.635e-06/0.9568, allocations: 8 kB / 1.25 GB, free: 3.645 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000598/0.9574, allocations: 143.7 kB / 1.251 GB, free: 3.504 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.262e-05/0.9574, allocations: 11.94 kB / 1.251 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004048/0.9578, allocations: 59.59 kB / 1.251 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/0.9579, allocations: 20 kB / 1.251 GB, free: 3.414 MB / 0.9669 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.0002211/0.9581, allocations: 225.5 kB / 1.251 GB, free: 3.188 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001265/0.9582, allocations: 99.34 kB / 1.251 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002352/0.9585, allocations: 105.2 kB / 1.251 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.225e-06/0.9585, allocations: 8 kB / 1.251 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.9585, allocations: 3.938 kB / 1.251 GB, free: 2.977 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.684e-06/0.9585, allocations: 3.984 kB / 1.251 GB, free: 2.973 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00224/0.9607, allocations: 1.431 MB / 1.252 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.9608, allocations: 0 / 1.252 GB, free: 1.484 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005491/0.9613, allocations: 115.8 kB / 1.253 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.9613, allocations: 0 / 1.253 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-05/0.9614, allocations: 15.98 kB / 1.253 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.959e-06/0.9614, allocations: 4 kB / 1.253 GB, free: 1.352 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.9614, allocations: 4 kB / 1.253 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001688/0.9631, allocations: 0.964 MB / 1.254 GB, free: 376 kB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002879/0.9634, allocations: 228.2 kB / 1.254 GB, free: 128 kB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.965e-05/0.9635, allocations: 15.98 kB / 1.254 GB, free: 112 kB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004126/0.9639, allocations: 35.91 kB / 1.254 GB, free: 76 kB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.491e-05/0.964, allocations: 32.52 kB / 1.254 GB, free: 44 kB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.789e-05/0.9641, allocations: 19.98 kB / 1.254 GB, free: 24 kB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.0006736/0.9647, allocations: 0.5187 MB / 1.254 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.9647, allocations: 0 / 1.254 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0007302/0.9655, allocations: 279.3 kB / 1.255 GB, free: 15.23 MB / 0.9825 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.0001578/0.9656, allocations: 113 kB / 1.255 GB, free: 15.11 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.001675/0.9673, allocations: 0.7975 MB / 1.255 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.9673, allocations: 0 / 1.255 GB, free: 14.31 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0005026/0.9679, allocations: 267.7 kB / 1.256 GB, free: 14.05 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/0.969, allocations: 261.4 kB / 1.256 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.9716, allocations: 1.588 MB / 1.258 GB, free: 12.19 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000532/0.9722, allocations: 0.9898 MB / 1.259 GB, free: 11.17 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0005003/0.9727, allocations: 130.6 kB / 1.259 GB, free: 11.04 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/0.9729, allocations: 59.44 kB / 1.259 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of SimCode: time 9.32e-07/0.9729, allocations: 0 / 1.259 GB, free: 10.98 MB / 0.9825 GB Notification: Performance of Templates: time 0.01806/0.991, allocations: 9.392 MB / 1.268 GB, free: 1.703 MB / 0.9825 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.Continuous.Validation.LimPIDReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches