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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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.001391/0.00139, allocations: 103.2 kB / 16.35 MB, free: 5.828 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.001386/0.001387, allocations: 193.2 kB / 17.29 MB, free: 5.484 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.435/1.435, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.56/2.56, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001366, allocations: 63.75 kB / 0.8773 GB, free: 11 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3484/0.3498, allocations: 153 MB / 1.027 GB, free: 2.082 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.Continuous.Validation.LimPIDReset): time 0.005975/0.3558, allocations: 4.351 MB / 1.031 GB, free: 13.71 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003514/0.3593, allocations: 1.585 MB / 1.032 GB, free: 12.11 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000682/0.36, allocations: 35.81 kB / 1.033 GB, free: 12.08 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0004848/0.3605, allocations: 166.2 kB / 1.033 GB, free: 11.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0007123/0.3613, allocations: 230.1 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.001491/0.3628, allocations: 0.6735 MB / 1.034 GB, free: 11.02 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.001271/0.3641, allocations: 1.222 MB / 1.035 GB, free: 9.801 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007619/0.3648, allocations: 0.4923 MB / 1.035 GB, free: 9.285 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005877/0.3654, allocations: 461.9 kB / 1.036 GB, free: 8.832 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004639/0.3659, allocations: 465.4 kB / 1.036 GB, free: 8.375 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0001313/0.3661, allocations: 104 kB / 1.036 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001325/0.3662, allocations: 100 kB / 1.036 GB, free: 8.176 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002281/0.3664, allocations: 235 kB / 1.037 GB, free: 7.945 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0004297/0.3669, allocations: 493 kB / 1.037 GB, free: 7.461 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.001229/0.3681, allocations: 1.156 MB / 1.038 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.3681, allocations: 0 / 1.038 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.074e-06/0.3681, allocations: 0 / 1.038 GB, free: 6.301 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.572e-05/0.3681, allocations: 0 / 1.038 GB, free: 6.301 MB / 0.8106 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.002313/0.3705, allocations: 1.392 MB / 1.039 GB, free: 4.855 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.99e-05/0.3705, allocations: 8.031 kB / 1.04 GB, free: 4.848 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001835/0.3707, allocations: 127.4 kB / 1.04 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/0.372, allocations: 0.7664 MB / 1.04 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.3721, allocations: 76.27 kB / 1.04 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.831e-05/0.3722, allocations: 76.36 kB / 1.041 GB, free: 3.758 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001277/0.3735, allocations: 0.7329 MB / 1.041 GB, free: 2.992 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.879e-05/0.3736, allocations: 3.984 kB / 1.041 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.057e-05/0.3736, allocations: 32 kB / 1.041 GB, free: 2.957 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.643e-05/0.3737, allocations: 16 kB / 1.041 GB, free: 2.941 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001064/0.3747, allocations: 0.5165 MB / 1.042 GB, free: 2.422 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003331/0.3781, allocations: 2.247 MB / 1.044 GB, free: 104 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001347/0.3794, allocations: 0.6239 MB / 1.045 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004944/0.3799, allocations: 278.3 kB / 1.045 GB, free: 15.2 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.6e-05/0.38, allocations: 8.562 kB / 1.045 GB, free: 15.19 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006223/0.3806, allocations: 319.1 kB / 1.045 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=60): time 2.265e-06/0.3806, allocations: 0 / 1.045 GB, free: 14.87 MB / 0.8262 GB Notification: Performance of matching and sorting (n=60): time 0.001571/0.3822, allocations: 0.7556 MB / 1.046 GB, free: 14.11 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.939e-05/0.3823, allocations: 81.67 kB / 1.046 GB, free: 14.01 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008815/0.3832, allocations: 0.7633 MB / 1.047 GB, free: 13.23 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.806e-05/0.3832, allocations: 37.7 kB / 1.047 GB, free: 13.19 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000337/0.3836, allocations: 440.5 kB / 1.047 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001522/0.3837, allocations: 201 kB / 1.047 GB, free: 12.56 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.3839, allocations: 110.3 kB / 1.047 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.3841, allocations: 330 kB / 1.048 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004423/0.3845, allocations: 207.4 kB / 1.048 GB, free: 11.91 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005208/0.385, allocations: 312.4 kB / 1.048 GB, free: 11.57 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000918/0.386, allocations: 0.5036 MB / 1.049 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/0.386, allocations: 0 / 1.049 GB, free: 11.04 MB / 0.8262 GB Notification: Performance of matching and sorting (n=76) (initialization): time 0.001195/0.3872, allocations: 0.6503 MB / 1.049 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.3872, allocations: 12 kB / 1.049 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.3872, allocations: 0 / 1.049 GB, free: 10.37 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.175e-05/0.3872, allocations: 8 kB / 1.049 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000657/0.3879, allocations: 143.8 kB / 1.05 GB, free: 10.22 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.582e-05/0.3879, allocations: 11.88 kB / 1.05 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004124/0.3884, allocations: 71.34 kB / 1.05 GB, free: 10.14 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.078e-05/0.3884, allocations: 20 kB / 1.05 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006082/0.389, allocations: 353.4 kB / 1.05 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004501/0.3895, allocations: 296.5 kB / 1.05 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008262/0.3903, allocations: 495.7 kB / 1.051 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 3.917e-06/0.3903, allocations: 0 / 1.051 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of matching and sorting (n=76) (initialization_lambda0): time 0.001079/0.3914, allocations: 0.646 MB / 1.051 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.3914, allocations: 4 kB / 1.051 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.3914, allocations: 4 kB / 1.051 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.653e-06/0.3915, allocations: 4 kB / 1.051 GB, free: 8.266 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005847/0.392, allocations: 139.8 kB / 1.052 GB, free: 8.129 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.384e-06/0.3921, allocations: 4.25 kB / 1.052 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003748/0.3924, allocations: 67.44 kB / 1.052 GB, free: 8.059 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.643e-05/0.3925, allocations: 20 kB / 1.052 GB, free: 8.039 MB / 0.8262 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.0001876/0.3927, allocations: 218 kB / 1.052 GB, free: 7.82 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001159/0.3928, allocations: 94.88 kB / 1.052 GB, free: 7.727 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002025/0.393, allocations: 109.2 kB / 1.052 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.251e-06/0.393, allocations: 4 kB / 1.052 GB, free: 7.613 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.308e-06/0.393, allocations: 11.88 kB / 1.052 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.393, allocations: 0 / 1.052 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00211/0.3952, allocations: 1.443 MB / 1.053 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.404e-06/0.3952, allocations: 0 / 1.053 GB, free: 6.102 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000537/0.3957, allocations: 107.8 kB / 1.054 GB, free: 5.996 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.3957, allocations: 4 kB / 1.054 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.004e-05/0.3958, allocations: 12 kB / 1.054 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.3958, allocations: 0 / 1.054 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.3958, allocations: 0 / 1.054 GB, free: 5.98 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001649/0.3975, allocations: 0.9673 MB / 1.055 GB, free: 4.992 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002972/0.3978, allocations: 223.7 kB / 1.055 GB, free: 4.754 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.436e-05/0.3979, allocations: 8 kB / 1.055 GB, free: 4.746 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004081/0.3983, allocations: 35.97 kB / 1.055 GB, free: 4.711 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.353e-05/0.3984, allocations: 36.5 kB / 1.055 GB, free: 4.676 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.3984, allocations: 20 kB / 1.055 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000653/0.3991, allocations: 0.5146 MB / 1.055 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3991, allocations: 0 / 1.055 GB, free: 4.148 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0007357/0.3998, allocations: 279 kB / 1.056 GB, free: 3.875 MB / 0.8262 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.0001606/0.4, allocations: 115.1 kB / 1.056 GB, free: 3.754 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.001626/0.4016, allocations: 0.7924 MB / 1.056 GB, free: 2.965 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.4016, allocations: 7.938 kB / 1.056 GB, free: 2.957 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0005109/0.4022, allocations: 267.1 kB / 1.057 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.4033, allocations: 274.7 kB / 1.057 GB, free: 2.438 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002602/0.4059, allocations: 1.543 MB / 1.059 GB, free: 0.8594 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005181/0.4064, allocations: 0.9938 MB / 1.059 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0004422/0.4069, allocations: 114.6 kB / 1.06 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000173/0.407, allocations: 59.42 kB / 1.06 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of SimCode: time 8.22e-07/0.4071, allocations: 0 / 1.06 GB, free: 15.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.01694/0.424, allocations: 9.263 MB / 1.069 GB, free: 6.504 MB / 0.8419 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 -s cvode -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