Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009549/0.0009549, allocations: 169.9 kB / 12.72 MB, free: 2.594 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.615/1.615, allocations: 170.6 MB / 183.8 MB, free: 11.48 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001934/0.001934, allocations: 110.2 kB / 223.2 MB, free: 4.109 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.712e-05/2.714e-05, allocations: 0 / 268.9 MB, free: 20.94 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.08996, allocations: 38.77 MB / 307.6 MB, free: 14.14 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.837/5.927, allocations: 2.518 GB / 2.819 GB, free: 94.81 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000239/5.928, allocations: 74.61 kB / 2.819 GB, free: 94.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.256/8.184, allocations: 0.5339 GB / 3.353 GB, free: 25.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.433e-06/8.184, allocations: 8.984 kB / 3.353 GB, free: 25.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001249/8.184, allocations: 44.33 kB / 3.353 GB, free: 25.45 MB / 378.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.01212/8.196, allocations: 2.735 MB / 3.355 GB, free: 24.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.114e-05/8.196, allocations: 12.72 kB / 3.355 GB, free: 24.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005735/8.202, allocations: 0.5828 MB / 3.356 GB, free: 24.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004318/8.207, allocations: 1.457 MB / 3.357 GB, free: 23.76 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001659/8.207, allocations: 142.2 kB / 3.357 GB, free: 23.76 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003183/8.207, allocations: 151 kB / 3.358 GB, free: 23.75 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005623/8.213, allocations: 2.774 MB / 3.36 GB, free: 23.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.974e-05/8.213, allocations: 7.656 kB / 3.36 GB, free: 23.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001951/8.213, allocations: 62.34 kB / 3.36 GB, free: 23.31 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001472/8.213, allocations: 133.4 kB / 3.36 GB, free: 23.3 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004797/8.218, allocations: 2.485 MB / 3.363 GB, free: 23.29 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or 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.01548/8.233, allocations: 11.96 MB / 3.375 GB, free: 15.96 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003562/8.237, allocations: 1.609 MB / 3.376 GB, free: 15.93 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001035/8.238, allocations: 0.7201 MB / 3.377 GB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01089/8.249, allocations: 5.679 MB / 3.382 GB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.829e-05/8.249, allocations: 57.11 kB / 3.382 GB, free: 11.82 MB / 378.7 MB Notification: Performance of pre-optimization done (n=108): time 3.426e-06/8.249, allocations: 0 / 3.382 GB, free: 11.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=124): time 0.01619/8.265, allocations: 5.893 MB / 3.388 GB, free: 11.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/8.265, allocations: 144.3 kB / 3.388 GB, free: 10.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001488/8.267, allocations: 1.008 MB / 3.389 GB, free: 10.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001403/8.267, allocations: 51.08 kB / 3.389 GB, free: 10.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004377/8.268, allocations: 0.7554 MB / 3.39 GB, free: 10.42 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003184/8.268, allocations: 434.4 kB / 3.391 GB, free: 10.15 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.713e-05/8.268, allocations: 33.5 kB / 3.391 GB, free: 10.15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/8.268, allocations: 374.4 kB / 3.391 GB, free: 9.844 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001001/8.269, allocations: 0.7616 MB / 3.392 GB, free: 9.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/8.27, allocations: 1.207 MB / 3.393 GB, free: 9.332 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.394/10.66, allocations: 378.4 MB / 3.762 GB, free: 18.53 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.451e-05/10.66, allocations: 0 / 3.762 GB, free: 18.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.004675/10.67, allocations: 2.488 MB / 3.765 GB, free: 16.85 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001174/10.67, allocations: 5.14 MB / 3.77 GB, free: 11.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.334e-05/10.67, allocations: 12 kB / 3.77 GB, free: 11.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001699/10.67, allocations: 0.4925 MB / 3.77 GB, free: 10.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/10.67, allocations: 396.2 kB / 3.771 GB, free: 10.64 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002492/10.68, allocations: 2.865 MB / 3.774 GB, free: 7.969 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00205/10.68, allocations: 211.6 kB / 3.774 GB, free: 7.805 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002006/10.68, allocations: 80.73 kB / 3.774 GB, free: 7.742 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.209e-05/10.68, allocations: 4 kB / 3.774 GB, free: 7.738 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004092/10.68, allocations: 2.291 MB / 3.776 GB, free: 6.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.166e-05/10.68, allocations: 12 kB / 3.776 GB, free: 6.168 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001582/10.68, allocations: 0.491 MB / 3.777 GB, free: 5.766 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001436/10.69, allocations: 390.1 kB / 3.777 GB, free: 5.422 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2953/10.98, allocations: 2.867 MB / 3.78 GB, free: 69.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002443/10.98, allocations: 205.4 kB / 3.78 GB, free: 69.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002032/10.98, allocations: 80.09 kB / 3.78 GB, free: 69.46 MB / 426.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 () * 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.0006147/10.98, allocations: 211.3 kB / 3.78 GB, free: 69.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004106/10.98, allocations: 137.6 kB / 3.78 GB, free: 69.35 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007482/10.99, allocations: 5.358 MB / 3.786 GB, free: 68.99 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.454e-05/10.99, allocations: 66.3 kB / 3.786 GB, free: 68.99 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/10.99, allocations: 7.656 kB / 3.786 GB, free: 68.99 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005723/11, allocations: 4.895 MB / 3.79 GB, free: 68.24 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0126/11.01, allocations: 7.901 MB / 3.798 GB, free: 67.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.684e-06/11.01, allocations: 1.875 kB / 3.798 GB, free: 67.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00105/11.01, allocations: 285.3 kB / 3.798 GB, free: 67.64 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001724/11.01, allocations: 0.5518 MB / 3.799 GB, free: 67.61 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001101/11.01, allocations: 44 kB / 3.799 GB, free: 67.61 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001806/11.02, allocations: 2.936 MB / 3.802 GB, free: 65.54 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/11.02, allocations: 0 / 3.802 GB, free: 65.54 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006715/11.02, allocations: 4.981 MB / 3.807 GB, free: 65.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001329/11.02, allocations: 0.5117 MB / 3.807 GB, free: 64.94 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002169/11.02, allocations: 39.19 kB / 3.807 GB, free: 64.94 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/11.02, allocations: 158.8 kB / 3.807 GB, free: 64.93 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002631/11.03, allocations: 120.8 kB / 3.808 GB, free: 64.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.863e-05/11.03, allocations: 42.34 kB / 3.808 GB, free: 64.93 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001169/11.03, allocations: 0.8114 MB / 3.808 GB, free: 64.81 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.72e-07/11.03, allocations: 0 / 3.808 GB, free: 64.81 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.008753/11.04, allocations: 2.166 MB / 3.81 GB, free: 64.81 MB / 426.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 () * 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.01292/11.05, allocations: 2.224 MB / 3.813 GB, free: 64.63 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.006935/11.06, allocations: 3.55 MB / 3.816 GB, free: 64.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.265e-06/11.06, allocations: 2.625 kB / 3.816 GB, free: 64.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002456/11.06, allocations: 1.602 MB / 3.818 GB, free: 64.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003578/11.06, allocations: 0.6265 MB / 3.818 GB, free: 64.55 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1433/11.2, allocations: 78.15 MB / 3.895 GB, free: 52.49 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001177/11.21, allocations: 1.801 MB / 3.896 GB, free: 51.1 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.003728/11.21, allocations: 2.046 MB / 3.898 GB, free: 49.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003212/11.21, allocations: 115.7 kB / 3.898 GB, free: 49.81 MB / 426.7 MB Notification: Performance of SimCode: time 2.755e-06/11.21, allocations: 0 / 3.898 GB, free: 49.81 MB / 426.7 MB Notification: Performance of Templates: time 0.3583/11.57, allocations: 68.97 MB / 3.966 GB, free: 67.52 MB / 426.7 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1)