Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009767/0.0009767, allocations: 87.11 kB / 15.06 MB, free: 1.09 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.0009994/0.0009998, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.702/1.702, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.3782/0.3782, allocations: 40 MB / 310.4 MB, free: 9.629 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: ModelicaTest requested package Modelica of version 3.2.2. Modelica 3.2.3 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009563/0.0009564, allocations: 16 kB / 378.8 MB, free: 12.34 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1605/0.1615, allocations: 57.97 MB / 436.8 MB, free: 2.27 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph): time 0.3383/0.4998, allocations: 36.62 MB / 473.4 MB, free: 33.11 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02101/0.5209, allocations: 18.86 MB / 492.3 MB, free: 19.76 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001856/0.5228, allocations: 31.06 kB / 492.3 MB, free: 19.74 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00138/0.5242, allocations: 371.5 kB / 492.7 MB, free: 19.54 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:788:36-789:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:786:36-787:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01507/0.5393, allocations: 4.068 MB / 496.8 MB, free: 17.67 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007502/0.5468, allocations: 2.016 MB / 498.8 MB, free: 16.62 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003373/0.5502, allocations: 2.379 MB / 0.4894 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009414/0.5512, allocations: 422.7 kB / 0.4898 GB, free: 15.55 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0142/0.5654, allocations: 6.417 MB / 0.4961 GB, free: 14.63 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01678/0.5822, allocations: 9.104 MB / 0.505 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003318/0.5826, allocations: 36.19 kB / 0.505 GB, free: 13.54 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01804/0.6007, allocations: 6.947 MB / 0.5118 GB, free: 11.86 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007293/0.6014, allocations: 250 kB / 0.512 GB, free: 11.62 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005261/0.602, allocations: 185.3 kB / 0.5122 GB, free: 11.44 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007853/0.6098, allocations: 3.477 MB / 0.5156 GB, free: 7.953 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.6099, allocations: 0 / 0.5156 GB, free: 7.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.526e-06/0.6099, allocations: 0 / 0.5156 GB, free: 7.953 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.6099, allocations: 0 / 0.5156 GB, free: 7.953 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 160 * Number of variables: 160 Notification: Performance of Generate backend data structure: time 0.004619/0.6145, allocations: 1.504 MB / 0.5171 GB, free: 6.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.95e-05/0.6146, allocations: 12.03 kB / 0.5171 GB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002012/0.6166, allocations: 314.7 kB / 0.5174 GB, free: 6.082 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000765/0.6174, allocations: 0.5395 MB / 0.5179 GB, free: 5.5 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/0.6175, allocations: 112.7 kB / 0.518 GB, free: 5.379 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.355e-05/0.6176, allocations: 59.94 kB / 0.5181 GB, free: 5.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002017/0.6196, allocations: 1.171 MB / 0.5192 GB, free: 4.047 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.391e-05/0.6197, allocations: 11.89 kB / 0.5192 GB, free: 4.035 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.46e-05/0.6198, allocations: 27.94 kB / 0.5192 GB, free: 4.008 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.271e-05/0.6198, allocations: 41.3 kB / 0.5193 GB, free: 3.969 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.6212, allocations: 0.844 MB / 0.5201 GB, free: 3.125 MB / 382.1 MB 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.005532/0.6267, allocations: 5.508 MB / 0.5255 GB, free: 13.25 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/0.6281, allocations: 0.5824 MB / 0.5261 GB, free: 12.65 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003766/0.6285, allocations: 225.6 kB / 0.5263 GB, free: 12.42 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08752/0.716, allocations: 46.61 MB / 0.5718 GB, free: 8.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.575e-05/0.7162, allocations: 42.56 kB / 0.5718 GB, free: 8.449 MB / 446.1 MB Notification: Performance of pre-optimization done (n=42): time 4.748e-06/0.7162, allocations: 0 / 0.5718 GB, free: 8.449 MB / 446.1 MB Notification: Performance of matching and sorting (n=46): time 0.005833/0.7221, allocations: 1.942 MB / 0.5737 GB, free: 6.453 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.901e-05/0.7222, allocations: 162.2 kB / 0.5739 GB, free: 6.258 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008498/0.723, allocations: 0.6171 MB / 0.5745 GB, free: 5.633 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.693e-05/0.7231, allocations: 41.69 kB / 0.5745 GB, free: 5.586 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002732/0.7234, allocations: 395.2 kB / 0.5749 GB, free: 5.195 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000149/0.7236, allocations: 173.6 kB / 0.5751 GB, free: 5.023 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.423e-05/0.7236, allocations: 16 kB / 0.5751 GB, free: 5.008 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001596/0.7238, allocations: 378.8 kB / 0.5754 GB, free: 4.629 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003679/0.7241, allocations: 221.9 kB / 0.5757 GB, free: 4.41 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006151/0.7248, allocations: 0.5639 MB / 0.5762 GB, free: 3.68 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005046/0.7253, allocations: 324.5 kB / 0.5765 GB, free: 3.367 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.7253, allocations: 4 kB / 0.5765 GB, free: 3.363 MB / 446.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001422/0.7267, allocations: 0.8597 MB / 0.5774 GB, free: 2.492 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.541e-05/0.7268, allocations: 12 kB / 0.5774 GB, free: 2.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.298e-05/0.7268, allocations: 15.98 kB / 0.5774 GB, free: 2.465 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003122/0.7271, allocations: 68.83 kB / 0.5774 GB, free: 2.395 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.7283, allocations: 283.6 kB / 0.5777 GB, free: 2.117 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001547/0.7298, allocations: 1.979 MB / 0.5797 GB, free: 15.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005655/0.7304, allocations: 56.06 kB / 0.5797 GB, free: 15.93 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.036e-05/0.7305, allocations: 40 kB / 0.5797 GB, free: 15.89 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 10 (volume.medium.phase,ambient.medium.phase,fixedMassFlowRate.medium.phase,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1],shortPipe.flowModel.states[2].phase,shortPipe.flowModel.states[1].phase,ambient.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (95): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003947/0.7309, allocations: 277.4 kB / 0.58 GB, free: 15.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001447/0.731, allocations: 75.11 kB / 0.5801 GB, free: 15.53 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002472/0.7335, allocations: 2.228 MB / 0.5823 GB, free: 13.29 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.55e-05/0.7336, allocations: 27.95 kB / 0.5823 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.7336, allocations: 0 / 0.5823 GB, free: 13.27 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.744e-06/0.7336, allocations: 11.92 kB / 0.5823 GB, free: 13.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00379/0.7374, allocations: 3.288 MB / 0.5855 GB, free: 9.891 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/0.7374, allocations: 0 / 0.5855 GB, free: 9.891 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000882/0.7383, allocations: 191.8 kB / 0.5857 GB, free: 9.703 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004115/0.7387, allocations: 92.69 kB / 0.5858 GB, free: 9.609 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.284e-05/0.7388, allocations: 11.98 kB / 0.5858 GB, free: 9.598 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001581/0.7404, allocations: 1.993 MB / 0.5877 GB, free: 7.449 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.7404, allocations: 3.953 kB / 0.5877 GB, free: 7.445 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00234/0.7427, allocations: 1.986 MB / 0.5897 GB, free: 5.438 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005331/0.7433, allocations: 283.2 kB / 0.5899 GB, free: 5.141 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001484/0.7434, allocations: 12 kB / 0.59 GB, free: 5.129 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006066/0.7441, allocations: 63.86 kB / 0.59 GB, free: 5.066 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.291e-05/0.7442, allocations: 38.34 kB / 0.5901 GB, free: 5.031 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.309e-05/0.7442, allocations: 19.98 kB / 0.5901 GB, free: 5.012 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0007931/0.745, allocations: 0.5068 MB / 0.5906 GB, free: 4.504 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.745, allocations: 0 / 0.5906 GB, free: 4.504 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003898/0.7489, allocations: 1.089 MB / 0.5916 GB, free: 3.414 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 16 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006539/0.7555, allocations: 1.214 MB / 0.5928 GB, free: 2.203 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002149/0.7577, allocations: 0.924 MB / 0.5937 GB, free: 1.285 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.133e-06/0.7577, allocations: 4.062 kB / 0.5937 GB, free: 1.281 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001258/0.7589, allocations: 0.6755 MB / 0.5944 GB, free: 0.6016 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002008/0.761, allocations: 386.1 kB / 0.5948 GB, free: 240 kB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003856/0.7648, allocations: 2.712 MB / 0.5974 GB, free: 13.49 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008162/0.7657, allocations: 1.114 MB / 0.5985 GB, free: 12.34 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001033/0.7667, allocations: 441.8 kB / 0.5989 GB, free: 11.91 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001679/0.7669, allocations: 63.44 kB / 0.599 GB, free: 11.84 MB / 478.1 MB Notification: Performance of SimCode: time 1.152e-06/0.7669, allocations: 0 / 0.599 GB, free: 11.84 MB / 478.1 MB Notification: Performance of Templates: time 0.3479/1.115, allocations: 45.23 MB / 0.6431 GB, free: 149.1 MB / 494.1 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.makefile Environment - environmentSimulation: (rm -f ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.sim & ./ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Media.TestsWithFluid.MediaTestModels.Water.WaterIF97OnePhase_ph.pipe 2>&1) Environment - environmentSimulation: