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.001706/0.001706, allocations: 107.2 kB / 16.4 MB, free: 6.445 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.001928/0.001928, allocations: 195.9 kB / 17.34 MB, free: 5.719 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.349/1.349, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6943/0.6943, allocations: 115.3 MB / 406.5 MB, free: 6.121 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001252/0.001252, allocations: 67.19 kB / 0.5577 GB, free: 32.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1278/0.129, allocations: 76.18 MB / 0.6321 GB, free: 4.379 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.06539/0.1944, allocations: 67.41 MB / 0.6979 GB, free: 0.7305 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02555/0.22, allocations: 18.59 MB / 0.7161 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00377/0.2238, allocations: 95.5 kB / 0.7162 GB, free: 14 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.005858/0.2297, allocations: 1.978 MB / 0.7181 GB, free: 12.01 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.008948/0.2387, allocations: 2.82 MB / 0.7209 GB, free: 9.18 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006903/0.2456, allocations: 2.447 MB / 0.7232 GB, free: 6.746 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01312/0.2587, allocations: 8.262 MB / 0.7313 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003847/0.2626, allocations: 1.946 MB / 0.7332 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005638/0.2683, allocations: 2.149 MB / 0.7353 GB, free: 10.32 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002934/0.2713, allocations: 1.567 MB / 0.7368 GB, free: 8.746 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0007322/0.272, allocations: 200 kB / 0.737 GB, free: 8.551 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005002/0.277, allocations: 2.145 MB / 0.7391 GB, free: 6.402 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.00116/0.2782, allocations: 0.7046 MB / 0.7398 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002609/0.2808, allocations: 1.318 MB / 0.7411 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007677/0.2885, allocations: 4.249 MB / 0.7452 GB, free: 112 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.2886, allocations: 3.938 kB / 0.7453 GB, free: 108 kB / 0.5762 GB Notification: Performance of FrontEnd: time 1.684e-06/0.2886, allocations: 0 / 0.7453 GB, free: 108 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.468e-05/0.2887, allocations: 0 / 0.7453 GB, free: 108 kB / 0.5762 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.3371/0.6258, allocations: 3.096 MB / 0.7483 GB, free: 31.93 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.956e-05/0.6259, allocations: 9.812 kB / 0.7483 GB, free: 31.93 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002197/0.6281, allocations: 479.4 kB / 0.7487 GB, free: 31.79 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005292/0.6334, allocations: 2.876 MB / 0.7516 GB, free: 31.22 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-05/0.6335, allocations: 104.2 kB / 0.7516 GB, free: 31.22 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002124/0.6337, allocations: 138.6 kB / 0.7518 GB, free: 31.21 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002822/0.6365, allocations: 1.445 MB / 0.7532 GB, free: 30.97 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.799e-05/0.6366, allocations: 2.125 kB / 0.7532 GB, free: 30.97 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001227/0.6367, allocations: 53.44 kB / 0.7532 GB, free: 30.97 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-05/0.6368, allocations: 52.03 kB / 0.7533 GB, free: 30.96 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002615/0.6394, allocations: 1.123 MB / 0.7544 GB, free: 30.95 MB / 0.5762 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.009448/0.6489, allocations: 7.735 MB / 0.7619 GB, free: 26.61 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002201/0.6511, allocations: 1.276 MB / 0.7632 GB, free: 26 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/0.6521, allocations: 453.2 kB / 0.7636 GB, free: 25.98 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005202/0.6574, allocations: 2.707 MB / 0.7663 GB, free: 24.61 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001182/0.6586, allocations: 474.7 kB / 0.7667 GB, free: 24.52 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=62): time 2.334e-06/0.6586, allocations: 0 / 0.7667 GB, free: 24.52 MB / 0.5762 GB Notification: Performance of matching and sorting (n=62): time 0.003237/0.6618, allocations: 1.241 MB / 0.7679 GB, free: 24.25 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.6619, allocations: 115 kB / 0.768 GB, free: 24.12 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002835/0.6647, allocations: 2.074 MB / 0.7701 GB, free: 23.88 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 9.437e-05/0.6648, allocations: 42.2 kB / 0.7701 GB, free: 23.84 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007266/0.6656, allocations: 1.031 MB / 0.7711 GB, free: 23.5 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002019/0.6658, allocations: 229 kB / 0.7713 GB, free: 23.36 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003888/0.6662, allocations: 311.6 kB / 0.7716 GB, free: 23.33 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 3.922e-05/0.6662, allocations: 306.3 kB / 0.7719 GB, free: 23.03 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001023/0.6672, allocations: 0.5471 MB / 0.7725 GB, free: 23.02 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001252/0.6685, allocations: 0.9651 MB / 0.7734 GB, free: 22.54 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002198/0.6707, allocations: 1.426 MB / 0.7748 GB, free: 22.07 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.017e-05/0.6707, allocations: 2.75 kB / 0.7748 GB, free: 22.07 MB / 0.5762 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003321/0.6741, allocations: 1.741 MB / 0.7765 GB, free: 21.87 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.907e-05/0.6741, allocations: 44.14 kB / 0.7765 GB, free: 21.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.6741, allocations: 14.88 kB / 0.7766 GB, free: 21.84 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.906e-05/0.6742, allocations: 16.89 kB / 0.7766 GB, free: 21.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001042/0.6752, allocations: 296.7 kB / 0.7769 GB, free: 21.84 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.647e-05/0.6753, allocations: 32.78 kB / 0.7769 GB, free: 21.83 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001545/0.6768, allocations: 178.5 kB / 0.7771 GB, free: 21.76 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.228e-05/0.6769, allocations: 60.34 kB / 0.7771 GB, free: 21.76 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001601/0.6785, allocations: 0.9828 MB / 0.7781 GB, free: 21.66 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001174/0.6797, allocations: 0.9662 MB / 0.779 GB, free: 21.19 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001964/0.6817, allocations: 1.428 MB / 0.7804 GB, free: 20.73 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.985e-06/0.6817, allocations: 6.281 kB / 0.7804 GB, free: 20.73 MB / 0.5762 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.00294/0.6847, allocations: 1.741 MB / 0.7821 GB, free: 20.53 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.922e-05/0.6847, allocations: 39.36 kB / 0.7822 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.278e-05/0.6847, allocations: 12.69 kB / 0.7822 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.47e-05/0.6847, allocations: 18.34 kB / 0.7822 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/0.6858, allocations: 299.2 kB / 0.7825 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.6858, allocations: 26.23 kB / 0.7825 GB, free: 20.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001426/0.6872, allocations: 155.2 kB / 0.7826 GB, free: 20.45 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.418e-05/0.6873, allocations: 62.3 kB / 0.7827 GB, free: 20.45 MB / 0.5762 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.0002982/0.6876, allocations: 264.5 kB / 0.783 GB, free: 20.26 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002735/0.6879, allocations: 206.5 kB / 0.7831 GB, free: 20.14 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002301/0.6902, allocations: 1.075 MB / 0.7842 GB, free: 20.04 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.29e-05/0.6903, allocations: 10.66 kB / 0.7842 GB, free: 20.04 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.6903, allocations: 0 / 0.7842 GB, free: 20.04 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001648/0.6919, allocations: 0.7742 MB / 0.785 GB, free: 19.95 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004689/0.6966, allocations: 2.893 MB / 0.7878 GB, free: 19.33 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.702e-06/0.6966, allocations: 4.406 kB / 0.7878 GB, free: 19.33 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007169/0.6974, allocations: 164 kB / 0.7879 GB, free: 19.33 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001515/0.6975, allocations: 25.55 kB / 0.788 GB, free: 19.32 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.46e-05/0.6976, allocations: 24.31 kB / 0.788 GB, free: 19.32 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000729/0.6983, allocations: 1.427 MB / 0.7894 GB, free: 17.97 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.6983, allocations: 5.562 kB / 0.7894 GB, free: 17.97 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002868/0.7012, allocations: 1.601 MB / 0.791 GB, free: 17.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007263/0.702, allocations: 407.2 kB / 0.7913 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000229/0.7022, allocations: 18.72 kB / 0.7914 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009713/0.7032, allocations: 72.03 kB / 0.7914 GB, free: 17.38 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001069/0.7033, allocations: 60.62 kB / 0.7915 GB, free: 17.37 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.1e-05/0.7034, allocations: 38.84 kB / 0.7915 GB, free: 17.37 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00173/0.7051, allocations: 1.453 MB / 0.7929 GB, free: 17.23 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.01e-07/0.7051, allocations: 4 kB / 0.793 GB, free: 17.22 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0025/0.7076, allocations: 1.11 MB / 0.794 GB, free: 17.04 MB / 0.5762 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.001163/0.7088, allocations: 0.6604 MB / 0.7947 GB, free: 16.84 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.003524/0.7123, allocations: 2.082 MB / 0.7967 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.927e-06/0.7123, allocations: 3.938 kB / 0.7967 GB, free: 16.13 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.7134, allocations: 0.5391 MB / 0.7972 GB, free: 15.9 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003993/0.7174, allocations: 1.106 MB / 0.7983 GB, free: 15.57 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005132/0.7225, allocations: 3.708 MB / 0.8019 GB, free: 13.3 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007827/0.7233, allocations: 1.572 MB / 0.8035 GB, free: 11.98 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001963/0.7253, allocations: 0.5294 MB / 0.804 GB, free: 11.59 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000384/0.7257, allocations: 177.3 kB / 0.8042 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of SimCode: time 5.41e-07/0.7257, allocations: 0 / 0.8042 GB, free: 11.43 MB / 0.5762 GB Notification: Performance of Templates: time 0.06438/0.7901, allocations: 43.3 MB / 0.8465 GB, free: 1.066 MB / 0.6075 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)