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.009006/0.009007, allocations: 101.2 kB / 15.73 MB, free: 6.422 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.001863/0.001863, allocations: 188.8 kB / 16.67 MB, free: 6.352 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.458/1.458, allocations: 222.9 MB / 240.4 MB, free: 4.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.888/2.888, allocations: 461.9 MB / 0.7347 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001451/0.001451, allocations: 67.91 kB / 1.054 GB, free: 7.266 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3449, allocations: 157.4 MB / 1.208 GB, free: 9.766 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.005948/0.3509, allocations: 4.329 MB / 1.212 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.003492/0.3545, allocations: 1.589 MB / 1.213 GB, free: 3.805 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009066/0.3554, allocations: 31.88 kB / 1.213 GB, free: 3.773 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0006085/0.356, allocations: 162.2 kB / 1.214 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.001127/0.3572, allocations: 234 kB / 1.214 GB, free: 3.383 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001677/0.3589, allocations: 0.6755 MB / 1.215 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.001647/0.3605, allocations: 1.218 MB / 1.216 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009/0.3614, allocations: 0.5002 MB / 1.216 GB, free: 0.9766 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0007256/0.3622, allocations: 473.9 kB / 1.217 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006183/0.3628, allocations: 465.4 kB / 1.217 GB, free: 56 kB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0002365/0.3631, allocations: 104 kB / 1.217 GB, free: 15.95 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001809/0.3632, allocations: 100 kB / 1.217 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002033/0.3635, allocations: 235 kB / 1.218 GB, free: 15.62 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.000521/0.364, allocations: 493 kB / 1.218 GB, free: 15.14 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.00117/0.3652, allocations: 1.164 MB / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.3652, allocations: 0 / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.512e-06/0.3652, allocations: 0 / 1.219 GB, free: 13.97 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.148e-05/0.3652, allocations: 0 / 1.219 GB, free: 13.97 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002798/0.368, allocations: 1.392 MB / 1.22 GB, free: 12.53 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.44e-05/0.3681, allocations: 12.62 kB / 1.221 GB, free: 12.52 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002505/0.3683, allocations: 127.4 kB / 1.221 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001343/0.3697, allocations: 0.7509 MB / 1.221 GB, free: 11.6 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.3698, allocations: 88.25 kB / 1.221 GB, free: 11.51 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.984e-05/0.3699, allocations: 68.38 kB / 1.222 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001239/0.3712, allocations: 0.7368 MB / 1.222 GB, free: 10.67 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.3712, allocations: 3.984 kB / 1.222 GB, free: 10.66 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.787e-05/0.3713, allocations: 28 kB / 1.222 GB, free: 10.64 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.625e-05/0.3713, allocations: 19.98 kB / 1.222 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001022/0.3723, allocations: 0.5126 MB / 1.223 GB, free: 10.1 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003146/0.3755, allocations: 2.251 MB / 1.225 GB, free: 7.777 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001296/0.3768, allocations: 0.6249 MB / 1.226 GB, free: 7.148 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004705/0.3773, allocations: 274.4 kB / 1.226 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.3773, allocations: 4.562 kB / 1.226 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006244/0.378, allocations: 339 kB / 1.226 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=60): time 2.826e-06/0.378, allocations: 0 / 1.226 GB, free: 6.531 MB / 0.9825 GB Notification: Performance of matching and sorting (n=60): time 0.001601/0.3796, allocations: 0.7555 MB / 1.227 GB, free: 5.77 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.3797, allocations: 85.67 kB / 1.227 GB, free: 5.668 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001009/0.3807, allocations: 0.7517 MB / 1.228 GB, free: 4.906 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.446e-05/0.3808, allocations: 37.7 kB / 1.228 GB, free: 4.863 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.000347/0.3811, allocations: 440.5 kB / 1.228 GB, free: 4.43 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001786/0.3813, allocations: 205 kB / 1.228 GB, free: 4.227 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001937/0.3815, allocations: 110.2 kB / 1.228 GB, free: 4.113 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.00013/0.3817, allocations: 338 kB / 1.229 GB, free: 3.777 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004537/0.3821, allocations: 207.4 kB / 1.229 GB, free: 3.57 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006479/0.3828, allocations: 300.5 kB / 1.229 GB, free: 3.242 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.3838, allocations: 0.5114 MB / 1.23 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.3838, allocations: 0 / 1.23 GB, free: 2.699 MB / 0.9825 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001319/0.3852, allocations: 0.6503 MB / 1.23 GB, free: 2.043 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3852, allocations: 8 kB / 1.23 GB, free: 2.035 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.3852, allocations: 4 kB / 1.23 GB, free: 2.031 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.461e-05/0.3852, allocations: 4 kB / 1.23 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006353/0.3859, allocations: 143.8 kB / 1.231 GB, free: 1.887 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.22e-05/0.3859, allocations: 15.92 kB / 1.231 GB, free: 1.871 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000434/0.3863, allocations: 75.25 kB / 1.231 GB, free: 1.797 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.063e-05/0.3864, allocations: 20 kB / 1.231 GB, free: 1.777 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007083/0.3871, allocations: 362.2 kB / 1.231 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004572/0.3876, allocations: 292.4 kB / 1.231 GB, free: 1.105 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008392/0.3884, allocations: 491.7 kB / 1.232 GB, free: 0.5898 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.497e-06/0.3885, allocations: 4 kB / 1.232 GB, free: 0.5859 MB / 0.9825 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.001268/0.3897, allocations: 0.6267 MB / 1.232 GB, free: 15.96 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.3898, allocations: 8 kB / 1.232 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.687e-06/0.3898, allocations: 3.938 kB / 1.232 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.384e-06/0.3898, allocations: 4 kB / 1.232 GB, free: 15.94 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.3904, allocations: 143.8 kB / 1.233 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.524e-05/0.3904, allocations: 16.17 kB / 1.233 GB, free: 15.79 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004117/0.3908, allocations: 59.45 kB / 1.233 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.04e-05/0.3908, allocations: 20 kB / 1.233 GB, free: 15.71 MB / 0.9981 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.0002062/0.3911, allocations: 217.5 kB / 1.233 GB, free: 15.49 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002432/0.3913, allocations: 94.78 kB / 1.233 GB, free: 15.39 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002005/0.3915, allocations: 101.2 kB / 1.233 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.3915, allocations: 12 kB / 1.233 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.3915, allocations: 3.938 kB / 1.233 GB, free: 15.28 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.3916, allocations: 3.984 kB / 1.233 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002418/0.394, allocations: 1.427 MB / 1.234 GB, free: 13.79 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.394, allocations: 4 kB / 1.234 GB, free: 13.78 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005182/0.3945, allocations: 111.8 kB / 1.235 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.245e-06/0.3945, allocations: 0 / 1.235 GB, free: 13.67 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.768e-05/0.3946, allocations: 12 kB / 1.235 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.424e-06/0.3946, allocations: 4 kB / 1.235 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.3946, allocations: 0 / 1.235 GB, free: 13.66 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001708/0.3963, allocations: 0.975 MB / 1.236 GB, free: 12.66 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002677/0.3966, allocations: 219.8 kB / 1.236 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.927e-05/0.3967, allocations: 15.94 kB / 1.236 GB, free: 12.41 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004042/0.3971, allocations: 39.95 kB / 1.236 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.093e-05/0.3972, allocations: 32.52 kB / 1.236 GB, free: 12.34 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-05/0.3973, allocations: 19.98 kB / 1.236 GB, free: 12.32 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0006435/0.3979, allocations: 0.5146 MB / 1.236 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3979, allocations: 0 / 1.236 GB, free: 11.82 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0007792/0.3987, allocations: 275 kB / 1.237 GB, free: 11.55 MB / 0.9981 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.0001949/0.3989, allocations: 119.2 kB / 1.237 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.001604/0.4005, allocations: 0.7924 MB / 1.237 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.4005, allocations: 0 / 1.237 GB, free: 10.63 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005341/0.4011, allocations: 267.1 kB / 1.238 GB, free: 10.37 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001137/0.4022, allocations: 277.7 kB / 1.238 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002598/0.4048, allocations: 1.535 MB / 1.24 GB, free: 8.539 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005625/0.4054, allocations: 0.9976 MB / 1.24 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0004374/0.4059, allocations: 118.7 kB / 1.241 GB, free: 7.395 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001832/0.4061, allocations: 59.44 kB / 1.241 GB, free: 7.336 MB / 0.9981 GB Notification: Performance of SimCode: time 4.3e-07/0.4061, allocations: 4 kB / 1.241 GB, free: 7.332 MB / 0.9981 GB Notification: Performance of Templates: time 0.5902/0.9962, allocations: 9.366 MB / 1.25 GB, free: 35.25 MB / 0.9981 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