Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.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_10_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_10_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.005622/0.005622, allocations: 94.75 kB / 15.73 MB, free: 6.039 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.001302/0.001302, allocations: 202.2 kB / 16.68 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.565/2.565, allocations: 437 MB / 0.7105 GB, free: 5.055 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 59.89 kB / 1.019 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2814, allocations: 151.6 MB / 1.167 GB, free: 6.77 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06617/0.3476, allocations: 67.46 MB / 1.233 GB, free: 3.066 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02583/0.3734, allocations: 18.59 MB / 1.251 GB, free: 440 kB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002982/0.3764, allocations: 99.44 kB / 1.251 GB, free: 340 kB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.5592/0.9357, allocations: 1.964 MB / 1.253 GB, free: 12.93 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007112/0.9428, allocations: 2.82 MB / 1.255 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00563/0.9484, allocations: 2.444 MB / 1.258 GB, free: 12.88 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01286/0.9613, allocations: 8.262 MB / 1.266 GB, free: 12.85 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002927/0.9643, allocations: 1.938 MB / 1.268 GB, free: 12.6 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004805/0.9691, allocations: 2.108 MB / 1.27 GB, free: 12.49 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002762/0.9719, allocations: 1.556 MB / 1.271 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0004739/0.9723, allocations: 200.2 kB / 1.272 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004648/0.977, allocations: 2.154 MB / 1.274 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0007962/0.9778, allocations: 0.6939 MB / 1.274 GB, free: 12.06 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001764/0.9796, allocations: 1.332 MB / 1.276 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.007345/0.9869, allocations: 4.26 MB / 1.28 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.987, allocations: 3.281 kB / 1.28 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.987, allocations: 0.875 kB / 1.28 GB, free: 11.06 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.033e-05/0.9871, allocations: 0 / 1.28 GB, free: 11.06 MB / 0.9981 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.005874/0.9929, allocations: 3.196 MB / 1.283 GB, free: 9.395 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.993, allocations: 10.44 kB / 1.283 GB, free: 9.395 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002124/0.9951, allocations: 499.3 kB / 1.283 GB, free: 9.227 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005125/1, allocations: 2.893 MB / 1.286 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-05/1, allocations: 100.3 kB / 1.286 GB, free: 8.613 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002262/1.001, allocations: 138.1 kB / 1.286 GB, free: 8.609 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002782/1.003, allocations: 1.454 MB / 1.288 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.704e-05/1.003, allocations: 7 kB / 1.288 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001276/1.004, allocations: 48.06 kB / 1.288 GB, free: 8.352 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.653e-05/1.004, allocations: 53.22 kB / 1.288 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002585/1.006, allocations: 1.122 MB / 1.289 GB, free: 8.316 MB / 0.9981 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.009447/1.016, allocations: 7.748 MB / 1.297 GB, free: 3.41 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001968/1.018, allocations: 1.277 MB / 1.298 GB, free: 2.539 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009721/1.019, allocations: 456.8 kB / 1.298 GB, free: 2.379 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004785/1.023, allocations: 2.725 MB / 1.301 GB, free: 428 kB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001145/1.025, allocations: 476.1 kB / 1.301 GB, free: 228 kB / 0.9981 GB Notification: Performance of pre-optimization done (n=62): time 2.455e-06/1.025, allocations: 1.219 kB / 1.301 GB, free: 228 kB / 0.9981 GB Notification: Performance of matching and sorting (n=62): time 0.003252/1.028, allocations: 1.251 MB / 1.303 GB, free: 15.69 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/1.028, allocations: 111.1 kB / 1.303 GB, free: 15.56 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00319/1.031, allocations: 2.072 MB / 1.305 GB, free: 14.75 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.000103/1.031, allocations: 43.8 kB / 1.305 GB, free: 14.71 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009223/1.032, allocations: 1.048 MB / 1.306 GB, free: 13.9 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002556/1.032, allocations: 240.2 kB / 1.306 GB, free: 13.72 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004414/1.033, allocations: 321.2 kB / 1.306 GB, free: 13.58 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 9.818e-05/1.033, allocations: 304.7 kB / 1.307 GB, free: 13.28 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/1.034, allocations: 0.543 MB / 1.307 GB, free: 13.09 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001422/1.036, allocations: 0.9684 MB / 1.308 GB, free: 12.39 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00232/1.038, allocations: 1.419 MB / 1.31 GB, free: 11.55 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.257e-06/1.038, allocations: 3.469 kB / 1.31 GB, free: 11.55 MB / 1.014 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003459/1.041, allocations: 1.763 MB / 1.311 GB, free: 10.91 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.846e-05/1.041, allocations: 35.17 kB / 1.311 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/1.041, allocations: 12.16 kB / 1.311 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.439e-05/1.042, allocations: 17.09 kB / 1.311 GB, free: 10.88 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001112/1.043, allocations: 299.6 kB / 1.312 GB, free: 10.86 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.938e-05/1.043, allocations: 33.53 kB / 1.312 GB, free: 10.86 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001525/1.044, allocations: 178.4 kB / 1.312 GB, free: 10.76 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/1.044, allocations: 61.75 kB / 1.312 GB, free: 10.75 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001888/1.046, allocations: 0.9806 MB / 1.313 GB, free: 10.3 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001439/1.048, allocations: 0.9671 MB / 1.314 GB, free: 9.605 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002367/1.05, allocations: 1.421 MB / 1.315 GB, free: 8.758 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.297e-06/1.05, allocations: 3.344 kB / 1.315 GB, free: 8.758 MB / 1.014 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003485/1.054, allocations: 1.757 MB / 1.317 GB, free: 8.109 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.859e-05/1.054, allocations: 39.58 kB / 1.317 GB, free: 8.078 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.405e-05/1.054, allocations: 10.81 kB / 1.317 GB, free: 8.078 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/1.054, allocations: 21.59 kB / 1.317 GB, free: 8.074 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/1.055, allocations: 303.3 kB / 1.317 GB, free: 8.062 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.427e-05/1.055, allocations: 24.36 kB / 1.317 GB, free: 8.062 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001535/1.056, allocations: 159.8 kB / 1.317 GB, free: 7.988 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001116/1.056, allocations: 57.75 kB / 1.317 GB, free: 7.98 MB / 1.014 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.0003793/1.057, allocations: 257.4 kB / 1.318 GB, free: 7.762 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003263/1.057, allocations: 211.4 kB / 1.318 GB, free: 7.645 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002596/1.06, allocations: 1.082 MB / 1.319 GB, free: 7.246 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.649e-05/1.06, allocations: 10.58 kB / 1.319 GB, free: 7.246 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.894e-06/1.06, allocations: 1.188 kB / 1.319 GB, free: 7.246 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00182/1.062, allocations: 0.7737 MB / 1.32 GB, free: 6.949 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005194/1.067, allocations: 2.901 MB / 1.323 GB, free: 5.551 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.891e-06/1.067, allocations: 1.594 kB / 1.323 GB, free: 5.551 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00072/1.068, allocations: 166.1 kB / 1.323 GB, free: 5.535 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001457/1.068, allocations: 31.27 kB / 1.323 GB, free: 5.523 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.768e-05/1.068, allocations: 19.77 kB / 1.323 GB, free: 5.516 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001021/1.069, allocations: 1.427 MB / 1.324 GB, free: 4.09 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.069, allocations: 7.75 kB / 1.324 GB, free: 4.09 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003506/1.072, allocations: 1.61 MB / 1.326 GB, free: 3.336 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001019/1.073, allocations: 427.8 kB / 1.326 GB, free: 3.031 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002953/1.074, allocations: 14.88 kB / 1.326 GB, free: 3.023 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/1.075, allocations: 70.72 kB / 1.326 GB, free: 3.008 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001223/1.075, allocations: 64.12 kB / 1.326 GB, free: 2.996 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.346e-05/1.075, allocations: 32.25 kB / 1.326 GB, free: 2.992 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.002031/1.077, allocations: 1.463 MB / 1.328 GB, free: 2.422 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.61e-07/1.077, allocations: 0 / 1.328 GB, free: 2.422 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.003131/1.08, allocations: 1.118 MB / 1.329 GB, free: 2.188 MB / 1.014 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.001583/1.082, allocations: 0.6716 MB / 1.33 GB, free: 1.961 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.004032/1.086, allocations: 2.078 MB / 1.332 GB, free: 1.242 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/1.086, allocations: 0 / 1.332 GB, free: 1.242 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.001137/1.087, allocations: 0.5542 MB / 1.332 GB, free: 0.9414 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005532/1.093, allocations: 1.101 MB / 1.333 GB, free: 384 kB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007519/1.1, allocations: 3.769 MB / 1.337 GB, free: 14.12 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001319/1.101, allocations: 1.572 MB / 1.338 GB, free: 13 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.00234/1.104, allocations: 0.5334 MB / 1.339 GB, free: 12.74 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005053/1.104, allocations: 173 kB / 1.339 GB, free: 12.71 MB / 1.029 GB Notification: Performance of SimCode: time 8.71e-07/1.104, allocations: 0 / 1.339 GB, free: 12.71 MB / 1.029 GB Notification: Performance of Templates: time 0.06992/1.174, allocations: 42.65 MB / 1.381 GB, free: 5.5 MB / 1.061 GB make -j1 -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_HeatExchangers_Examples_WaterHeater_u.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches