Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.005518/0.005518, allocations: 101.7 kB / 15.73 MB, free: 6.062 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.001142/0.001142, allocations: 194.5 kB / 16.67 MB, free: 5.969 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.414/1.414, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.571/2.571, allocations: 469.8 MB / 0.7425 GB, free: 3.348 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 59.91 kB / 1.065 GB, free: 13.51 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8559/0.8572, allocations: 159.1 MB / 1.221 GB, free: 2.07 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.07056/0.9278, allocations: 67.59 MB / 1.287 GB, free: 14.25 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02976/0.9576, allocations: 18.61 MB / 1.305 GB, free: 11.59 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004115/0.9617, allocations: 95.5 kB / 1.305 GB, free: 11.5 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.005949/0.9676, allocations: 2.01 MB / 1.307 GB, free: 9.48 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.008723/0.9763, allocations: 2.946 MB / 1.31 GB, free: 6.523 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.006661/0.983, allocations: 2.462 MB / 1.312 GB, free: 4.078 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.01226/0.9953, allocations: 8.285 MB / 1.32 GB, free: 11.78 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002771/0.998, allocations: 1.599 MB / 1.322 GB, free: 10.12 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004962/1.003, allocations: 2.143 MB / 1.324 GB, free: 7.98 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00256/1.006, allocations: 1.568 MB / 1.325 GB, free: 6.406 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 0.0003558/1.006, allocations: 200 kB / 1.326 GB, free: 6.211 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004147/1.01, allocations: 2.149 MB / 1.328 GB, free: 4.059 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 0.0006973/1.011, allocations: 0.72 MB / 1.328 GB, free: 3.336 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 0.001496/1.012, allocations: 1.329 MB / 1.33 GB, free: 2 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.005871/1.018, allocations: 4.254 MB / 1.334 GB, free: 13.73 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/1.018, allocations: 0 / 1.334 GB, free: 13.73 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.062e-06/1.018, allocations: 4 kB / 1.334 GB, free: 13.73 MB / 1.061 GB Notification: Performance of Transformations before backend: time 5.229e-05/1.018, allocations: 0 / 1.334 GB, free: 13.73 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.00513/1.023, allocations: 3.189 MB / 1.337 GB, free: 10.45 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/1.023, allocations: 16.58 kB / 1.337 GB, free: 10.43 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001997/1.025, allocations: 497.9 kB / 1.338 GB, free: 9.945 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004758/1.03, allocations: 2.897 MB / 1.34 GB, free: 6.977 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.176e-05/1.03, allocations: 94.47 kB / 1.34 GB, free: 6.883 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002022/1.03, allocations: 143.9 kB / 1.341 GB, free: 6.742 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002696/1.033, allocations: 1.452 MB / 1.342 GB, free: 5.199 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.789e-05/1.033, allocations: 3.938 kB / 1.342 GB, free: 5.195 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001228/1.033, allocations: 52 kB / 1.342 GB, free: 5.145 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.496e-05/1.033, allocations: 46.31 kB / 1.342 GB, free: 5.098 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002512/1.036, allocations: 1.121 MB / 1.343 GB, free: 3.969 MB / 1.061 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.009953/1.046, allocations: 7.759 MB / 1.351 GB, free: 11.63 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002002/1.048, allocations: 1.237 MB / 1.352 GB, free: 10.28 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009676/1.049, allocations: 424.5 kB / 1.352 GB, free: 9.867 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004784/1.054, allocations: 2.698 MB / 1.355 GB, free: 6.938 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001024/1.055, allocations: 470.5 kB / 1.355 GB, free: 6.461 MB / 1.076 GB Notification: Performance of pre-optimization done (n=62): time 2.254e-06/1.055, allocations: 0 / 1.355 GB, free: 6.461 MB / 1.076 GB Notification: Performance of matching and sorting (n=62): time 0.003129/1.058, allocations: 1.261 MB / 1.357 GB, free: 5.172 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.21e-05/1.058, allocations: 111.3 kB / 1.357 GB, free: 5.035 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002922/1.061, allocations: 2.075 MB / 1.359 GB, free: 2.934 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 0.0001049/1.061, allocations: 45.7 kB / 1.359 GB, free: 2.883 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 0.001013/1.062, allocations: 1.051 MB / 1.36 GB, free: 1.824 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002325/1.062, allocations: 234.1 kB / 1.36 GB, free: 1.594 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004354/1.062, allocations: 314.7 kB / 1.36 GB, free: 1.281 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001654/1.063, allocations: 305.1 kB / 1.361 GB, free: 0.9805 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00133/1.064, allocations: 0.5415 MB / 1.361 GB, free: 448 kB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/1.065, allocations: 0.9658 MB / 1.362 GB, free: 15.29 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002374/1.068, allocations: 1.426 MB / 1.364 GB, free: 13.71 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.769e-06/1.068, allocations: 4 kB / 1.364 GB, free: 13.7 MB / 1.092 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.00345/1.071, allocations: 1.759 MB / 1.365 GB, free: 11.93 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 5.302e-05/1.071, allocations: 37.69 kB / 1.365 GB, free: 11.89 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.774e-05/1.071, allocations: 12.09 kB / 1.365 GB, free: 11.88 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.697e-05/1.071, allocations: 19.94 kB / 1.365 GB, free: 11.86 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001127/1.072, allocations: 300 kB / 1.366 GB, free: 11.56 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.505e-05/1.073, allocations: 27.92 kB / 1.366 GB, free: 11.54 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001473/1.074, allocations: 178.9 kB / 1.366 GB, free: 11.36 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001059/1.074, allocations: 67.92 kB / 1.366 GB, free: 11.29 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001857/1.076, allocations: 0.9795 MB / 1.367 GB, free: 10.31 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001534/1.077, allocations: 0.9619 MB / 1.368 GB, free: 9.176 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002414/1.08, allocations: 1.43 MB / 1.369 GB, free: 7.59 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.36e-06/1.08, allocations: 0 / 1.369 GB, free: 7.59 MB / 1.092 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003466/1.083, allocations: 1.758 MB / 1.371 GB, free: 5.82 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 4.775e-05/1.083, allocations: 37.64 kB / 1.371 GB, free: 5.777 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/1.083, allocations: 12 kB / 1.371 GB, free: 5.766 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/1.083, allocations: 16 kB / 1.371 GB, free: 5.75 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001104/1.085, allocations: 303.6 kB / 1.371 GB, free: 5.453 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.418e-05/1.085, allocations: 23.94 kB / 1.371 GB, free: 5.43 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001618/1.086, allocations: 155.6 kB / 1.371 GB, free: 5.277 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.876e-05/1.086, allocations: 59.98 kB / 1.372 GB, free: 5.219 MB / 1.092 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 (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * 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.0003479/1.087, allocations: 262.5 kB / 1.372 GB, free: 4.957 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003221/1.087, allocations: 222.5 kB / 1.372 GB, free: 4.738 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002559/1.09, allocations: 1.076 MB / 1.373 GB, free: 3.648 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.508e-05/1.09, allocations: 8 kB / 1.373 GB, free: 3.641 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.084e-05/1.09, allocations: 7.938 kB / 1.373 GB, free: 3.633 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001744/1.091, allocations: 0.7764 MB / 1.374 GB, free: 2.84 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005215/1.097, allocations: 2.897 MB / 1.377 GB, free: 15.86 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.357e-06/1.097, allocations: 7.938 kB / 1.377 GB, free: 15.85 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007765/1.097, allocations: 160 kB / 1.377 GB, free: 15.7 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001625/1.097, allocations: 24.84 kB / 1.377 GB, free: 15.67 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.474e-05/1.098, allocations: 23.98 kB / 1.377 GB, free: 15.64 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001307/1.099, allocations: 1.426 MB / 1.378 GB, free: 14.08 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/1.099, allocations: 4 kB / 1.378 GB, free: 14.08 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003471/1.102, allocations: 1.605 MB / 1.38 GB, free: 12.43 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008158/1.103, allocations: 419.3 kB / 1.38 GB, free: 12 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002565/1.103, allocations: 19.98 kB / 1.38 GB, free: 11.98 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001025/1.104, allocations: 75.75 kB / 1.38 GB, free: 11.91 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001299/1.105, allocations: 60.48 kB / 1.38 GB, free: 11.85 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.876e-05/1.105, allocations: 39.97 kB / 1.38 GB, free: 11.81 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.00225/1.107, allocations: 1.45 MB / 1.382 GB, free: 10.35 MB / 1.107 GB Notification: Performance of sort global known variables: time 1e-07/1.107, allocations: 0 / 1.382 GB, free: 10.35 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.00329/1.11, allocations: 1.115 MB / 1.383 GB, free: 9.23 MB / 1.107 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 (74): * Single equations (assignments): 66 * 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.001524/1.112, allocations: 0.6887 MB / 1.384 GB, free: 8.543 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.004339/1.116, allocations: 1.95 MB / 1.385 GB, free: 6.574 MB / 1.107 GB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/1.116, allocations: 0 / 1.385 GB, free: 6.574 MB / 1.107 GB Notification: Performance of simCode: created simulation system equations: time 0.00119/1.117, allocations: 0.5179 MB / 1.386 GB, free: 6.039 MB / 1.107 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004505/1.122, allocations: 1.097 MB / 1.387 GB, free: 4.969 MB / 1.107 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00632/1.128, allocations: 3.772 MB / 1.391 GB, free: 1.137 MB / 1.107 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001272/1.129, allocations: 1.57 MB / 1.392 GB, free: 15.54 MB / 1.123 GB Notification: Performance of simCode: alias equations: time 0.001913/1.131, allocations: 0.5322 MB / 1.393 GB, free: 15 MB / 1.123 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004168/1.132, allocations: 179.4 kB / 1.393 GB, free: 14.82 MB / 1.123 GB Notification: Performance of SimCode: time 1.052e-06/1.132, allocations: 0 / 1.393 GB, free: 14.82 MB / 1.123 GB Notification: Performance of Templates: time 0.06847/1.2, allocations: 42.81 MB / 1.435 GB, free: 4.582 MB / 1.154 GB make -j1 -f Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches