Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.001084/0.001084, allocations: 91.77 kB / 16.02 MB, free: 80 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.001612/0.001612, allocations: 176.2 kB / 16.92 MB, free: 6.652 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.379/1.379, allocations: 223.3 MB / 241 MB, free: 5.273 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.635/2.635, allocations: 437.8 MB / 0.7128 GB, free: 6.926 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003926/0.0003927, allocations: 12 kB / 0.8735 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6422/0.6426, allocations: 153.8 MB / 1.024 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.003392/0.6461, allocations: 2.848 MB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002928/0.649, allocations: 1.684 MB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005307/0.6496, allocations: 19.94 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0003917/0.65, allocations: 114.9 kB / 1.028 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002967/0.6503, allocations: 87.36 kB / 1.028 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006334/0.6509, allocations: 299.7 kB / 1.029 GB, free: 10.74 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008473/0.6518, allocations: 0.9829 MB / 1.03 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008301/0.6526, allocations: 0.5998 MB / 1.03 GB, free: 9.137 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002462/0.6529, allocations: 254.3 kB / 1.03 GB, free: 8.887 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002925/0.6532, allocations: 305.7 kB / 1.031 GB, free: 8.586 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.734e-05/0.6532, allocations: 28 kB / 1.031 GB, free: 8.559 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.178e-05/0.6533, allocations: 24 kB / 1.031 GB, free: 8.535 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001148/0.6534, allocations: 143.2 kB / 1.031 GB, free: 8.395 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002581/0.6537, allocations: 375 kB / 1.031 GB, free: 8.02 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007791/0.6545, allocations: 0.9564 MB / 1.032 GB, free: 7.062 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.6545, allocations: 4 kB / 1.032 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.784e-06/0.6545, allocations: 0 / 1.032 GB, free: 7.059 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.033e-05/0.6545, allocations: 0 / 1.032 GB, free: 7.059 MB / 0.7794 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.001935/0.6565, allocations: 1.142 MB / 1.033 GB, free: 5.859 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.939e-05/0.6565, allocations: 15.92 kB / 1.033 GB, free: 5.844 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001703/0.6567, allocations: 123.5 kB / 1.033 GB, free: 5.723 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007088/0.6574, allocations: 0.5442 MB / 1.034 GB, free: 5.141 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.875e-05/0.6575, allocations: 70.38 kB / 1.034 GB, free: 5.07 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001181/0.6576, allocations: 100.4 kB / 1.034 GB, free: 4.973 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001516/0.6591, allocations: 0.8984 MB / 1.035 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.232e-05/0.6592, allocations: 192 / 1.035 GB, free: 4.055 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.666e-05/0.6592, allocations: 43.92 kB / 1.035 GB, free: 4.012 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.018e-05/0.6593, allocations: 24 kB / 1.035 GB, free: 3.988 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001316/0.6606, allocations: 0.652 MB / 1.036 GB, free: 3.336 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004152/0.6648, allocations: 2.864 MB / 1.039 GB, free: 404 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.6664, allocations: 1.348 MB / 1.04 GB, free: 14.89 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006543/0.667, allocations: 406 kB / 1.04 GB, free: 14.5 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.013e-05/0.6671, allocations: 16.75 kB / 1.04 GB, free: 14.48 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007126/0.6678, allocations: 368.3 kB / 1.041 GB, free: 14.11 MB / 0.795 GB Notification: Performance of pre-optimization done (n=74): time 2.816e-06/0.6678, allocations: 0 / 1.041 GB, free: 14.11 MB / 0.795 GB Notification: Performance of matching and sorting (n=74): time 0.001785/0.6696, allocations: 0.8718 MB / 1.041 GB, free: 13.23 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001137/0.6697, allocations: 162.9 kB / 1.042 GB, free: 13.04 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007708/0.6705, allocations: 0.5654 MB / 1.042 GB, free: 12.46 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.949e-05/0.6706, allocations: 41.7 kB / 1.042 GB, free: 12.41 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003106/0.6709, allocations: 396.3 kB / 1.043 GB, free: 12.02 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.6711, allocations: 248.2 kB / 1.043 GB, free: 11.77 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.535e-05/0.6712, allocations: 77.61 kB / 1.043 GB, free: 11.69 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.6714, allocations: 378.8 kB / 1.043 GB, free: 11.31 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005471/0.6719, allocations: 257.9 kB / 1.043 GB, free: 11.06 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006235/0.6725, allocations: 377.1 kB / 1.044 GB, free: 10.65 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001068/0.6736, allocations: 0.5682 MB / 1.044 GB, free: 10.07 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.6736, allocations: 4 kB / 1.044 GB, free: 10.07 MB / 0.795 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00139/0.675, allocations: 0.7426 MB / 1.045 GB, free: 9.32 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.931e-05/0.6751, allocations: 115.7 kB / 1.045 GB, free: 9.195 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.6751, allocations: 7.938 kB / 1.045 GB, free: 9.188 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.776e-05/0.6752, allocations: 4 kB / 1.045 GB, free: 9.184 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006075/0.6758, allocations: 159.8 kB / 1.045 GB, free: 9.027 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.146e-05/0.6758, allocations: 8 kB / 1.045 GB, free: 9.02 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004334/0.6762, allocations: 107.3 kB / 1.046 GB, free: 8.914 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.18e-05/0.6763, allocations: 27.98 kB / 1.046 GB, free: 8.887 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.703e-06/0.6763, allocations: 4 kB / 1.046 GB, free: 8.883 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008393/0.6771, allocations: 0.5232 MB / 1.046 GB, free: 8.355 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.6772, allocations: 3.984 kB / 1.046 GB, free: 8.352 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.16e-06/0.6772, allocations: 4 kB / 1.046 GB, free: 8.348 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004762/0.6777, allocations: 131.8 kB / 1.046 GB, free: 8.219 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.6777, allocations: 4 kB / 1.046 GB, free: 8.215 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/0.678, allocations: 95.34 kB / 1.046 GB, free: 8.121 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.318e-05/0.6781, allocations: 23.98 kB / 1.046 GB, free: 8.098 MB / 0.795 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.0003603/0.6784, allocations: 297.5 kB / 1.047 GB, free: 7.797 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.997e-05/0.6785, allocations: 67.16 kB / 1.047 GB, free: 7.73 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001272/0.6798, allocations: 0.6846 MB / 1.047 GB, free: 7.035 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.026e-06/0.6798, allocations: 11.94 kB / 1.047 GB, free: 7.023 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.6798, allocations: 0 / 1.047 GB, free: 7.023 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.6798, allocations: 3.984 kB / 1.047 GB, free: 7.02 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002582/0.6824, allocations: 1.735 MB / 1.049 GB, free: 5.207 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.586e-06/0.6824, allocations: 0 / 1.049 GB, free: 5.207 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005736/0.683, allocations: 152 kB / 1.049 GB, free: 5.059 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.6e-06/0.683, allocations: 4 kB / 1.049 GB, free: 5.055 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/0.6831, allocations: 15.98 kB / 1.049 GB, free: 5.039 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.862e-06/0.6831, allocations: 8 kB / 1.049 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.6831, allocations: 4 kB / 1.049 GB, free: 5.027 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001746/0.6849, allocations: 1.116 MB / 1.05 GB, free: 3.879 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001223/0.685, allocations: 160 kB / 1.05 GB, free: 3.703 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.041e-05/0.6851, allocations: 20 kB / 1.05 GB, free: 3.684 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003668/0.6854, allocations: 55.95 kB / 1.051 GB, free: 3.629 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.269e-05/0.6855, allocations: 52.44 kB / 1.051 GB, free: 3.578 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.58e-05/0.6856, allocations: 20.19 kB / 1.051 GB, free: 3.559 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004747/0.6861, allocations: 398.8 kB / 1.051 GB, free: 3.172 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6861, allocations: 3.938 kB / 1.051 GB, free: 3.168 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.000685/0.6868, allocations: 306.4 kB / 1.051 GB, free: 2.867 MB / 0.795 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.0001798/0.6869, allocations: 132.5 kB / 1.051 GB, free: 2.73 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001652/0.6886, allocations: 0.9146 MB / 1.052 GB, free: 1.816 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 6.653e-06/0.6886, allocations: 4 kB / 1.052 GB, free: 1.812 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.000546/0.6892, allocations: 327.5 kB / 1.053 GB, free: 1.492 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009537/0.6901, allocations: 139.8 kB / 1.053 GB, free: 1.355 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002603/0.6928, allocations: 1.988 MB / 1.055 GB, free: 15.31 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005267/0.6933, allocations: 0.9742 MB / 1.056 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/0.6935, allocations: 59.42 kB / 1.056 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of SimCode: time 4.41e-07/0.6935, allocations: 3.938 kB / 1.056 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of Templates: time 0.01241/0.7059, allocations: 8.958 MB / 1.064 GB, free: 5.281 MB / 0.8106 GB make -j1 -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.makefile (rm -f Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; mkfifo Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe ; head -c 1048576 < Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe >> ../files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.sim & ./Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Controls_OBC_CDL_Reals_Validation_PIDWithReset.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches