Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.192/2.192, allocations: 391.2 MB / 407 MB, free: 10.81 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001278/0.001277, allocations: 194.2 kB / 499.1 MB, free: 4.668 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 222.9 MB / 0.7948 GB, free: 15.84 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 95.77 kB / 0.9329 GB, free: 7.082 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001575, allocations: 52.5 kB / 1.081 GB, free: 218 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3002, allocations: 140.6 MB / 1.218 GB, free: 117.2 MB / 0.823 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.04972/0.3499, allocations: 66.57 MB / 1.283 GB, free: 50.45 MB / 0.823 GB Notification: Performance of NFInst.instExpressions: time 0.02162/0.3716, allocations: 16.88 MB / 1.3 GB, free: 33.53 MB / 0.823 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004483/0.3761, allocations: 87.44 kB / 1.3 GB, free: 33.44 MB / 0.823 GB Notification: Performance of NFTyping.typeComponents: time 0.003876/0.3801, allocations: 0.9949 MB / 1.301 GB, free: 32.44 MB / 0.823 GB Notification: Performance of NFTyping.typeBindings: time 0.008299/0.3884, allocations: 2.438 MB / 1.303 GB, free: 29.99 MB / 0.823 GB Notification: Performance of NFTyping.typeClassSections: time 0.006432/0.3949, allocations: 2.101 MB / 1.305 GB, free: 27.91 MB / 0.823 GB Notification: Performance of NFFlatten.flatten: time 0.007942/0.4028, allocations: 7.018 MB / 1.312 GB, free: 20.87 MB / 0.823 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003094/0.406, allocations: 1.632 MB / 1.314 GB, free: 19.18 MB / 0.823 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004408/0.4104, allocations: 1.809 MB / 1.315 GB, free: 17.37 MB / 0.823 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002696/0.4131, allocations: 1.501 MB / 1.317 GB, free: 15.86 MB / 0.823 GB Notification: Performance of NFPackage.collectConstants: time 0.0006936/0.4138, allocations: 100 kB / 1.317 GB, free: 15.76 MB / 0.823 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004525/0.4184, allocations: 1.852 MB / 1.319 GB, free: 13.91 MB / 0.823 GB Notification: Performance of NFScalarize.scalarize: time 0.0009708/0.4194, allocations: 482 kB / 1.319 GB, free: 13.43 MB / 0.823 GB Notification: Performance of NFVerifyModel.verify: time 0.001669/0.4211, allocations: 1.045 MB / 1.32 GB, free: 12.38 MB / 0.823 GB Notification: Performance of NFConvertDAE.convert: time 0.005336/0.4264, allocations: 3.529 MB / 1.324 GB, free: 8.844 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4265, allocations: 4 kB / 1.324 GB, free: 8.84 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.383e-06/0.4265, allocations: 0 / 1.324 GB, free: 8.84 MB / 0.823 GB Notification: Performance of Transformations before backend: time 3.708e-05/0.4265, allocations: 0 / 1.324 GB, free: 8.84 MB / 0.823 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.004491/0.431, allocations: 2.679 MB / 1.326 GB, free: 6.086 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.4311, allocations: 15.98 kB / 1.326 GB, free: 6.07 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001972/0.433, allocations: 457.8 kB / 1.327 GB, free: 5.621 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003196/0.4363, allocations: 1.842 MB / 1.328 GB, free: 3.727 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003357/0.4366, allocations: 166.3 kB / 1.329 GB, free: 3.562 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001668/0.4368, allocations: 132 kB / 1.329 GB, free: 3.434 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002306/0.4391, allocations: 1.45 MB / 1.33 GB, free: 1.898 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.132e-05/0.4391, allocations: 3.938 kB / 1.33 GB, free: 1.895 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001064/0.4393, allocations: 52 kB / 1.33 GB, free: 1.844 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.019e-05/0.4393, allocations: 50.3 kB / 1.33 GB, free: 1.793 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002277/0.4416, allocations: 1.16 MB / 1.331 GB, free: 0.625 MB / 0.823 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.009434/0.451, allocations: 7.385 MB / 1.339 GB, free: 8.668 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002287/0.4533, allocations: 1.375 MB / 1.34 GB, free: 7.176 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001025/0.4544, allocations: 486.5 kB / 1.34 GB, free: 6.699 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004914/0.4593, allocations: 2.693 MB / 1.343 GB, free: 3.773 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001117/0.4604, allocations: 0.5064 MB / 1.344 GB, free: 3.246 MB / 0.8386 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006153/0.4611, allocations: 83.41 kB / 1.344 GB, free: 3.164 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=64): time 2.495e-06/0.4611, allocations: 0 / 1.344 GB, free: 3.164 MB / 0.8386 GB Notification: Performance of matching and sorting (n=64): time 0.003393/0.4645, allocations: 1.284 MB / 1.345 GB, free: 1.852 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.66e-05/0.4646, allocations: 111.4 kB / 1.345 GB, free: 1.719 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001989/0.4666, allocations: 1.457 MB / 1.346 GB, free: 268 kB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 7.79e-05/0.4667, allocations: 45.7 kB / 1.346 GB, free: 216 kB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007438/0.4674, allocations: 0.8918 MB / 1.347 GB, free: 15.31 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.000212/0.4676, allocations: 236.8 kB / 1.348 GB, free: 15.07 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003101/0.468, allocations: 210.3 kB / 1.348 GB, free: 14.86 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0001536/0.4681, allocations: 349.9 kB / 1.348 GB, free: 14.52 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009364/0.4691, allocations: 404.6 kB / 1.348 GB, free: 14.12 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001204/0.4703, allocations: 0.7506 MB / 1.349 GB, free: 13.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002062/0.4723, allocations: 1.14 MB / 1.35 GB, free: 11.92 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.516e-06/0.4724, allocations: 4 kB / 1.35 GB, free: 11.91 MB / 0.8542 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002919/0.4753, allocations: 1.321 MB / 1.352 GB, free: 10.58 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.757e-05/0.4754, allocations: 37.7 kB / 1.352 GB, free: 10.54 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.723e-05/0.4754, allocations: 12 kB / 1.352 GB, free: 10.52 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.784e-05/0.4754, allocations: 12 kB / 1.352 GB, free: 10.51 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009772/0.4764, allocations: 268 kB / 1.352 GB, free: 10.25 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.528e-05/0.4764, allocations: 19.94 kB / 1.352 GB, free: 10.23 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001424/0.4779, allocations: 136.4 kB / 1.352 GB, free: 10.1 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.574e-05/0.478, allocations: 51.92 kB / 1.352 GB, free: 10.05 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001849/0.4798, allocations: 0.7127 MB / 1.353 GB, free: 9.332 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001441/0.4813, allocations: 0.7312 MB / 1.354 GB, free: 8.445 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002388/0.4837, allocations: 1.109 MB / 1.355 GB, free: 7.191 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.545e-05/0.4837, allocations: 8 kB / 1.355 GB, free: 7.184 MB / 0.8542 GB Notification: Performance of matching and sorting (n=124) (initialization_lambda0): time 0.00342/0.4871, allocations: 1.293 MB / 1.356 GB, free: 5.875 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 4.888e-05/0.4872, allocations: 38.3 kB / 1.356 GB, free: 5.832 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.898e-05/0.4872, allocations: 8 kB / 1.356 GB, free: 5.824 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.4873, allocations: 23.98 kB / 1.356 GB, free: 5.801 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.4883, allocations: 251.6 kB / 1.356 GB, free: 5.555 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.448e-05/0.4884, allocations: 31.91 kB / 1.356 GB, free: 5.523 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001703/0.4901, allocations: 128.5 kB / 1.356 GB, free: 5.398 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001295/0.4902, allocations: 51.98 kB / 1.356 GB, free: 5.348 MB / 0.8542 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.0004738/0.4907, allocations: 247.8 kB / 1.357 GB, free: 5.098 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004967/0.4912, allocations: 165.9 kB / 1.357 GB, free: 4.934 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003053/0.4943, allocations: 1.123 MB / 1.358 GB, free: 3.793 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.966e-05/0.4943, allocations: 8 kB / 1.358 GB, free: 3.785 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/0.4943, allocations: 4 kB / 1.358 GB, free: 3.781 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001944/0.4963, allocations: 0.8315 MB / 1.359 GB, free: 2.934 MB / 0.8542 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.006227/0.5025, allocations: 2.759 MB / 1.361 GB, free: 96 kB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.116e-06/0.5025, allocations: 4 kB / 1.361 GB, free: 92 kB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007838/0.5033, allocations: 168 kB / 1.362 GB, free: 15.93 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001783/0.5035, allocations: 24.84 kB / 1.362 GB, free: 15.9 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.117e-05/0.5036, allocations: 27.98 kB / 1.362 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001068/0.5047, allocations: 1.327 MB / 1.363 GB, free: 14.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.414e-06/0.5047, allocations: 4.156 kB / 1.363 GB, free: 14.41 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01838/0.5231, allocations: 8.383 MB / 1.371 GB, free: 5.68 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008556/0.524, allocations: 342.7 kB / 1.371 GB, free: 5.324 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003906/0.5244, allocations: 20 kB / 1.371 GB, free: 5.305 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/0.5257, allocations: 127.7 kB / 1.372 GB, free: 5.18 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001775/0.5259, allocations: 60.36 kB / 1.372 GB, free: 5.121 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000111/0.526, allocations: 35.97 kB / 1.372 GB, free: 5.086 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.002055/0.528, allocations: 1.05 MB / 1.373 GB, free: 4.012 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.4e-07/0.5281, allocations: 0 / 1.373 GB, free: 4.012 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.006571/0.5346, allocations: 1.381 MB / 1.374 GB, free: 2.629 MB / 0.8698 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.00204/0.5367, allocations: 0.5112 MB / 1.375 GB, free: 2.117 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.004545/0.5413, allocations: 1.659 MB / 1.376 GB, free: 452 kB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 7.575e-06/0.5413, allocations: 0 / 1.376 GB, free: 452 kB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.001502/0.5428, allocations: 0.5812 MB / 1.377 GB, free: 15.85 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004626/0.5474, allocations: 0.8425 MB / 1.378 GB, free: 15.01 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008015/0.5555, allocations: 4.423 MB / 1.382 GB, free: 10.5 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001533/0.557, allocations: 1.421 MB / 1.383 GB, free: 9.047 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.002555/0.5596, allocations: 438.4 kB / 1.384 GB, free: 8.613 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005681/0.5602, allocations: 147.4 kB / 1.384 GB, free: 8.473 MB / 0.8855 GB Notification: Performance of SimCode: time 8.31e-07/0.5602, allocations: 0 / 1.384 GB, free: 8.473 MB / 0.8855 GB Notification: Performance of Templates: time 0.08417/0.6444, allocations: 35.6 MB / 1.419 GB, free: 5.254 MB / 0.9167 GB make -j1 -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_latest_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)