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.00101/0.00101, 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.001392/0.001392, 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.49/1.49, allocations: 223.3 MB / 240 MB, free: 5.41 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.769/2.769, allocations: 437.7 MB / 0.7117 GB, free: 7.137 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003824/0.0003826, allocations: 12 kB / 0.8722 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9402/0.9406, allocations: 153.8 MB / 1.022 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Controls.OBC.CDL.Reals.Validation.PIDWithReset): time 0.003176/0.9438, allocations: 2.622 MB / 1.025 GB, free: 13.46 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.002363/0.9462, allocations: 1.664 MB / 1.027 GB, free: 11.78 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003099/0.9465, allocations: 16 kB / 1.027 GB, free: 11.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0002893/0.9468, allocations: 118.8 kB / 1.027 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0002268/0.9471, allocations: 75.44 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005192/0.9476, allocations: 227.7 kB / 1.027 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0008502/0.9484, allocations: 0.9324 MB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0006474/0.9491, allocations: 453.8 kB / 1.028 GB, free: 9.953 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002508/0.9494, allocations: 242.5 kB / 1.029 GB, free: 9.715 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.9497, allocations: 302 kB / 1.029 GB, free: 9.418 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 6.3e-05/0.9497, allocations: 24 kB / 1.029 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.245e-05/0.9498, allocations: 28 kB / 1.029 GB, free: 9.367 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001142/0.9499, allocations: 127.3 kB / 1.029 GB, free: 9.242 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001327/0.95, allocations: 165.1 kB / 1.029 GB, free: 9.074 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0007397/0.9508, allocations: 0.9603 MB / 1.03 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.9508, allocations: 0 / 1.03 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.653e-06/0.9508, allocations: 0 / 1.03 GB, free: 8.113 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 9.057e-06/0.9508, allocations: 0 / 1.03 GB, free: 8.113 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.001757/0.9526, allocations: 1.154 MB / 1.031 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.9526, allocations: 12.56 kB / 1.031 GB, free: 6.898 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001558/0.9528, allocations: 114.6 kB / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006661/0.9535, allocations: 0.5237 MB / 1.032 GB, free: 6.219 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.444e-05/0.9535, allocations: 74 kB / 1.032 GB, free: 6.148 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001142/0.9537, allocations: 99.98 kB / 1.032 GB, free: 6.051 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.9551, allocations: 0.89 MB / 1.033 GB, free: 5.137 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.9551, allocations: 4 kB / 1.033 GB, free: 5.133 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.779e-05/0.9552, allocations: 36 kB / 1.033 GB, free: 5.098 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.9552, allocations: 24 kB / 1.033 GB, free: 5.074 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001221/0.9564, allocations: 0.6402 MB / 1.034 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004207/0.9606, allocations: 2.865 MB / 1.036 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00144/0.9621, allocations: 1.337 MB / 1.038 GB, free: 0 / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006239/0.9627, allocations: 414 kB / 1.038 GB, free: 15.6 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 4.858e-05/0.9628, allocations: 8.656 kB / 1.038 GB, free: 15.59 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006948/0.9635, allocations: 376.2 kB / 1.039 GB, free: 15.21 MB / 0.795 GB Notification: Performance of pre-optimization done (n=74): time 2.104e-06/0.9635, allocations: 0 / 1.039 GB, free: 15.21 MB / 0.795 GB Notification: Performance of matching and sorting (n=74): time 0.001487/0.965, allocations: 0.8639 MB / 1.039 GB, free: 14.34 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.252e-05/0.9651, allocations: 162.9 kB / 1.039 GB, free: 14.14 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006231/0.9657, allocations: 0.5539 MB / 1.04 GB, free: 13.58 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.9658, allocations: 41.7 kB / 1.04 GB, free: 13.54 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000274/0.9661, allocations: 396.2 kB / 1.04 GB, free: 13.14 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.9662, allocations: 252.2 kB / 1.041 GB, free: 12.89 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.9663, allocations: 19.94 kB / 1.041 GB, free: 12.87 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001693/0.9665, allocations: 386.7 kB / 1.041 GB, free: 12.48 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004862/0.9669, allocations: 245.9 kB / 1.041 GB, free: 12.25 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005824/0.9675, allocations: 377.1 kB / 1.042 GB, free: 11.84 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005354/0.9681, allocations: 286.9 kB / 1.042 GB, free: 11.56 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.9681, allocations: 0 / 1.042 GB, free: 11.56 MB / 0.795 GB Notification: Performance of matching and sorting (n=87) (initialization): time 0.001247/0.9693, allocations: 0.7232 MB / 1.043 GB, free: 10.83 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 7.703e-05/0.9694, allocations: 119.7 kB / 1.043 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.133e-06/0.9694, allocations: 3.938 kB / 1.043 GB, free: 10.7 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.815e-05/0.9695, allocations: 7.984 kB / 1.043 GB, free: 10.69 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005568/0.97, allocations: 159.8 kB / 1.043 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.9701, allocations: 4 kB / 1.043 GB, free: 10.53 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003488/0.9704, allocations: 119.2 kB / 1.043 GB, free: 10.41 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.293e-05/0.9705, allocations: 28 kB / 1.043 GB, free: 10.38 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 6.562e-06/0.9705, allocations: 7.938 kB / 1.043 GB, free: 10.38 MB / 0.795 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008117/0.9713, allocations: 0.5154 MB / 1.044 GB, free: 9.859 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.856e-06/0.9713, allocations: 0 / 1.044 GB, free: 9.859 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.724e-06/0.9713, allocations: 4 kB / 1.044 GB, free: 9.855 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004537/0.9718, allocations: 131.8 kB / 1.044 GB, free: 9.727 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.231e-06/0.9718, allocations: 4 kB / 1.044 GB, free: 9.723 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002613/0.9721, allocations: 91.39 kB / 1.044 GB, free: 9.633 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.122e-05/0.9721, allocations: 20 kB / 1.044 GB, free: 9.613 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 ($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.0003222/0.9724, allocations: 300.9 kB / 1.044 GB, free: 9.309 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.16e-05/0.9725, allocations: 75.06 kB / 1.044 GB, free: 9.234 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001173/0.9737, allocations: 0.6769 MB / 1.045 GB, free: 8.551 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.046e-05/0.9737, allocations: 8 kB / 1.045 GB, free: 8.543 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.9737, allocations: 0 / 1.045 GB, free: 8.543 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.027e-06/0.9737, allocations: 7.938 kB / 1.045 GB, free: 8.535 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002401/0.9762, allocations: 1.723 MB / 1.047 GB, free: 6.734 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.919e-06/0.9762, allocations: 4 kB / 1.047 GB, free: 6.73 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005257/0.9767, allocations: 148 kB / 1.047 GB, free: 6.586 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.9767, allocations: 4 kB / 1.047 GB, free: 6.582 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.571e-05/0.9768, allocations: 19.98 kB / 1.047 GB, free: 6.562 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.9768, allocations: 4 kB / 1.047 GB, free: 6.559 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.9768, allocations: 4 kB / 1.047 GB, free: 6.555 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001609/0.9784, allocations: 1.108 MB / 1.048 GB, free: 5.414 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001287/0.9785, allocations: 160 kB / 1.048 GB, free: 5.238 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.732e-05/0.9786, allocations: 16 kB / 1.048 GB, free: 5.223 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003092/0.9789, allocations: 59.95 kB / 1.048 GB, free: 5.164 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.636e-05/0.979, allocations: 48.53 kB / 1.048 GB, free: 5.117 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.631e-05/0.979, allocations: 28 kB / 1.048 GB, free: 5.09 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0004363/0.9795, allocations: 391 kB / 1.048 GB, free: 4.711 MB / 0.795 GB Notification: Performance of sort global known variables: time 1e-07/0.9795, allocations: 0 / 1.048 GB, free: 4.711 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0006433/0.9801, allocations: 314.4 kB / 1.049 GB, free: 4.402 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 (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.0001973/0.9803, allocations: 135 kB / 1.049 GB, free: 4.258 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.001512/0.9819, allocations: 0.9029 MB / 1.05 GB, free: 3.352 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.9819, allocations: 0 / 1.05 GB, free: 3.352 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 0.0005047/0.9824, allocations: 331.5 kB / 1.05 GB, free: 3.031 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007053/0.9831, allocations: 144 kB / 1.05 GB, free: 2.891 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002225/0.9853, allocations: 1.853 MB / 1.052 GB, free: 0.9844 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.9858, allocations: 0.9781 MB / 1.053 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000297/0.9861, allocations: 81.2 kB / 1.053 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001549/0.9863, allocations: 55.42 kB / 1.053 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of SimCode: time 6.31e-07/0.9863, allocations: 0 / 1.053 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of Templates: time 0.01225/0.9986, allocations: 6.779 MB / 1.06 GB, free: 9.129 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/jenkins/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