Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json 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/IDEAS 3.0.0/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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) Running command: translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001482/0.001482, allocations: 183.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7463/0.7463, allocations: 132.2 MB / 148.9 MB, free: 12.15 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 222.9 MB / 403.4 MB, free: 7.059 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009565/0.0009565, allocations: 105.4 kB / 484.3 MB, free: 8.703 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001013/0.001013, allocations: 55.86 kB / 0.5618 GB, free: 71.03 MB / 426.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1236, allocations: 80.19 MB / 0.6402 GB, free: 6.762 MB / 442.7 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.3317/0.4554, allocations: 66.54 MB / 0.7051 GB, free: 11.61 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.02329/0.4787, allocations: 16.84 MB / 0.7216 GB, free: 11.07 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003737/0.4825, allocations: 88.88 kB / 0.7217 GB, free: 11.07 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003342/0.4858, allocations: 0.991 MB / 0.7226 GB, free: 10.87 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007874/0.4938, allocations: 2.449 MB / 0.725 GB, free: 9.832 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007297/0.5011, allocations: 2.082 MB / 0.7271 GB, free: 8.914 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.009557/0.5106, allocations: 7.018 MB / 0.7339 GB, free: 6.469 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004117/0.5148, allocations: 1.622 MB / 0.7355 GB, free: 5.789 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005334/0.5202, allocations: 1.812 MB / 0.7373 GB, free: 5.102 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004181/0.5244, allocations: 1.511 MB / 0.7387 GB, free: 4.438 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001014/0.5254, allocations: 101.3 kB / 0.7388 GB, free: 4.434 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008424/0.5339, allocations: 1.854 MB / 0.7406 GB, free: 3.5 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001751/0.5357, allocations: 471 kB / 0.7411 GB, free: 3.18 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004529/0.5402, allocations: 1.047 MB / 0.7421 GB, free: 2.504 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01046/0.5507, allocations: 3.534 MB / 0.7456 GB, free: 288 kB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/0.5507, allocations: 3.844 kB / 0.7456 GB, free: 288 kB / 490.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5508, allocations: 0 / 0.7456 GB, free: 288 kB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0001395/0.5509, allocations: 0 / 0.7456 GB, free: 288 kB / 490.7 MB 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.007074/0.558, allocations: 2.677 MB / 0.7482 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.558, allocations: 8.844 kB / 0.7482 GB, free: 14.3 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001873/0.5599, allocations: 371 kB / 0.7486 GB, free: 14.13 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004252/0.5642, allocations: 1.817 MB / 0.7503 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000406/0.5646, allocations: 160.3 kB / 0.7505 GB, free: 12.73 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003029/0.5649, allocations: 128 kB / 0.7506 GB, free: 12.7 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003131/0.5681, allocations: 1.439 MB / 0.752 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.419e-05/0.5681, allocations: 1.969 kB / 0.752 GB, free: 11.76 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/0.5683, allocations: 47.12 kB / 0.7521 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.874e-05/0.5683, allocations: 48.31 kB / 0.7521 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002669/0.571, allocations: 1.112 MB / 0.7532 GB, free: 11.17 MB / 0.4948 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.01073/0.5818, allocations: 7.355 MB / 0.7604 GB, free: 4.004 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.584, allocations: 1.313 MB / 0.7617 GB, free: 2.578 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001026/0.5851, allocations: 454.6 kB / 0.7621 GB, free: 2.133 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005663/0.5908, allocations: 2.64 MB / 0.7647 GB, free: 15.29 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001127/0.5919, allocations: 0.4938 MB / 0.7651 GB, free: 14.78 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007041/0.5926, allocations: 83.34 kB / 0.7652 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=64): time 3.727e-06/0.5927, allocations: 0 / 0.7652 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of matching and sorting (n=64): time 0.003359/0.596, allocations: 1.217 MB / 0.7664 GB, free: 13.45 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.619e-05/0.5961, allocations: 111.4 kB / 0.7665 GB, free: 13.32 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002376/0.5985, allocations: 1.457 MB / 0.7679 GB, free: 11.86 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.68e-05/0.5986, allocations: 45.64 kB / 0.768 GB, free: 11.81 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007951/0.5994, allocations: 0.8991 MB / 0.7689 GB, free: 10.9 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002906/0.5997, allocations: 231.3 kB / 0.7691 GB, free: 10.68 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004111/0.6001, allocations: 206.4 kB / 0.7693 GB, free: 10.47 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.6003, allocations: 349.9 kB / 0.7696 GB, free: 10.12 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001014/0.6013, allocations: 381.5 kB / 0.77 GB, free: 9.754 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001277/0.6026, allocations: 0.7273 MB / 0.7707 GB, free: 8.867 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002107/0.6047, allocations: 1.101 MB / 0.7718 GB, free: 7.633 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.6047, allocations: 4 kB / 0.7718 GB, free: 7.629 MB / 0.5105 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002785/0.6075, allocations: 1.278 MB / 0.773 GB, free: 6.34 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.397e-05/0.6076, allocations: 45.78 kB / 0.7731 GB, free: 6.289 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.711e-05/0.6076, allocations: 8 kB / 0.7731 GB, free: 6.281 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.88e-05/0.6076, allocations: 16 kB / 0.7731 GB, free: 6.266 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009451/0.6086, allocations: 251.6 kB / 0.7733 GB, free: 6.023 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.807e-05/0.6086, allocations: 31.86 kB / 0.7734 GB, free: 5.992 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001345/0.61, allocations: 120.4 kB / 0.7735 GB, free: 5.875 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001041/0.6101, allocations: 55.97 kB / 0.7735 GB, free: 5.82 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.00146/0.6116, allocations: 0.6899 MB / 0.7742 GB, free: 5.129 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001147/0.6127, allocations: 0.7125 MB / 0.7749 GB, free: 4.266 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002003/0.6147, allocations: 1.066 MB / 0.7759 GB, free: 3.055 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.388e-05/0.6148, allocations: 7.938 kB / 0.7759 GB, free: 3.047 MB / 0.5105 GB Notification: Performance of matching and sorting (n=124) (initialization_lambda0): time 0.002796/0.6176, allocations: 1.254 MB / 0.7772 GB, free: 1.777 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.6176, allocations: 37.7 kB / 0.7772 GB, free: 1.734 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.6176, allocations: 8 kB / 0.7772 GB, free: 1.727 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.834e-05/0.6177, allocations: 16 kB / 0.7772 GB, free: 1.711 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009291/0.6186, allocations: 256.1 kB / 0.7775 GB, free: 1.461 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.317e-05/0.6186, allocations: 15.94 kB / 0.7775 GB, free: 1.445 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001347/0.62, allocations: 124.5 kB / 0.7776 GB, free: 1.324 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.536e-05/0.6201, allocations: 51.98 kB / 0.7777 GB, free: 1.273 MB / 0.5105 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.0002857/0.6204, allocations: 243.9 kB / 0.7779 GB, free: 1.027 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003742/0.6208, allocations: 173.8 kB / 0.778 GB, free: 0.8555 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002638/0.6234, allocations: 1.076 MB / 0.7791 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.6235, allocations: 8 kB / 0.7791 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.247e-06/0.6235, allocations: 0 / 0.7791 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001756/0.6252, allocations: 0.8003 MB / 0.7799 GB, free: 14.94 MB / 0.5261 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.005179/0.6304, allocations: 2.672 MB / 0.7825 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/0.6304, allocations: 0 / 0.7825 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007445/0.6312, allocations: 156 kB / 0.7826 GB, free: 12.05 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/0.6314, allocations: 40.77 kB / 0.7827 GB, free: 12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-05/0.6315, allocations: 23.61 kB / 0.7827 GB, free: 11.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009576/0.6324, allocations: 1.319 MB / 0.784 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.6324, allocations: 3.938 kB / 0.784 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01725/0.6497, allocations: 8.298 MB / 0.7921 GB, free: 1.922 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007881/0.6505, allocations: 350.6 kB / 0.7924 GB, free: 1.559 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003609/0.6509, allocations: 20 kB / 0.7925 GB, free: 1.539 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001159/0.6521, allocations: 115.8 kB / 0.7926 GB, free: 1.426 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.6522, allocations: 64.42 kB / 0.7926 GB, free: 1.363 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.6523, allocations: 31.98 kB / 0.7927 GB, free: 1.332 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.001773/0.6541, allocations: 1.054 MB / 0.7937 GB, free: 260 kB / 0.5261 GB Notification: Performance of sort global known variables: time 2.3e-07/0.6541, allocations: 0 / 0.7937 GB, free: 260 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.00482/0.659, allocations: 1.369 MB / 0.795 GB, free: 14.88 MB / 0.5417 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.001369/0.6604, allocations: 0.5105 MB / 0.7955 GB, free: 14.4 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.003593/0.664, allocations: 1.593 MB / 0.7971 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.664, allocations: 0.5 kB / 0.7971 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.001237/0.6652, allocations: 0.5567 MB / 0.7976 GB, free: 12.21 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004296/0.6695, allocations: 0.8505 MB / 0.7985 GB, free: 11.37 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006668/0.6762, allocations: 4.402 MB / 0.8028 GB, free: 6.883 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001266/0.6775, allocations: 1.425 MB / 0.8041 GB, free: 5.426 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 0.002146/0.6797, allocations: 434.5 kB / 0.8046 GB, free: 4.996 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004904/0.6802, allocations: 143.3 kB / 0.8047 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of SimCode: time 7.41e-07/0.6802, allocations: 0 / 0.8047 GB, free: 4.859 MB / 0.5417 GB Notification: Performance of Templates: time 0.05671/0.7369, allocations: 35.34 MB / 0.8392 GB, free: 1.945 MB / 0.573 GB make -j1 -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)