Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001077/0.001077, allocations: 89.94 kB / 16.66 MB, free: 6.109 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.001433/0.001433, allocations: 182.7 kB / 17.58 MB, free: 5.82 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.405/1.405, allocations: 223.3 MB / 241.6 MB, free: 212 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7347/0.7347, allocations: 115.5 MB / 408.2 MB, free: 7.105 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003666/0.0003668, allocations: 12 kB / 496.5 MB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3976/0.398, allocations: 77.52 MB / 0.5606 GB, free: 36.25 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06084/0.4589, allocations: 65.72 MB / 0.6248 GB, free: 1.543 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.03083/0.4898, allocations: 18.52 MB / 0.6428 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004708/0.4945, allocations: 83.5 kB / 0.6429 GB, free: 14.9 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0102/0.5047, allocations: 4.173 MB / 0.647 GB, free: 10.72 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009086/0.5139, allocations: 2.515 MB / 0.6495 GB, free: 8.195 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006777/0.5207, allocations: 2.121 MB / 0.6515 GB, free: 6.094 MB / 494.1 MB [/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:1080:9-1080:67:writable] Error: Internal error NFCeval.evalBinaryMul failed to evaluate ‘{0.0, 0.05423941276795777}[pressure.n] * 0.0‘ Notification: Performance of NFFlatten.flatten: time 0.01447/0.5351, allocations: 9.987 MB / 0.6613 GB, free: 12.08 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003871/0.5391, allocations: 1.598 MB / 0.6628 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004747/0.5438, allocations: 1.703 MB / 0.6645 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003241/0.5471, allocations: 1.493 MB / 0.666 GB, free: 7.223 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0007701/0.5479, allocations: 76 kB / 0.666 GB, free: 7.148 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005451/0.5534, allocations: 2.05 MB / 0.668 GB, free: 5.094 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.001186/0.5546, allocations: 0.5602 MB / 0.6686 GB, free: 4.531 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.002728/0.5573, allocations: 1.198 MB / 0.6698 GB, free: 3.32 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.005379/0.5627, allocations: 3.129 MB / 0.6728 GB, free: 188 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.5628, allocations: 0 / 0.6728 GB, free: 188 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.954e-06/0.5628, allocations: 0 / 0.6728 GB, free: 188 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 0.0001389/0.5629, allocations: 0 / 0.6728 GB, free: 188 kB / 0.4981 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.006452/0.5694, allocations: 2.652 MB / 0.6754 GB, free: 13.45 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.367e-05/0.5694, allocations: 8.031 kB / 0.6754 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002469/0.5719, allocations: 496.4 kB / 0.6759 GB, free: 12.95 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006101/0.578, allocations: 2.821 MB / 0.6786 GB, free: 10.06 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004782/0.5786, allocations: 178.6 kB / 0.6788 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004144/0.579, allocations: 136 kB / 0.6789 GB, free: 9.75 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003576/0.5826, allocations: 1.467 MB / 0.6804 GB, free: 8.195 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.32e-05/0.5826, allocations: 4 kB / 0.6804 GB, free: 8.191 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001573/0.5828, allocations: 52 kB / 0.6804 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.129e-05/0.5829, allocations: 54.27 kB / 0.6805 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003073/0.586, allocations: 1.165 MB / 0.6816 GB, free: 6.914 MB / 0.5137 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.0119/0.5979, allocations: 7.751 MB / 0.6892 GB, free: 14.58 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/0.6003, allocations: 1.335 MB / 0.6905 GB, free: 13.13 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001094/0.6014, allocations: 479.1 kB / 0.6909 GB, free: 12.66 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005622/0.607, allocations: 2.724 MB / 0.6936 GB, free: 9.707 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001167/0.6082, allocations: 0.4908 MB / 0.6941 GB, free: 9.199 MB / 0.5294 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008379/0.6091, allocations: 95.16 kB / 0.6942 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=63): time 5.32e-06/0.6091, allocations: 0 / 0.6942 GB, free: 9.105 MB / 0.5294 GB Notification: Performance of matching and sorting (n=63): time 0.003472/0.6126, allocations: 1.311 MB / 0.6955 GB, free: 7.766 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.418e-05/0.6127, allocations: 115.4 kB / 0.6956 GB, free: 7.629 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003576/0.6162, allocations: 2.025 MB / 0.6975 GB, free: 5.578 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001134/0.6164, allocations: 49.64 kB / 0.6976 GB, free: 5.523 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.001062/0.6174, allocations: 1.03 MB / 0.6986 GB, free: 4.484 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.000263/0.6177, allocations: 236.8 kB / 0.6988 GB, free: 4.25 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002242/0.6179, allocations: 157.6 kB / 0.699 GB, free: 4.09 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.6181, allocations: 301.1 kB / 0.6993 GB, free: 3.793 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.6193, allocations: 0.5615 MB / 0.6998 GB, free: 3.227 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001533/0.6209, allocations: 0.9922 MB / 0.7008 GB, free: 2.066 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00259/0.6235, allocations: 1.461 MB / 0.7022 GB, free: 464 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.07e-05/0.6235, allocations: 0 / 0.7022 GB, free: 464 kB / 0.5294 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003709/0.6272, allocations: 1.796 MB / 0.704 GB, free: 14.64 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003346/0.6276, allocations: 448 kB / 0.7044 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.083e-05/0.6276, allocations: 12 kB / 0.7044 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/0.6276, allocations: 19.98 kB / 0.7044 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001167/0.6288, allocations: 315.5 kB / 0.7047 GB, free: 13.71 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.732e-05/0.6289, allocations: 23.92 kB / 0.7047 GB, free: 13.68 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/0.6308, allocations: 145.5 kB / 0.7049 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001506/0.631, allocations: 63.98 kB / 0.7049 GB, free: 13.48 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.309e-05/0.631, allocations: 10.03 kB / 0.7049 GB, free: 13.47 MB / 0.545 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003148/0.6341, allocations: 1.585 MB / 0.7065 GB, free: 11.88 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.437e-05/0.6342, allocations: 8 kB / 0.7065 GB, free: 11.87 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.726e-05/0.6342, allocations: 27.88 kB / 0.7065 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001117/0.6353, allocations: 312.1 kB / 0.7068 GB, free: 11.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.162e-05/0.6354, allocations: 23.92 kB / 0.7068 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.6371, allocations: 157.4 kB / 0.707 GB, free: 11.36 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001313/0.6372, allocations: 63.98 kB / 0.7071 GB, free: 11.3 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (156): * Single equations (assignments): 153 * 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.001283/0.6385, allocations: 0.5904 MB / 0.7076 GB, free: 10.7 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005562/0.6391, allocations: 205.3 kB / 0.7078 GB, free: 10.49 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0029/0.642, allocations: 1.116 MB / 0.7089 GB, free: 9.367 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/0.642, allocations: 11.98 kB / 0.7089 GB, free: 9.355 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.213e-05/0.642, allocations: 4 kB / 0.7089 GB, free: 9.352 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001922/0.6439, allocations: 0.8199 MB / 0.7097 GB, free: 8.52 MB / 0.545 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.006468/0.6504, allocations: 2.92 MB / 0.7126 GB, free: 5.512 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.838e-06/0.6505, allocations: 4 kB / 0.7126 GB, free: 5.508 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007945/0.6513, allocations: 175.9 kB / 0.7128 GB, free: 5.336 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001855/0.6515, allocations: 28.84 kB / 0.7128 GB, free: 5.305 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-05/0.6515, allocations: 23.92 kB / 0.7128 GB, free: 5.281 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001105/0.6526, allocations: 1.319 MB / 0.7141 GB, free: 3.828 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.6527, allocations: 0 / 0.7141 GB, free: 3.828 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003722/0.6564, allocations: 1.676 MB / 0.7157 GB, free: 2.113 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001108/0.6575, allocations: 418 kB / 0.7161 GB, free: 1.684 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005804/0.6581, allocations: 16 kB / 0.7161 GB, free: 1.668 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001521/0.6596, allocations: 123.9 kB / 0.7163 GB, free: 1.547 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001494/0.6598, allocations: 68.36 kB / 0.7163 GB, free: 1.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.35e-05/0.6599, allocations: 35.97 kB / 0.7164 GB, free: 1.445 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.00263/0.6625, allocations: 1.422 MB / 0.7178 GB, free: 12 kB / 0.545 GB Notification: Performance of sort global known variables: time 1.81e-07/0.6625, allocations: 0 / 0.7178 GB, free: 12 kB / 0.545 GB Notification: Performance of remove unused functions: time 0.003322/0.6659, allocations: 1.111 MB / 0.7188 GB, free: 14.9 MB / 0.5606 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 (75): * Single equations (assignments): 67 * 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.001534/0.6674, allocations: 0.6456 MB / 0.7195 GB, free: 14.26 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.004306/0.6717, allocations: 2.148 MB / 0.7216 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.6718, allocations: 0 / 0.7216 GB, free: 12.09 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.001283/0.6731, allocations: 0.5735 MB / 0.7221 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00598/0.679, allocations: 1.024 MB / 0.7231 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007211/0.6863, allocations: 4.676 MB / 0.7277 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.6875, allocations: 1.574 MB / 0.7292 GB, free: 4.148 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006601/0.6882, allocations: 183.4 kB / 0.7294 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of SimCode: time 1.002e-06/0.6882, allocations: 0 / 0.7294 GB, free: 3.969 MB / 0.5606 GB Notification: Performance of Templates: time 0.3603/1.048, allocations: 41.4 MB / 0.7698 GB, free: 150.8 MB / 0.5762 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)