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/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) 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007578/0.0007579, allocations: 91.72 kB / 16.65 MB, free: 6.59 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.0009223/0.0009223, allocations: 185.7 kB / 17.57 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.503/1.503, allocations: 205.4 MB / 223.7 MB, free: 13.07 MB / 190.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: Performance of FrontEnd - loaded program: time 0.000493/0.000493, allocations: 12 kB / 280.7 MB, free: 3.434 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.113/0.1135, allocations: 47.58 MB / 328.3 MB, free: 3.777 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.NonCircularPipes): time 0.2707/0.3842, allocations: 63.58 MB / 391.9 MB, free: 9.688 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03275/0.417, allocations: 27.02 MB / 418.9 MB, free: 8.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002082/0.4191, allocations: 60.88 kB / 419 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001909/0.4211, allocations: 0.6947 MB / 419.7 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009581/0.4307, allocations: 3.565 MB / 423.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02442/0.4551, allocations: 6.946 MB / 430.2 MB, free: 1.805 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00776/0.4629, allocations: 7.24 MB / 437.4 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001593/0.4645, allocations: 0.9341 MB / 438.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01528/0.4798, allocations: 7.955 MB / 446.3 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01452/0.4943, allocations: 8.035 MB / 454.3 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004196/0.4948, allocations: 76 kB / 454.4 MB, free: 11.73 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01939/0.5142, allocations: 8.783 MB / 463.2 MB, free: 2.938 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001237/0.5154, allocations: 0.627 MB / 463.8 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001639/0.5171, allocations: 0.9504 MB / 464.8 MB, free: 1.348 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0201/0.5372, allocations: 7.439 MB / 472.2 MB, free: 9.891 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.5372, allocations: 0 / 472.2 MB, free: 9.891 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.5373, allocations: 3.938 kB / 472.2 MB, free: 9.887 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.185e-05/0.5373, allocations: 0 / 472.2 MB, free: 9.887 MB / 366.1 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.006651/0.5439, allocations: 2.609 MB / 474.8 MB, free: 7.219 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.603e-05/0.544, allocations: 8.031 kB / 474.8 MB, free: 7.211 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003931/0.5479, allocations: 0.5911 MB / 475.4 MB, free: 6.617 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001651/0.5496, allocations: 1.159 MB / 476.6 MB, free: 5.41 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00014/0.5498, allocations: 138.8 kB / 476.7 MB, free: 5.273 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002312/0.55, allocations: 147.9 kB / 476.9 MB, free: 5.129 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005626/0.5556, allocations: 2.837 MB / 479.7 MB, free: 2.156 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.071e-05/0.5557, allocations: 7.875 kB / 479.7 MB, free: 2.148 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001673/0.5559, allocations: 63.98 kB / 479.8 MB, free: 2.086 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001815/0.556, allocations: 146.6 kB / 479.9 MB, free: 1.941 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005683/0.5617, allocations: 2.676 MB / 482.6 MB, free: 15.26 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.01308/0.5748, allocations: 11.69 MB / 494.3 MB, free: 2.672 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004461/0.5793, allocations: 1.77 MB / 496.1 MB, free: 0.8945 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00147/0.5808, allocations: 0.8702 MB / 496.9 MB, free: 24 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01715/0.598, allocations: 8.423 MB / 0.4935 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.278e-05/0.598, allocations: 47.56 kB / 0.4935 GB, free: 6.543 MB / 398.1 MB Notification: Performance of pre-optimization done (n=114): time 2.775e-06/0.5981, allocations: 4 kB / 0.4936 GB, free: 6.539 MB / 398.1 MB Notification: Performance of matching and sorting (n=132): time 0.02097/0.619, allocations: 7.498 MB / 0.5009 GB, free: 14.97 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.667e-05/0.6192, allocations: 141.8 kB / 0.501 GB, free: 14.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001647/0.6208, allocations: 1.2 MB / 0.5022 GB, free: 13.59 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001172/0.6209, allocations: 49.7 kB / 0.5022 GB, free: 13.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000514/0.6215, allocations: 0.7101 MB / 0.5029 GB, free: 12.82 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003487/0.6218, allocations: 461.3 kB / 0.5034 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001935/0.622, allocations: 149.6 kB / 0.5035 GB, free: 12.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.6221, allocations: 305.1 kB / 0.5038 GB, free: 11.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001606/0.6237, allocations: 0.8939 MB / 0.5047 GB, free: 11.01 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001892/0.6256, allocations: 1.287 MB / 0.5059 GB, free: 9.566 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: circular_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: annulus_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 3.082/3.708, allocations: 0.492 GB / 0.9979 GB, free: 153.7 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.235e-06/3.708, allocations: 1.406 kB / 0.9979 GB, free: 153.7 MB / 430.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005575/3.714, allocations: 2.718 MB / 1.001 GB, free: 153.2 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001936/3.714, allocations: 411.5 kB / 1.001 GB, free: 152.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.834e-05/3.714, allocations: 15.22 kB / 1.001 GB, free: 152.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/3.716, allocations: 0.5216 MB / 1.002 GB, free: 152.6 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001456/3.717, allocations: 376.2 kB / 1.002 GB, free: 152.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001857/3.719, allocations: 2.912 MB / 1.005 GB, free: 150.2 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00159/3.721, allocations: 195.3 kB / 1.005 GB, free: 150.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001381/3.721, allocations: 76.11 kB / 1.005 GB, free: 150.1 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/3.721, allocations: 3.719 kB / 1.005 GB, free: 150.1 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004958/3.726, allocations: 2.503 MB / 1.007 GB, free: 149.3 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/3.726, allocations: 20.44 kB / 1.007 GB, free: 149.3 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00161/3.727, allocations: 0.5144 MB / 1.008 GB, free: 149.1 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/3.729, allocations: 377.2 kB / 1.008 GB, free: 149.1 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001677/3.73, allocations: 2.914 MB / 1.011 GB, free: 146.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/3.732, allocations: 196.2 kB / 1.011 GB, free: 146.7 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001193/3.732, allocations: 76.47 kB / 1.011 GB, free: 146.7 MB / 430.1 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: 48 * Number of states: 0 () * Number of discrete variables: 11 (annulus_pipe.statesFM[2].phase,annulus_pipe.statesFM[1].phase,circular_pipe.statesFM[2].phase,circular_pipe.statesFM[1].phase,massflowsink2.medium.phase,massflowsink1.medium.phase,boundary.medium.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 (177): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,8), (1,1), (2,8), (1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0008934/3.733, allocations: 0.5936 MB / 1.012 GB, free: 146.3 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002223/3.733, allocations: 150.6 kB / 1.012 GB, free: 146.3 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006409/3.74, allocations: 5.561 MB / 1.018 GB, free: 144.1 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.139e-05/3.74, allocations: 65.16 kB / 1.018 GB, free: 144.1 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/3.74, allocations: 0 / 1.018 GB, free: 144.1 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005349/3.745, allocations: 5.098 MB / 1.023 GB, free: 141.7 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/3.755, allocations: 8.614 MB / 1.031 GB, free: 134.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.946e-06/3.755, allocations: 3.469 kB / 1.031 GB, free: 134.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001024/3.756, allocations: 291.5 kB / 1.031 GB, free: 134.1 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001777/3.758, allocations: 0.5607 MB / 1.032 GB, free: 133.5 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/3.758, allocations: 43.97 kB / 1.032 GB, free: 133.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001621/3.76, allocations: 2.914 MB / 1.035 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/3.76, allocations: 7.938 kB / 1.035 GB, free: 130.5 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007024/3.767, allocations: 5.421 MB / 1.04 GB, free: 125 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001393/3.768, allocations: 0.5327 MB / 1.041 GB, free: 124.4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002235/3.769, allocations: 35.98 kB / 1.041 GB, free: 124.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001119/3.77, allocations: 163.6 kB / 1.041 GB, free: 124.2 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002526/3.77, allocations: 121.1 kB / 1.041 GB, free: 124.1 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-05/3.77, allocations: 55.91 kB / 1.041 GB, free: 124 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001083/3.771, allocations: 0.9089 MB / 1.042 GB, free: 123.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.91e-07/3.771, allocations: 4 kB / 1.042 GB, free: 123.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.005127/3.776, allocations: 1.984 MB / 1.044 GB, free: 121.3 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (130): * Single equations (assignments): 110 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 16 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 4 systems {(2,8), (1,1), (2,8), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005749/3.782, allocations: 1.641 MB / 1.045 GB, free: 119.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006636/3.789, allocations: 3.869 MB / 1.049 GB, free: 116.1 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/3.789, allocations: 128 / 1.049 GB, free: 116.1 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002342/3.791, allocations: 1.83 MB / 1.051 GB, free: 114.2 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004108/3.795, allocations: 0.7644 MB / 1.052 GB, free: 113.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007556/3.803, allocations: 6.487 MB / 1.058 GB, free: 107 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001014/3.804, allocations: 1.759 MB / 1.06 GB, free: 105.2 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002982/3.807, allocations: 1.967 MB / 1.062 GB, free: 103.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/3.807, allocations: 135.4 kB / 1.062 GB, free: 103.1 MB / 430.1 MB Notification: Performance of SimCode: time 9.92e-07/3.807, allocations: 0 / 1.062 GB, free: 103.1 MB / 430.1 MB Notification: Performance of Templates: time 0.08285/3.89, allocations: 71.88 MB / 1.132 GB, free: 31.08 MB / 430.1 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)