Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001163/0.001163, allocations: 179.2 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.244/1.244, allocations: 194.5 MB / 211.6 MB, free: 3.051 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001586/0.001586, allocations: 112.1 kB / 256.9 MB, free: 4.344 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003002/0.0003002, allocations: 8 kB / 310.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08499/0.0853, allocations: 44.5 MB / 355.1 MB, free: 2.344 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.837/4.923, allocations: 2.628 GB / 2.975 GB, free: 111.8 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002281/4.923, allocations: 80.73 kB / 2.975 GB, free: 111.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.831/6.754, allocations: 0.5476 GB / 3.522 GB, free: 37.79 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.864e-06/6.754, allocations: 0 / 3.522 GB, free: 37.79 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001183/6.754, allocations: 42.86 kB / 3.522 GB, free: 37.79 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.01065/6.765, allocations: 2.987 MB / 3.525 GB, free: 36.32 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.609e-05/6.765, allocations: 7.312 kB / 3.525 GB, free: 36.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004275/6.769, allocations: 0.5973 MB / 3.526 GB, free: 36.23 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003608/6.773, allocations: 1.462 MB / 3.527 GB, free: 35.86 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001394/6.773, allocations: 147.7 kB / 3.527 GB, free: 35.85 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002298/6.773, allocations: 139.5 kB / 3.528 GB, free: 35.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005203/6.778, allocations: 2.821 MB / 3.53 GB, free: 35.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.419e-05/6.778, allocations: 7.219 kB / 3.53 GB, free: 35.4 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000183/6.779, allocations: 65.59 kB / 3.53 GB, free: 35.4 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001434/6.779, allocations: 137.2 kB / 3.53 GB, free: 35.4 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005417/6.784, allocations: 2.642 MB / 3.533 GB, free: 35.38 MB / 426.7 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.01352/6.798, allocations: 11.95 MB / 3.545 GB, free: 27.98 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003916/6.802, allocations: 1.738 MB / 3.546 GB, free: 27.94 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008494/6.81, allocations: 5.732 MB / 3.552 GB, free: 23.89 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.6e-05/6.81, allocations: 48.38 kB / 3.552 GB, free: 23.85 MB / 426.7 MB Notification: Performance of pre-optimization done (n=108): time 2.865e-06/6.81, allocations: 0 / 3.552 GB, free: 23.85 MB / 426.7 MB Notification: Performance of matching and sorting (n=124): time 0.01689/6.827, allocations: 7.132 MB / 3.559 GB, free: 21.85 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/6.827, allocations: 143.9 kB / 3.559 GB, free: 21.69 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001472/6.829, allocations: 1.022 MB / 3.56 GB, free: 21.28 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001064/6.829, allocations: 47.83 kB / 3.56 GB, free: 21.23 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004453/6.829, allocations: 0.7682 MB / 3.561 GB, free: 20.63 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002784/6.83, allocations: 432.9 kB / 3.561 GB, free: 20.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.774e-05/6.83, allocations: 35.81 kB / 3.561 GB, free: 20.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001006/6.83, allocations: 378.1 kB / 3.562 GB, free: 19.94 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001438/6.831, allocations: 0.8758 MB / 3.563 GB, free: 19.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001629/6.833, allocations: 1.322 MB / 3.564 GB, free: 18.82 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.266/9.099, allocations: 377.7 MB / 3.933 GB, free: 13.03 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/9.099, allocations: 4 kB / 3.933 GB, free: 13.03 MB / 474.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.2671/9.366, allocations: 2.703 MB / 3.935 GB, free: 84.99 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001283/9.368, allocations: 5.151 MB / 3.94 GB, free: 79.66 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.154e-05/9.368, allocations: 18.98 kB / 3.94 GB, free: 79.65 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001735/9.37, allocations: 0.5023 MB / 3.941 GB, free: 79.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/9.371, allocations: 392.5 kB / 3.941 GB, free: 79.62 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001753/9.373, allocations: 2.861 MB / 3.944 GB, free: 77.55 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002388/9.376, allocations: 208 kB / 3.944 GB, free: 77.55 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001672/9.376, allocations: 87.72 kB / 3.944 GB, free: 77.55 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/9.376, allocations: 4.75 kB / 3.944 GB, free: 77.55 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004638/9.38, allocations: 2.52 MB / 3.947 GB, free: 77.5 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.974e-05/9.38, allocations: 10.56 kB / 3.947 GB, free: 77.5 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001454/9.382, allocations: 0.5036 MB / 3.947 GB, free: 77.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00136/9.383, allocations: 393 kB / 3.948 GB, free: 77.47 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00186/9.385, allocations: 2.874 MB / 3.951 GB, free: 75.4 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001774/9.387, allocations: 206.1 kB / 3.951 GB, free: 75.4 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001811/9.387, allocations: 76.17 kB / 3.951 GB, free: 75.4 MB / 474.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization sytem: circular_pipe.mediums[1].p = 1000000.0 annulus_pipe.mediums[1].p = 1000000.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 11 (boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase,annulus_pipe.state_b.phase,annulus_pipe.state_a.phase,circular_pipe.state_b.phase,circular_pipe.state_a.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001283/9.388, allocations: 0.6019 MB / 3.951 GB, free: 75.21 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004044/9.389, allocations: 136.6 kB / 3.952 GB, free: 75.21 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007332/9.396, allocations: 5.457 MB / 3.957 GB, free: 74.86 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.552e-05/9.396, allocations: 64.83 kB / 3.957 GB, free: 74.86 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.139e-05/9.396, allocations: 0 / 3.957 GB, free: 74.86 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005787/9.402, allocations: 5 MB / 3.962 GB, free: 74.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0122/9.414, allocations: 8.009 MB / 3.97 GB, free: 73.51 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/9.414, allocations: 2.969 kB / 3.97 GB, free: 73.51 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001182/9.415, allocations: 288.2 kB / 3.97 GB, free: 73.51 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001998/9.417, allocations: 0.5658 MB / 3.971 GB, free: 73.48 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001328/9.418, allocations: 41.91 kB / 3.971 GB, free: 73.48 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001989/9.42, allocations: 2.946 MB / 3.973 GB, free: 71.41 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/9.42, allocations: 0 / 3.973 GB, free: 71.41 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007277/9.427, allocations: 5.32 MB / 3.979 GB, free: 71.01 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001382/9.428, allocations: 0.5213 MB / 3.979 GB, free: 70.79 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005562/9.429, allocations: 28.19 kB / 3.979 GB, free: 70.79 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001823/9.431, allocations: 159.5 kB / 3.979 GB, free: 70.79 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003014/9.431, allocations: 118.7 kB / 3.979 GB, free: 70.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001287/9.431, allocations: 49.64 kB / 3.979 GB, free: 70.79 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.002122/9.433, allocations: 0.8187 MB / 3.98 GB, free: 70.68 MB / 474.7 MB Notification: Performance of sort global known variables: time 2.5e-07/9.433, allocations: 0 / 3.98 GB, free: 70.68 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.009964/9.443, allocations: 2.174 MB / 3.982 GB, free: 70.68 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 6 (circular_pipe.mediums[1].h,circular_pipe.mediums[2].p,circular_pipe.mediums[2].h,annulus_pipe.mediums[1].h,annulus_pipe.mediums[2].p,annulus_pipe.mediums[2].h) * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$cse21.phase,$cse21.region,boundary.medium.phase,massflowsink1.medium.phase,massflowsink2.medium.phase,circular_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,annulus_pipe.statesFM[2].phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 8,1 1,2 8,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01359/9.457, allocations: 2.222 MB / 3.985 GB, free: 70.53 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.00779/9.465, allocations: 3.862 MB / 3.988 GB, free: 70.47 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 6.251e-06/9.465, allocations: 0 / 3.988 GB, free: 70.47 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00241/9.467, allocations: 1.706 MB / 3.99 GB, free: 70.46 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003074/9.47, allocations: 0.6203 MB / 3.991 GB, free: 70.45 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1374/9.608, allocations: 81.47 MB / 4.07 GB, free: 53.88 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001749/9.61, allocations: 1.805 MB / 4.072 GB, free: 52.41 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.003787/9.613, allocations: 1.93 MB / 4.074 GB, free: 51.27 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004993/9.614, allocations: 127.3 kB / 4.074 GB, free: 51.14 MB / 474.7 MB Notification: Performance of SimCode: time 1.453e-06/9.614, allocations: 4 kB / 4.074 GB, free: 51.14 MB / 474.7 MB Notification: Performance of Templates: time 0.3405/9.954, allocations: 65.34 MB / 4.138 GB, free: 81.91 MB / 474.7 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1)