Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.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.OBC.CDL.Reals.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") translateModel(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|limPIDPar.u_s|limPIDPar.u_m|limPIDPar.y|limPIDInp.u_s|limPIDInp.u_m|limPIDInp.y|limPIPar.u_s|limPIPar.u_m|limPIPar.y|limPIInp.u_s|limPIInp.u_m|limPIInp.y",fileNamePrefix="Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009357/0.0009358, allocations: 91.3 kB / 15.36 MB, free: 0.7344 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.008742/0.008742, allocations: 171.9 kB / 16.26 MB, free: 6.68 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.614/1.614, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.983/2.983, allocations: 462.7 MB / 0.7364 GB, free: 296 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003711/0.000371, allocations: 12.28 kB / 0.9028 GB, free: 36.66 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3294/0.3298, allocations: 159.6 MB / 1.059 GB, free: 5.445 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.003397/0.3332, allocations: 2.845 MB / 1.061 GB, free: 2.594 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.002298/0.3355, allocations: 1.676 MB / 1.063 GB, free: 0.9023 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003303/0.3359, allocations: 19.94 kB / 1.063 GB, free: 0.8828 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003006/0.3362, allocations: 114.9 kB / 1.063 GB, free: 0.7695 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002677/0.3364, allocations: 79.38 kB / 1.063 GB, free: 0.6914 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005809/0.337, allocations: 311.7 kB / 1.064 GB, free: 396 kB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0008266/0.3379, allocations: 0.983 MB / 1.065 GB, free: 15.4 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008155/0.3387, allocations: 0.592 MB / 1.065 GB, free: 14.79 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.339, allocations: 258.3 kB / 1.065 GB, free: 14.54 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.3393, allocations: 309.7 kB / 1.066 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.054e-05/0.3393, allocations: 28 kB / 1.066 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 5.325e-05/0.3394, allocations: 24 kB / 1.066 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.3395, allocations: 135.2 kB / 1.066 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002805/0.3398, allocations: 379 kB / 1.066 GB, free: 13.67 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009123/0.3407, allocations: 1.152 MB / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3407, allocations: 0 / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.793e-06/0.3408, allocations: 0 / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.091e-05/0.3408, allocations: 0 / 1.067 GB, free: 12.52 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 229 * Number of variables: 229 Notification: Performance of Generate backend data structure: time 0.001951/0.3427, allocations: 1.15 MB / 1.068 GB, free: 11.31 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.3428, allocations: 8.031 kB / 1.068 GB, free: 11.3 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001586/0.3429, allocations: 115.6 kB / 1.069 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006837/0.3436, allocations: 0.5519 MB / 1.069 GB, free: 10.6 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.101e-05/0.3437, allocations: 74.38 kB / 1.069 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.3438, allocations: 100.3 kB / 1.069 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001483/0.3453, allocations: 0.8906 MB / 1.07 GB, free: 9.516 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/0.3454, allocations: 4.172 kB / 1.07 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.936e-05/0.3454, allocations: 43.94 kB / 1.07 GB, free: 9.469 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.159e-05/0.3455, allocations: 24 kB / 1.07 GB, free: 9.445 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001266/0.3467, allocations: 0.6558 MB / 1.071 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00401/0.3508, allocations: 2.857 MB / 1.074 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001601/0.3524, allocations: 1.344 MB / 1.075 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006604/0.353, allocations: 418 kB / 1.075 GB, free: 3.945 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.178e-05/0.3531, allocations: 12.66 kB / 1.075 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006974/0.3538, allocations: 364.4 kB / 1.076 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=74): time 2.655e-06/0.3538, allocations: 0 / 1.076 GB, free: 3.566 MB / 0.8262 GB Notification: Performance of matching and sorting (n=74): time 0.001659/0.3555, allocations: 0.868 MB / 1.077 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.145e-05/0.3556, allocations: 162.9 kB / 1.077 GB, free: 2.5 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006589/0.3562, allocations: 0.5654 MB / 1.077 GB, free: 1.926 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.883e-05/0.3563, allocations: 37.7 kB / 1.077 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002928/0.3566, allocations: 404.2 kB / 1.078 GB, free: 1.48 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001853/0.3568, allocations: 244.3 kB / 1.078 GB, free: 1.238 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.982e-05/0.3569, allocations: 73.67 kB / 1.078 GB, free: 1.16 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001835/0.3571, allocations: 378.8 kB / 1.078 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005317/0.3576, allocations: 253.9 kB / 1.079 GB, free: 0.5312 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006211/0.3583, allocations: 385.1 kB / 1.079 GB, free: 124 kB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.3593, allocations: 0.5644 MB / 1.08 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.3593, allocations: 4 kB / 1.08 GB, free: 15.54 MB / 0.8419 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001392/0.3607, allocations: 0.7387 MB / 1.08 GB, free: 14.8 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.095e-05/0.3608, allocations: 121.7 kB / 1.08 GB, free: 14.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.3608, allocations: 3.938 kB / 1.08 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.3609, allocations: 7.984 kB / 1.08 GB, free: 14.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005837/0.3614, allocations: 163.8 kB / 1.081 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.3615, allocations: 4 kB / 1.081 GB, free: 14.49 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.3619, allocations: 123.2 kB / 1.081 GB, free: 14.37 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.772e-05/0.3619, allocations: 20 kB / 1.081 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 6.993e-06/0.3619, allocations: 4 kB / 1.081 GB, free: 14.35 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000848/0.3628, allocations: 0.5232 MB / 1.081 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.3628, allocations: 4.109 kB / 1.081 GB, free: 13.82 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.19e-06/0.3628, allocations: 7.938 kB / 1.081 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004571/0.3633, allocations: 131.8 kB / 1.081 GB, free: 13.68 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.3633, allocations: 8.094 kB / 1.081 GB, free: 13.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003117/0.3636, allocations: 87.34 kB / 1.081 GB, free: 13.59 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.872e-05/0.3636, allocations: 16 kB / 1.081 GB, free: 13.57 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 (limPIDInp.trigger,$whenCondition1,con.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 87 * 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.0003381/0.364, allocations: 302.4 kB / 1.082 GB, free: 13.27 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.481e-05/0.3641, allocations: 75.16 kB / 1.082 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001232/0.3653, allocations: 0.6768 MB / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.586e-06/0.3653, allocations: 8 kB / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3653, allocations: 0 / 1.082 GB, free: 12.5 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.531e-05/0.3654, allocations: 7.984 kB / 1.082 GB, free: 12.49 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002473/0.3678, allocations: 1.739 MB / 1.084 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.3679, allocations: 4.188 kB / 1.084 GB, free: 10.67 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005676/0.3684, allocations: 147.8 kB / 1.084 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.414e-06/0.3685, allocations: 4 kB / 1.084 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.844e-05/0.3685, allocations: 23.92 kB / 1.084 GB, free: 10.5 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.911e-06/0.3685, allocations: 4 kB / 1.084 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/0.3685, allocations: 4 kB / 1.084 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001808/0.3703, allocations: 1.116 MB / 1.085 GB, free: 9.34 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001607/0.3705, allocations: 160 kB / 1.086 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.16e-05/0.3706, allocations: 16 kB / 1.086 GB, free: 9.148 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003561/0.3709, allocations: 59.95 kB / 1.086 GB, free: 9.09 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001187/0.3711, allocations: 48.44 kB / 1.086 GB, free: 9.039 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.3711, allocations: 20 kB / 1.086 GB, free: 9.02 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0005376/0.3717, allocations: 402.9 kB / 1.086 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.81e-07/0.3717, allocations: 0 / 1.086 GB, free: 8.629 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0008364/0.3725, allocations: 310.4 kB / 1.086 GB, free: 8.324 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 10 (limPIDPar.I.y,limPIDPar.D.x,intWitRes1.y,limPIDInp.I.y,limPIDInp.D.x,intWitRes2.y,limPIPar.I.y,intWitRes3.y,limPIInp.I.y,intWitRes4.y) * Number of discrete variables: 2 (limPIDInp.trigger,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (74): * Single equations (assignments): 74 * 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 Backend phase and start with SimCode phase: time 0.0002857/0.3728, allocations: 131.1 kB / 1.087 GB, free: 8.184 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.001822/0.3746, allocations: 0.9107 MB / 1.087 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.3746, allocations: 256 / 1.087 GB, free: 7.277 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0006012/0.3753, allocations: 335.3 kB / 1.088 GB, free: 6.949 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009601/0.3762, allocations: 142.4 kB / 1.088 GB, free: 6.816 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002787/0.379, allocations: 1.955 MB / 1.09 GB, free: 4.809 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005591/0.3796, allocations: 0.9742 MB / 1.091 GB, free: 3.805 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003182/0.3799, allocations: 89.25 kB / 1.091 GB, free: 3.719 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001728/0.3801, allocations: 59.42 kB / 1.091 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of SimCode: time 7.42e-07/0.3801, allocations: 0 / 1.091 GB, free: 3.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.0132/0.3933, allocations: 7.033 MB / 1.098 GB, free: 12.68 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.makefile (rm -f Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; mkfifo Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe >> ../files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.sim & ./Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches