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.00164/0.001639, allocations: 108 kB / 15.61 MB, free: 152 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.001884/0.001884, allocations: 192.6 kB / 16.53 MB, free: 6.664 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.452/1.452, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.819/2.819, allocations: 472.6 MB / 0.7451 GB, free: 4.605 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001319/0.001319, allocations: 66.88 kB / 0.9121 GB, free: 33.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3485/0.3498, allocations: 159.9 MB / 1.068 GB, free: 10.4 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.005818/0.3557, allocations: 4.343 MB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003343/0.359, allocations: 1.593 MB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007048/0.3598, allocations: 35.81 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0004481/0.3602, allocations: 162.2 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0007774/0.361, allocations: 226.1 kB / 1.074 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.001428/0.3625, allocations: 0.6692 MB / 1.075 GB, free: 3.359 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.001341/0.3638, allocations: 1.214 MB / 1.076 GB, free: 2.141 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007508/0.3646, allocations: 0.4884 MB / 1.077 GB, free: 1.629 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005854/0.3652, allocations: 465.9 kB / 1.077 GB, free: 1.172 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004384/0.3656, allocations: 465.4 kB / 1.078 GB, free: 0.7148 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0001463/0.3658, allocations: 104 kB / 1.078 GB, free: 0.6133 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000135/0.3659, allocations: 104 kB / 1.078 GB, free: 0.5117 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001724/0.3661, allocations: 231.1 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003713/0.3665, allocations: 493 kB / 1.078 GB, free: 15.8 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0008998/0.3674, allocations: 1.106 MB / 1.08 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3674, allocations: 3.984 kB / 1.08 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.192e-06/0.3674, allocations: 0 / 1.08 GB, free: 14.69 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.525e-05/0.3674, allocations: 0 / 1.08 GB, free: 14.69 MB / 0.8419 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.002189/0.3696, allocations: 1.395 MB / 1.081 GB, free: 13.24 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.3697, allocations: 16.03 kB / 1.081 GB, free: 13.22 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001643/0.3698, allocations: 115.5 kB / 1.081 GB, free: 13.11 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.3709, allocations: 0.7352 MB / 1.082 GB, free: 12.33 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.465e-05/0.371, allocations: 84.25 kB / 1.082 GB, free: 12.24 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.317e-05/0.3711, allocations: 68.38 kB / 1.082 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001172/0.3723, allocations: 0.7367 MB / 1.083 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.54e-05/0.3723, allocations: 3.984 kB / 1.083 GB, free: 11.4 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.3724, allocations: 32 kB / 1.083 GB, free: 11.37 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.3724, allocations: 20 kB / 1.083 GB, free: 11.35 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.3735, allocations: 0.5165 MB / 1.083 GB, free: 10.83 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003202/0.3767, allocations: 2.271 MB / 1.085 GB, free: 8.492 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001436/0.3782, allocations: 0.6211 MB / 1.086 GB, free: 7.863 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005262/0.3787, allocations: 268 kB / 1.086 GB, free: 7.602 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 4.665e-05/0.3788, allocations: 8.562 kB / 1.086 GB, free: 7.594 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007429/0.3795, allocations: 327 kB / 1.087 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=60): time 2.464e-06/0.3795, allocations: 0 / 1.087 GB, free: 7.262 MB / 0.8419 GB Notification: Performance of matching and sorting (n=60): time 0.001652/0.3812, allocations: 0.7517 MB / 1.087 GB, free: 6.504 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.783e-05/0.3813, allocations: 81.67 kB / 1.087 GB, free: 6.406 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009286/0.3822, allocations: 0.7594 MB / 1.088 GB, free: 5.637 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.345e-05/0.3823, allocations: 41.7 kB / 1.088 GB, free: 5.59 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.3826, allocations: 440.5 kB / 1.089 GB, free: 5.156 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/0.3828, allocations: 201 kB / 1.089 GB, free: 4.957 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001766/0.383, allocations: 114.2 kB / 1.089 GB, free: 4.84 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3831, allocations: 330 kB / 1.089 GB, free: 4.512 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004784/0.3836, allocations: 211.4 kB / 1.089 GB, free: 4.301 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005527/0.3841, allocations: 308.5 kB / 1.09 GB, free: 3.969 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009852/0.3851, allocations: 0.5074 MB / 1.09 GB, free: 3.43 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.839e-06/0.3852, allocations: 4 kB / 1.09 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001283/0.3864, allocations: 0.6386 MB / 1.091 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.863e-05/0.3865, allocations: 16 kB / 1.091 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3865, allocations: 0 / 1.091 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/0.3865, allocations: 8 kB / 1.091 GB, free: 2.754 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006527/0.3872, allocations: 147.8 kB / 1.091 GB, free: 2.609 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.295e-05/0.3872, allocations: 7.938 kB / 1.091 GB, free: 2.602 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004367/0.3876, allocations: 71.34 kB / 1.091 GB, free: 2.531 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.3877, allocations: 20 kB / 1.091 GB, free: 2.512 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006105/0.3883, allocations: 365.3 kB / 1.091 GB, free: 2.148 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004741/0.3888, allocations: 288.5 kB / 1.092 GB, free: 1.836 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008984/0.3897, allocations: 499.7 kB / 1.092 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.345e-06/0.3897, allocations: 0 / 1.092 GB, free: 1.32 MB / 0.8419 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.001191/0.3909, allocations: 0.6344 MB / 1.093 GB, free: 0.6758 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.3909, allocations: 5.562 kB / 1.093 GB, free: 0.6719 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.875e-06/0.3909, allocations: 4 kB / 1.093 GB, free: 0.668 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.983e-06/0.391, allocations: 7.938 kB / 1.093 GB, free: 0.6602 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006046/0.3916, allocations: 143.7 kB / 1.093 GB, free: 0.5195 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.3916, allocations: 4.25 kB / 1.093 GB, free: 0.5156 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000414/0.392, allocations: 67.44 kB / 1.093 GB, free: 460 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.858e-05/0.392, allocations: 20 kB / 1.093 GB, free: 440 kB / 0.8419 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.0001715/0.3922, allocations: 212.1 kB / 1.093 GB, free: 220 kB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001281/0.3924, allocations: 98.77 kB / 1.093 GB, free: 120 kB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001833/0.3925, allocations: 101.2 kB / 1.093 GB, free: 16 kB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.3926, allocations: 4 kB / 1.093 GB, free: 12 kB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.747e-06/0.3926, allocations: 7.938 kB / 1.093 GB, free: 4 kB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.168e-05/0.3926, allocations: 8.047 kB / 1.093 GB, free: 15.99 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002264/0.3949, allocations: 1.431 MB / 1.095 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.3949, allocations: 4 kB / 1.095 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005553/0.3955, allocations: 107.8 kB / 1.095 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.582e-06/0.3955, allocations: 4 kB / 1.095 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.994e-05/0.3955, allocations: 12 kB / 1.095 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.207e-06/0.3955, allocations: 0 / 1.095 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3955, allocations: 7.938 kB / 1.095 GB, free: 14.38 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001742/0.3973, allocations: 0.9664 MB / 1.096 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002888/0.3976, allocations: 223.7 kB / 1.096 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001116/0.3977, allocations: 12 kB / 1.096 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004859/0.3982, allocations: 39.95 kB / 1.096 GB, free: 13.1 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.3983, allocations: 36.52 kB / 1.096 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.26e-05/0.3984, allocations: 19.98 kB / 1.096 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007123/0.3991, allocations: 0.5146 MB / 1.097 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3991, allocations: 0 / 1.097 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0008081/0.3999, allocations: 275.1 kB / 1.097 GB, free: 12.27 MB / 0.8575 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.000162/0.4001, allocations: 124.6 kB / 1.097 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.001968/0.402, allocations: 0.8213 MB / 1.098 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.4021, allocations: 0 / 1.098 GB, free: 11.32 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0005214/0.4026, allocations: 267.1 kB / 1.098 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001154/0.4037, allocations: 258.5 kB / 1.098 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002806/0.4066, allocations: 1.567 MB / 1.1 GB, free: 9.219 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005542/0.4071, allocations: 1.002 MB / 1.101 GB, free: 8.191 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0005159/0.4077, allocations: 114.7 kB / 1.101 GB, free: 8.074 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001766/0.4078, allocations: 59.42 kB / 1.101 GB, free: 8.016 MB / 0.8575 GB Notification: Performance of SimCode: time 6.41e-07/0.4079, allocations: 4 kB / 1.101 GB, free: 8.012 MB / 0.8575 GB Notification: Performance of Templates: time 0.0171/0.425, allocations: 9.262 MB / 1.11 GB, free: 14.87 MB / 0.8731 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