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.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.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.000778/0.000778, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008479/0.000848, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.473/1.473, allocations: 223.3 MB / 240 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 3.037/3.037, allocations: 462.6 MB / 0.736 GB, free: 15.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003801/0.0003802, allocations: 11.41 kB / 0.9022 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3977/0.3981, allocations: 159.6 MB / 1.058 GB, free: 5.281 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.004308/0.4024, allocations: 2.619 MB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.003982/0.4065, allocations: 1.664 MB / 1.062 GB, free: 0.9805 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006377/0.4071, allocations: 15.94 kB / 1.062 GB, free: 0.9648 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.0003319/0.4075, allocations: 114.8 kB / 1.062 GB, free: 0.8516 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002418/0.4077, allocations: 75.42 kB / 1.062 GB, free: 0.7773 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005837/0.4083, allocations: 234.6 kB / 1.063 GB, free: 0.5508 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0009802/0.4093, allocations: 0.9324 MB / 1.064 GB, free: 15.62 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009833/0.4103, allocations: 445.9 kB / 1.064 GB, free: 15.17 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002928/0.4106, allocations: 234.6 kB / 1.064 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003657/0.411, allocations: 306 kB / 1.065 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 7.473e-05/0.4111, allocations: 24 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.528e-05/0.4111, allocations: 28 kB / 1.065 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0001573/0.4113, allocations: 127.3 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001805/0.4115, allocations: 165.1 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0009228/0.4124, allocations: 0.9625 MB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.4124, allocations: 0 / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of FrontEnd: time 2.054e-06/0.4124, allocations: 0 / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.458e-05/0.4125, allocations: 0 / 1.066 GB, free: 13.33 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.002188/0.4147, allocations: 1.154 MB / 1.067 GB, free: 12.12 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.4147, allocations: 12.03 kB / 1.067 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000205/0.4149, allocations: 114.7 kB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007687/0.4157, allocations: 0.5392 MB / 1.068 GB, free: 11.42 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.23e-05/0.4158, allocations: 70 kB / 1.068 GB, free: 11.35 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000138/0.4159, allocations: 99.95 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001618/0.4176, allocations: 0.89 MB / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.947e-05/0.4176, allocations: 0 / 1.069 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.665e-05/0.4177, allocations: 39.98 kB / 1.069 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.466e-05/0.4177, allocations: 28 kB / 1.069 GB, free: 10.27 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.4189, allocations: 0.6441 MB / 1.069 GB, free: 9.629 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004189/0.4231, allocations: 2.853 MB / 1.072 GB, free: 6.688 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00165/0.4248, allocations: 1.331 MB / 1.073 GB, free: 5.203 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000607/0.4254, allocations: 414 kB / 1.074 GB, free: 4.801 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 4.913e-05/0.4255, allocations: 12.61 kB / 1.074 GB, free: 4.789 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006696/0.4262, allocations: 372.3 kB / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=74): time 2.305e-06/0.4262, allocations: 0 / 1.074 GB, free: 4.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=74): time 0.001572/0.4278, allocations: 0.8641 MB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001018/0.4279, allocations: 166.9 kB / 1.075 GB, free: 3.344 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006758/0.4285, allocations: 0.5538 MB / 1.076 GB, free: 2.781 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 5.979e-05/0.4286, allocations: 41.7 kB / 1.076 GB, free: 2.734 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003284/0.4289, allocations: 392.2 kB / 1.076 GB, free: 2.344 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002066/0.4292, allocations: 248.3 kB / 1.076 GB, free: 2.098 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.867e-05/0.4292, allocations: 16 kB / 1.076 GB, free: 2.082 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001989/0.4294, allocations: 382.8 kB / 1.077 GB, free: 1.699 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005083/0.4299, allocations: 249.9 kB / 1.077 GB, free: 1.457 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000614/0.4305, allocations: 381.1 kB / 1.077 GB, free: 1.047 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005525/0.4311, allocations: 287 kB / 1.078 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4311, allocations: 0 / 1.078 GB, free: 0.7656 MB / 0.8262 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.00128/0.4324, allocations: 0.7386 MB / 1.078 GB, free: 24 kB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.4325, allocations: 115.7 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.13e-05/0.4325, allocations: 4 kB / 1.078 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.4326, allocations: 4 kB / 1.078 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006008/0.4332, allocations: 159.8 kB / 1.079 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.4332, allocations: 4 kB / 1.079 GB, free: 15.72 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003618/0.4336, allocations: 111.3 kB / 1.079 GB, free: 15.61 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.186e-05/0.4336, allocations: 20 kB / 1.079 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 8.085e-06/0.4336, allocations: 7.984 kB / 1.079 GB, free: 15.59 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008117/0.4344, allocations: 0.5193 MB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.459e-06/0.4345, allocations: 4 kB / 1.079 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.302e-06/0.4345, allocations: 4 kB / 1.079 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004507/0.4349, allocations: 135.8 kB / 1.079 GB, free: 14.93 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.4349, allocations: 7.953 kB / 1.079 GB, free: 14.92 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002851/0.4352, allocations: 95.34 kB / 1.079 GB, free: 14.83 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.858e-05/0.4353, allocations: 16 kB / 1.079 GB, free: 14.81 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 ($whenCondition1,limPIDInp.trigger,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003706/0.4357, allocations: 296.9 kB / 1.08 GB, free: 14.51 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.084e-05/0.4357, allocations: 71.16 kB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.437, allocations: 0.6846 MB / 1.08 GB, free: 13.75 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.201e-05/0.437, allocations: 15.97 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.863e-06/0.437, allocations: 3.953 kB / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.437, allocations: 0 / 1.08 GB, free: 13.73 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002509/0.4395, allocations: 1.723 MB / 1.082 GB, free: 11.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.4396, allocations: 4 kB / 1.082 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005504/0.4401, allocations: 152 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.043e-06/0.4401, allocations: 4 kB / 1.082 GB, free: 11.77 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.727e-05/0.4402, allocations: 12 kB / 1.082 GB, free: 11.76 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.4402, allocations: 4 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.4402, allocations: 4 kB / 1.082 GB, free: 11.75 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001672/0.4419, allocations: 1.112 MB / 1.083 GB, free: 10.6 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001443/0.442, allocations: 156.1 kB / 1.084 GB, free: 10.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.329e-05/0.4421, allocations: 19.92 kB / 1.084 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003177/0.4424, allocations: 59.97 kB / 1.084 GB, free: 10.35 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.396e-05/0.4425, allocations: 40.59 kB / 1.084 GB, free: 10.31 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.235e-05/0.4426, allocations: 31.88 kB / 1.084 GB, free: 10.28 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0004716/0.4431, allocations: 394.8 kB / 1.084 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.5e-07/0.4431, allocations: 0 / 1.084 GB, free: 9.898 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0007812/0.4439, allocations: 314.3 kB / 1.084 GB, free: 9.59 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002269/0.4441, allocations: 133.3 kB / 1.085 GB, free: 9.453 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00167/0.4458, allocations: 0.899 MB / 1.085 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.4458, allocations: 0 / 1.085 GB, free: 8.559 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0005786/0.4464, allocations: 335.5 kB / 1.086 GB, free: 8.227 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007368/0.4471, allocations: 143.9 kB / 1.086 GB, free: 8.086 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002567/0.4497, allocations: 1.841 MB / 1.088 GB, free: 6.199 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.4502, allocations: 0.9781 MB / 1.089 GB, free: 5.195 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0003264/0.4505, allocations: 85.17 kB / 1.089 GB, free: 5.109 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001567/0.4507, allocations: 59.42 kB / 1.089 GB, free: 5.051 MB / 0.8419 GB Notification: Performance of SimCode: time 4.71e-07/0.4507, allocations: 4 kB / 1.089 GB, free: 5.047 MB / 0.8419 GB Notification: Performance of Templates: time 0.01333/0.4641, allocations: 6.768 MB / 1.095 GB, free: 14.34 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