Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008957/0.0008957, allocations: 97.8 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.006027/0.006028, allocations: 170.5 kB / 16.27 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.402/1.402, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.38/2.38, allocations: 390.9 MB / 0.6663 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003565/0.0003563, allocations: 8 kB / 0.816 GB, free: 13.24 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.68/0.6804, allocations: 142.4 MB / 0.955 GB, free: 7.738 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06657/0.747, allocations: 65.36 MB / 1.019 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.02518/0.7723, allocations: 16.66 MB / 1.035 GB, free: 13.09 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003699/0.776, allocations: 83.44 kB / 1.035 GB, free: 13.01 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.003392/0.7794, allocations: 0.9949 MB / 1.036 GB, free: 12.01 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.008773/0.7882, allocations: 2.449 MB / 1.039 GB, free: 9.551 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.006276/0.7945, allocations: 2.094 MB / 1.041 GB, free: 7.473 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.009499/0.804, allocations: 6.988 MB / 1.047 GB, free: 484 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00361/0.8077, allocations: 1.578 MB / 1.049 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004635/0.8123, allocations: 1.742 MB / 1.051 GB, free: 13.09 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003093/0.8154, allocations: 1.423 MB / 1.052 GB, free: 11.66 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.0005864/0.8161, allocations: 76 kB / 1.052 GB, free: 11.59 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004907/0.821, allocations: 1.82 MB / 1.054 GB, free: 9.766 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0009031/0.8219, allocations: 442 kB / 1.054 GB, free: 9.332 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.002113/0.824, allocations: 1.019 MB / 1.055 GB, free: 8.301 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.006321/0.8304, allocations: 3.469 MB / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.8304, allocations: 0 / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.114e-06/0.8304, allocations: 0 / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0001077/0.8305, allocations: 0 / 1.059 GB, free: 4.82 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: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.005105/0.8357, allocations: 2.29 MB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/0.8357, allocations: 8.031 kB / 1.061 GB, free: 2.449 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002329/0.838, allocations: 481.8 kB / 1.061 GB, free: 1.977 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004113/0.8422, allocations: 1.846 MB / 1.063 GB, free: 80 kB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004388/0.8426, allocations: 162.4 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002872/0.8429, allocations: 131.9 kB / 1.064 GB, free: 15.79 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003202/0.8462, allocations: 1.474 MB / 1.065 GB, free: 14.23 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.127e-05/0.8462, allocations: 7.984 kB / 1.065 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001442/0.8464, allocations: 52 kB / 1.065 GB, free: 14.17 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.94e-05/0.8464, allocations: 42.31 kB / 1.065 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002958/0.8494, allocations: 1.192 MB / 1.066 GB, free: 12.93 MB / 0.8262 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01207/0.8615, allocations: 7.416 MB / 1.073 GB, free: 4.938 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002496/0.864, allocations: 1.396 MB / 1.075 GB, free: 3.426 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001142/0.8652, allocations: 499.5 kB / 1.075 GB, free: 2.934 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00577/0.871, allocations: 2.701 MB / 1.078 GB, free: 0 / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00129/0.8723, allocations: 0.5181 MB / 1.078 GB, free: 15.46 MB / 0.8419 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007716/0.8731, allocations: 83.41 kB / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=64): time 4.388e-06/0.8731, allocations: 0 / 1.079 GB, free: 15.38 MB / 0.8419 GB Notification: Performance of matching and sorting (n=64): time 0.003709/0.8768, allocations: 1.323 MB / 1.08 GB, free: 14.03 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.727e-05/0.8769, allocations: 115.4 kB / 1.08 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002694/0.8797, allocations: 1.449 MB / 1.081 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.0001203/0.8798, allocations: 49.7 kB / 1.081 GB, free: 12.39 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009012/0.8807, allocations: 0.8957 MB / 1.082 GB, free: 11.48 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002692/0.881, allocations: 236.7 kB / 1.082 GB, free: 11.25 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001504/0.8811, allocations: 85.67 kB / 1.083 GB, free: 11.16 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001638/0.8813, allocations: 345.9 kB / 1.083 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001088/0.8824, allocations: 417.7 kB / 1.083 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001344/0.8838, allocations: 0.7624 MB / 1.084 GB, free: 9.484 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002426/0.8862, allocations: 1.163 MB / 1.085 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.8862, allocations: 8 kB / 1.085 GB, free: 8.172 MB / 0.8419 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.003324/0.8896, allocations: 1.348 MB / 1.086 GB, free: 6.809 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003851/0.89, allocations: 409.8 kB / 1.087 GB, free: 6.262 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.448e-05/0.89, allocations: 12 kB / 1.087 GB, free: 6.25 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.935e-05/0.89, allocations: 19.94 kB / 1.087 GB, free: 6.23 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.8911, allocations: 263.6 kB / 1.087 GB, free: 5.973 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.691e-05/0.8912, allocations: 27.86 kB / 1.087 GB, free: 5.945 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/0.8928, allocations: 141.9 kB / 1.087 GB, free: 5.805 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001183/0.8929, allocations: 56.06 kB / 1.087 GB, free: 5.75 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.147e-05/0.8929, allocations: 9.5 kB / 1.087 GB, free: 5.742 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002856/0.8958, allocations: 1.15 MB / 1.089 GB, free: 4.586 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.587e-05/0.8958, allocations: 12 kB / 1.089 GB, free: 4.574 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.898e-05/0.8959, allocations: 20.03 kB / 1.089 GB, free: 4.555 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001049/0.8969, allocations: 267.6 kB / 1.089 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.336e-05/0.897, allocations: 19.94 kB / 1.089 GB, free: 4.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001538/0.8985, allocations: 132.5 kB / 1.089 GB, free: 4.145 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001145/0.8986, allocations: 51.98 kB / 1.089 GB, free: 4.094 MB / 0.8419 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 120 * Array equations: 1 * Algorithm blocks: 1 * 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.0008781/0.8995, allocations: 496.6 kB / 1.089 GB, free: 3.598 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003593/0.8999, allocations: 165.9 kB / 1.09 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/0.9028, allocations: 1.143 MB / 1.091 GB, free: 2.277 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/0.9028, allocations: 8 kB / 1.091 GB, free: 2.27 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.12e-05/0.9028, allocations: 4 kB / 1.091 GB, free: 2.266 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002042/0.9049, allocations: 0.8627 MB / 1.092 GB, free: 1.391 MB / 0.8419 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006004/0.9109, allocations: 2.786 MB / 1.094 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.9109, allocations: 4 kB / 1.094 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008442/0.9118, allocations: 179.8 kB / 1.094 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000164/0.912, allocations: 24.84 kB / 1.095 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.912, allocations: 19.98 kB / 1.095 GB, free: 14.29 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/0.9131, allocations: 1.334 MB / 1.096 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.9132, allocations: 7.875 kB / 1.096 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003808/0.917, allocations: 1.686 MB / 1.097 GB, free: 11.09 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008504/0.9178, allocations: 366.6 kB / 1.098 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003566/0.9182, allocations: 15.94 kB / 1.098 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001254/0.9195, allocations: 127.8 kB / 1.098 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.9196, allocations: 60.48 kB / 1.098 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.522e-05/0.9197, allocations: 35.97 kB / 1.098 GB, free: 10.47 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001852/0.9216, allocations: 1.054 MB / 1.099 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.71e-07/0.9216, allocations: 0 / 1.099 GB, free: 9.395 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.003157/0.9247, allocations: 0.9432 MB / 1.1 GB, free: 8.449 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001412/0.9262, allocations: 0.5165 MB / 1.101 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003992/0.9302, allocations: 1.703 MB / 1.102 GB, free: 6.215 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 7.504e-06/0.9302, allocations: 4 kB / 1.102 GB, free: 6.211 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.001399/0.9316, allocations: 0.5919 MB / 1.103 GB, free: 5.605 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005117/0.9367, allocations: 0.8487 MB / 1.104 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007315/0.9441, allocations: 3.954 MB / 1.107 GB, free: 0.7539 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/0.9455, allocations: 1.397 MB / 1.109 GB, free: 15.32 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.00217/0.9477, allocations: 422.5 kB / 1.109 GB, free: 14.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004047/0.9481, allocations: 147.3 kB / 1.109 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of SimCode: time 1.182e-06/0.9482, allocations: 0 / 1.109 GB, free: 14.77 MB / 0.8731 GB Notification: Performance of Templates: time 0.05794/1.006, allocations: 32.89 MB / 1.141 GB, free: 14.31 MB / 0.9044 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches