Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSet.y|TOut.y|TVol.T|THeaOut.T|hea.TSet|hea.Q_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 92.39 kB / 16.02 MB, free: 76 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.001341/0.001341, allocations: 184.2 kB / 16.92 MB, free: 6.926 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.393/1.393, allocations: 223.3 MB / 241 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.402/2.402, allocations: 390.9 MB / 0.667 GB, free: 2.422 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003554/0.0003555, allocations: 8 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7517/0.7521, allocations: 142.4 MB / 0.9557 GB, free: 7.656 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05159/0.8037, allocations: 51.92 MB / 1.006 GB, free: 11.32 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02358/0.8273, allocations: 15.11 MB / 1.021 GB, free: 12.17 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003591/0.831, allocations: 75.5 kB / 1.021 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.003529/0.8345, allocations: 0.9565 MB / 1.022 GB, free: 11.14 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.007243/0.8418, allocations: 2.146 MB / 1.024 GB, free: 8.988 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.00598/0.8478, allocations: 2.019 MB / 1.026 GB, free: 6.984 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.008216/0.856, allocations: 6.007 MB / 1.032 GB, free: 0.9609 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002918/0.8589, allocations: 1.35 MB / 1.033 GB, free: 15.57 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004128/0.8631, allocations: 1.614 MB / 1.035 GB, free: 13.96 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002565/0.8657, allocations: 1.31 MB / 1.036 GB, free: 12.64 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.0005104/0.8662, allocations: 64 kB / 1.036 GB, free: 12.58 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004238/0.8705, allocations: 1.711 MB / 1.038 GB, free: 10.86 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.0008204/0.8713, allocations: 422.1 kB / 1.038 GB, free: 10.45 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.001909/0.8733, allocations: 0.9338 MB / 1.039 GB, free: 9.504 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003862/0.8771, allocations: 2.42 MB / 1.042 GB, free: 7.078 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 8.887e-06/0.8772, allocations: 0 / 1.042 GB, free: 7.078 MB / 0.795 GB Notification: Performance of FrontEnd: time 4.819e-06/0.8772, allocations: 3.938 kB / 1.042 GB, free: 7.074 MB / 0.795 GB Notification: Performance of Transformations before backend: time 0.0001087/0.8773, allocations: 11.88 kB / 1.042 GB, free: 7.062 MB / 0.795 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.005049/0.8824, allocations: 2.171 MB / 1.044 GB, free: 4.824 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.8824, allocations: 8.031 kB / 1.044 GB, free: 4.816 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00299/0.8854, allocations: 0.5638 MB / 1.044 GB, free: 4.25 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004141/0.8896, allocations: 1.69 MB / 1.046 GB, free: 2.512 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004295/0.89, allocations: 158.4 kB / 1.046 GB, free: 2.355 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002966/0.8903, allocations: 116 kB / 1.046 GB, free: 2.242 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003206/0.8936, allocations: 1.396 MB / 1.048 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.311e-05/0.8936, allocations: 0 / 1.048 GB, free: 0.7539 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000146/0.8938, allocations: 48 kB / 1.048 GB, free: 0.707 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.531e-05/0.8938, allocations: 49.95 kB / 1.048 GB, free: 0.6562 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003107/0.897, allocations: 1.171 MB / 1.049 GB, free: 15.47 MB / 0.8106 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.01093/0.9079, allocations: 7.06 MB / 1.056 GB, free: 7.883 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002834/0.9108, allocations: 1.466 MB / 1.057 GB, free: 6.297 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001146/0.912, allocations: 466.9 kB / 1.058 GB, free: 5.84 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006256/0.9182, allocations: 3.188 MB / 1.061 GB, free: 2.309 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00122/0.9195, allocations: 498.8 kB / 1.061 GB, free: 1.809 MB / 0.8106 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006542/0.9202, allocations: 87.28 kB / 1.061 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=61): time 5.29e-06/0.9202, allocations: 0 / 1.061 GB, free: 1.723 MB / 0.8106 GB Notification: Performance of matching and sorting (n=61): time 0.003644/0.9238, allocations: 1.346 MB / 1.063 GB, free: 356 kB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.9239, allocations: 59.97 kB / 1.063 GB, free: 284 kB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002538/0.9264, allocations: 1.513 MB / 1.064 GB, free: 14.76 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 0.0001085/0.9266, allocations: 45.7 kB / 1.064 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008385/0.9274, allocations: 0.8761 MB / 1.065 GB, free: 13.82 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002484/0.9277, allocations: 220.9 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001442/0.9278, allocations: 89.67 kB / 1.065 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001598/0.928, allocations: 345.9 kB / 1.066 GB, free: 13.17 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001137/0.9291, allocations: 413.7 kB / 1.066 GB, free: 12.76 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001355/0.9305, allocations: 0.7905 MB / 1.067 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002386/0.9329, allocations: 1.203 MB / 1.068 GB, free: 10.44 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.034e-05/0.9329, allocations: 4 kB / 1.068 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003243/0.9362, allocations: 1.375 MB / 1.069 GB, free: 9.043 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003577/0.9366, allocations: 447.7 kB / 1.07 GB, free: 8.449 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.17e-05/0.9366, allocations: 15.98 kB / 1.07 GB, free: 8.434 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.39e-05/0.9366, allocations: 16.09 kB / 1.07 GB, free: 8.418 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001129/0.9378, allocations: 275.5 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.032e-05/0.9378, allocations: 23.92 kB / 1.07 GB, free: 8.125 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001387/0.9392, allocations: 136.5 kB / 1.07 GB, free: 7.992 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001245/0.9394, allocations: 55.98 kB / 1.07 GB, free: 7.938 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.152e-05/0.9394, allocations: 4 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002777/0.9422, allocations: 1.177 MB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.429e-05/0.9422, allocations: 12 kB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.9422, allocations: 16 kB / 1.072 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.9433, allocations: 280.1 kB / 1.072 GB, free: 6.449 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.786e-05/0.9433, allocations: 27.86 kB / 1.072 GB, free: 6.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001404/0.9448, allocations: 140.4 kB / 1.072 GB, free: 6.285 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001172/0.9449, allocations: 51.98 kB / 1.072 GB, free: 6.234 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (121): * Single equations (assignments): 119 * 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.0009434/0.9458, allocations: 472.7 kB / 1.072 GB, free: 5.762 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003572/0.9462, allocations: 169.9 kB / 1.073 GB, free: 5.594 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00314/0.9494, allocations: 1.194 MB / 1.074 GB, free: 4.387 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.005e-05/0.9494, allocations: 12 kB / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.058e-05/0.9494, allocations: 0 / 1.074 GB, free: 4.375 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002245/0.9517, allocations: 1.045 MB / 1.075 GB, free: 3.277 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 postOpt removeSimpleEquations (simulation): time 0.005794/0.9575, allocations: 2.51 MB / 1.077 GB, free: 0.6992 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.592e-06/0.9575, allocations: 3.938 kB / 1.077 GB, free: 0.6953 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008673/0.9584, allocations: 171.8 kB / 1.077 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001853/0.9586, allocations: 24.84 kB / 1.077 GB, free: 0.5 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.915e-05/0.9587, allocations: 27.98 kB / 1.077 GB, free: 484 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001156/0.9598, allocations: 1.319 MB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.556e-06/0.9599, allocations: 4.031 kB / 1.079 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003963/0.9638, allocations: 1.674 MB / 1.08 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008441/0.9647, allocations: 350.6 kB / 1.081 GB, free: 12.95 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003859/0.9651, allocations: 15.98 kB / 1.081 GB, free: 12.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001216/0.9663, allocations: 115.9 kB / 1.081 GB, free: 12.82 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.9665, allocations: 60.42 kB / 1.081 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.504e-05/0.9666, allocations: 35.97 kB / 1.081 GB, free: 12.73 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001896/0.9685, allocations: 1.074 MB / 1.082 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of sort global known variables: time 2.3e-07/0.9685, allocations: 0 / 1.082 GB, free: 11.63 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002786/0.9713, allocations: 0.8615 MB / 1.083 GB, free: 10.77 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * 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 (71): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.001966/0.9733, allocations: 0.7194 MB / 1.084 GB, free: 10.18 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.004289/0.9776, allocations: 1.719 MB / 1.085 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.9776, allocations: 0 / 1.085 GB, free: 8.441 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.00146/0.9791, allocations: 0.5761 MB / 1.086 GB, free: 7.852 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004162/0.9832, allocations: 0.7388 MB / 1.087 GB, free: 7.117 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006738/0.99, allocations: 3.888 MB / 1.09 GB, free: 3.191 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001126/0.9912, allocations: 1.364 MB / 1.092 GB, free: 1.801 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005888/0.9918, allocations: 143.4 kB / 1.092 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of SimCode: time 6.81e-07/0.9918, allocations: 0 / 1.092 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of Templates: time 0.05162/1.043, allocations: 32.83 MB / 1.124 GB, free: 1.039 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,TSet.y,TOut.y,TVol.T,THeaOut.T,hea.TSet,hea.Q_flow Variables in the result:THeaOut.T,TOut.y,TSet.y,TVol.T,hea.Q_flow,hea.TSet,time