Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.133/2.133, allocations: 251.2 MB / 266.2 MB, free: 11.53 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001359/0.001359, allocations: 178.7 kB / 325.8 MB, free: 2.785 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.498/2.498, allocations: 205.4 MB / 0.5767 GB, free: 20.72 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001287/0.001287, allocations: 82.38 kB / 0.6812 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006398/0.00064, allocations: 12.06 kB / 0.7953 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2474/0.2481, allocations: 106.3 MB / 0.899 GB, free: 65.41 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.08079/0.329, allocations: 61.82 MB / 0.9594 GB, free: 3.422 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.03989/0.3689, allocations: 18.15 MB / 0.9771 GB, free: 1.246 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003684/0.3726, allocations: 75.5 kB / 0.9772 GB, free: 1.172 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 0.004352/0.377, allocations: 0.8192 MB / 0.978 GB, free: 356 kB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 0.009478/0.3866, allocations: 2.105 MB / 0.98 GB, free: 14.23 MB / 0.6355 GB Notification: Performance of NFTyping.typeClassSections: time 0.01224/0.3988, allocations: 2.74 MB / 0.9827 GB, free: 11.52 MB / 0.6355 GB Notification: Performance of NFFlatten.flatten: time 0.01168/0.4105, allocations: 6.035 MB / 0.9886 GB, free: 5.461 MB / 0.6355 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003736/0.4143, allocations: 1.454 MB / 0.99 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005375/0.4197, allocations: 1.665 MB / 0.9917 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003753/0.4235, allocations: 1.377 MB / 0.993 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of NFPackage.collectConstants: time 0.0006027/0.4242, allocations: 72 kB / 0.9931 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006084/0.4303, allocations: 1.548 MB / 0.9946 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of NFScalarize.scalarize: time 0.00125/0.4316, allocations: 434.1 kB / 0.995 GB, free: 14.88 MB / 0.6511 GB Notification: Performance of NFVerifyModel.verify: time 0.001143/0.4328, allocations: 440.6 kB / 0.9954 GB, free: 14.44 MB / 0.6511 GB Notification: Performance of NFConvertDAE.convert: time 0.006176/0.439, allocations: 2.724 MB / 0.9981 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 6.562e-06/0.439, allocations: 0 / 0.9981 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of FrontEnd: time 2.495e-06/0.439, allocations: 0 / 0.9981 GB, free: 11.71 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 5.367e-05/0.4391, allocations: 0 / 0.9981 GB, free: 11.71 MB / 0.6511 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.007463/0.4466, allocations: 2.361 MB / 1 GB, free: 9.273 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/0.4466, allocations: 12.03 kB / 1 GB, free: 9.262 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002882/0.4495, allocations: 393.9 kB / 1.001 GB, free: 8.875 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006301/0.4559, allocations: 1.716 MB / 1.002 GB, free: 7.109 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007396/0.4567, allocations: 170.4 kB / 1.003 GB, free: 6.941 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004787/0.4572, allocations: 135.9 kB / 1.003 GB, free: 6.809 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004771/0.462, allocations: 1.465 MB / 1.004 GB, free: 5.25 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.584e-05/0.4621, allocations: 7.875 kB / 1.004 GB, free: 5.242 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002048/0.4623, allocations: 55.94 kB / 1.004 GB, free: 5.188 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.72e-05/0.4624, allocations: 32 kB / 1.004 GB, free: 5.156 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004554/0.467, allocations: 1.137 MB / 1.005 GB, free: 4.012 MB / 0.6511 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.01515/0.4822, allocations: 7.377 MB / 1.013 GB, free: 12.06 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00405/0.4863, allocations: 1.37 MB / 1.014 GB, free: 10.58 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001846/0.4882, allocations: 466.5 kB / 1.014 GB, free: 10.12 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.006821/0.495, allocations: 2.599 MB / 1.017 GB, free: 7.285 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001851/0.4969, allocations: 0.4908 MB / 1.017 GB, free: 6.773 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009524/0.4979, allocations: 91.33 kB / 1.017 GB, free: 6.684 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=63): time 4.047e-06/0.4979, allocations: 0 / 1.017 GB, free: 6.684 MB / 0.6667 GB Notification: Performance of matching and sorting (n=63): time 0.00573/0.5037, allocations: 1.28 MB / 1.019 GB, free: 5.375 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001301/0.5039, allocations: 196.4 kB / 1.019 GB, free: 5.141 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003442/0.5073, allocations: 1.498 MB / 1.02 GB, free: 3.645 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.0002412/0.5076, allocations: 49.69 kB / 1.02 GB, free: 3.59 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.001211/0.5088, allocations: 0.8997 MB / 1.021 GB, free: 2.68 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003824/0.5092, allocations: 224.8 kB / 1.022 GB, free: 2.457 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.425e-05/0.5093, allocations: 20 kB / 1.022 GB, free: 2.438 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0001844/0.5095, allocations: 345.9 kB / 1.022 GB, free: 2.094 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001684/0.5112, allocations: 385.8 kB / 1.022 GB, free: 1.719 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002037/0.5133, allocations: 0.7615 MB / 1.023 GB, free: 0.7852 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001898/0.5152, allocations: 0.4962 MB / 1.023 GB, free: 288 kB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-05/0.5152, allocations: 4 kB / 1.023 GB, free: 284 kB / 0.6667 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.004892/0.5201, allocations: 1.312 MB / 1.025 GB, free: 14.96 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003783/0.5206, allocations: 405.2 kB / 1.025 GB, free: 14.41 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.433e-05/0.5206, allocations: 16 kB / 1.025 GB, free: 14.4 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.031e-05/0.5207, allocations: 16 kB / 1.025 GB, free: 14.38 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002019/0.5227, allocations: 255.6 kB / 1.025 GB, free: 14.13 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.221e-05/0.5228, allocations: 23.92 kB / 1.025 GB, free: 14.11 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002619/0.5254, allocations: 136.4 kB / 1.026 GB, free: 13.98 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003037/0.5258, allocations: 51.98 kB / 1.026 GB, free: 13.93 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.5258, allocations: 4 kB / 1.026 GB, free: 13.92 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004523/0.5303, allocations: 1.143 MB / 1.027 GB, free: 12.77 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.076e-05/0.5304, allocations: 12 kB / 1.027 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.416e-05/0.5305, allocations: 15.94 kB / 1.027 GB, free: 12.74 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001977/0.5325, allocations: 256.2 kB / 1.027 GB, free: 12.49 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.307e-05/0.5325, allocations: 19.92 kB / 1.027 GB, free: 12.47 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002408/0.535, allocations: 136.5 kB / 1.027 GB, free: 12.34 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002559/0.5353, allocations: 55.91 kB / 1.027 GB, free: 12.29 MB / 0.6823 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,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): 118 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001311/0.5366, allocations: 496.7 kB / 1.028 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005172/0.5371, allocations: 165.9 kB / 1.028 GB, free: 11.62 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004524/0.5417, allocations: 1.119 MB / 1.029 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.569e-05/0.5417, allocations: 8 kB / 1.029 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.057e-05/0.5417, allocations: 0 / 1.029 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003388/0.5451, allocations: 0.8277 MB / 1.03 GB, free: 9.645 MB / 0.6823 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.007977/0.5532, allocations: 2.693 MB / 1.032 GB, free: 6.867 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.1e-05/0.5532, allocations: 7.938 kB / 1.032 GB, free: 6.859 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001496/0.5547, allocations: 164 kB / 1.033 GB, free: 6.699 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002788/0.555, allocations: 36.77 kB / 1.033 GB, free: 6.66 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001105/0.5552, allocations: 27.98 kB / 1.033 GB, free: 6.633 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001681/0.5569, allocations: 1.367 MB / 1.034 GB, free: 5.133 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.5569, allocations: 4 kB / 1.034 GB, free: 5.129 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00598/0.5629, allocations: 1.646 MB / 1.036 GB, free: 3.434 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001216/0.5642, allocations: 370.5 kB / 1.036 GB, free: 3.051 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005288/0.5647, allocations: 16 kB / 1.036 GB, free: 3.035 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/0.5669, allocations: 115.9 kB / 1.036 GB, free: 2.922 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.5671, allocations: 68.36 kB / 1.036 GB, free: 2.855 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.5673, allocations: 31.97 kB / 1.036 GB, free: 2.824 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.002791/0.5701, allocations: 1.087 MB / 1.037 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of sort global known variables: time 5.71e-07/0.5701, allocations: 0 / 1.037 GB, free: 1.715 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.004629/0.5748, allocations: 0.9783 MB / 1.038 GB, free: 0.7344 MB / 0.6823 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.x[1],mov.filter.x[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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001845/0.5767, allocations: 0.5309 MB / 1.039 GB, free: 208 kB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.00618/0.5829, allocations: 1.694 MB / 1.04 GB, free: 14.48 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.194e-05/0.5829, allocations: 5.438 kB / 1.04 GB, free: 14.48 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.002157/0.5851, allocations: 0.5762 MB / 1.041 GB, free: 13.89 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007429/0.5926, allocations: 0.8685 MB / 1.042 GB, free: 13.03 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01104/0.6036, allocations: 3.902 MB / 1.046 GB, free: 9.07 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001952/0.6057, allocations: 1.417 MB / 1.047 GB, free: 7.621 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.003881/0.6096, allocations: 422.8 kB / 1.047 GB, free: 7.203 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000828/0.6104, allocations: 147.3 kB / 1.047 GB, free: 7.059 MB / 0.698 GB Notification: Performance of SimCode: time 1.313e-06/0.6104, allocations: 0 / 1.047 GB, free: 7.059 MB / 0.698 GB Notification: Performance of Templates: time 0.7108/1.321, allocations: 33.64 MB / 1.08 GB, free: 136.7 MB / 0.698 GB make -j1 -f Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)