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.0009633/0.0009633, allocations: 171.5 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.238/1.238, allocations: 170.6 MB / 178.7 MB, free: 15.59 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.001774/0.001774, allocations: 99.52 kB / 218 MB, free: 8.34 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.622e-05/1.624e-05, allocations: 7.984 kB / 262.2 MB, free: 26.4 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07801/0.07804, allocations: 38.77 MB / 301 MB, free: 3.625 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.877/5.955, allocations: 2.517 GB / 2.811 GB, free: 23.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002764/5.956, allocations: 74.03 kB / 2.811 GB, free: 23.72 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.255/8.211, allocations: 0.5289 GB / 3.34 GB, free: 35.4 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.074e-06/8.211, allocations: 0 / 3.34 GB, free: 35.4 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001525/8.211, allocations: 43.86 kB / 3.34 GB, free: 35.39 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.01272/8.224, allocations: 2.743 MB / 3.343 GB, free: 34 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/8.224, allocations: 13.75 kB / 3.343 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0047/8.229, allocations: 0.5865 MB / 3.344 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004323/8.233, allocations: 1.452 MB / 3.345 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001881/8.233, allocations: 75.22 kB / 3.345 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003275/8.234, allocations: 86.66 kB / 3.345 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003455/8.237, allocations: 1.971 MB / 3.347 GB, free: 33.44 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003165/8.24, allocations: 2.148 MB / 3.349 GB, free: 32.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.441e-05/8.24, allocations: 7.719 kB / 3.349 GB, free: 32.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001607/8.241, allocations: 11.75 kB / 3.349 GB, free: 32.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001532/8.241, allocations: 125.9 kB / 3.349 GB, free: 32.41 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.4972/8.738, allocations: 75.59 MB / 3.423 GB, free: 19.93 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001576/8.74, allocations: 1.113 MB / 3.424 GB, free: 19.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007442/8.74, allocations: 0.6607 MB / 3.425 GB, free: 19.89 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006432/8.747, allocations: 4.304 MB / 3.429 GB, free: 16.62 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.178e-05/8.747, allocations: 50.7 kB / 3.429 GB, free: 16.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=102): time 3.346e-06/8.747, allocations: 0 / 3.429 GB, free: 16.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=118): time 0.01212/8.759, allocations: 4.894 MB / 3.434 GB, free: 16.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.967e-05/8.759, allocations: 150.5 kB / 3.434 GB, free: 15.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/8.76, allocations: 0.8425 MB / 3.435 GB, free: 15.7 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001188/8.76, allocations: 25.7 kB / 3.435 GB, free: 15.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004639/8.761, allocations: 0.7812 MB / 3.436 GB, free: 15.35 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003207/8.761, allocations: 400 kB / 3.436 GB, free: 15.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.632e-05/8.761, allocations: 0 / 3.436 GB, free: 15.14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001202/8.761, allocations: 375 kB / 3.437 GB, free: 14.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009275/8.762, allocations: 0.7289 MB / 3.437 GB, free: 14.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001098/8.764, allocations: 1.171 MB / 3.438 GB, free: 14.33 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/8.778, allocations: 4.216 MB / 3.443 GB, free: 14.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-05/8.778, allocations: 3.094 kB / 3.443 GB, free: 14.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=206) (initialization): time 0.01266/8.791, allocations: 4.221 MB / 3.447 GB, free: 13.81 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001137/8.792, allocations: 5.138 MB / 3.452 GB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.271e-05/8.792, allocations: 15.84 kB / 3.452 GB, free: 8.414 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001264/8.794, allocations: 481.5 kB / 3.452 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001384/8.795, allocations: 399.1 kB / 3.453 GB, free: 8.371 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002357/8.797, allocations: 2.9 MB / 3.455 GB, free: 22.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00198/8.799, allocations: 195.7 kB / 3.456 GB, free: 22.27 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/8.8, allocations: 88.62 kB / 3.456 GB, free: 22.26 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.326e-05/8.8, allocations: 3.969 kB / 3.456 GB, free: 22.26 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0117/8.811, allocations: 3.959 MB / 3.459 GB, free: 22.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.353e-05/8.811, allocations: 12.78 kB / 3.459 GB, free: 22.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001227/8.813, allocations: 487.6 kB / 3.46 GB, free: 22.11 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001477/8.814, allocations: 389.9 kB / 3.46 GB, free: 22.1 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002611/8.817, allocations: 2.915 MB / 3.463 GB, free: 20.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002297/8.819, allocations: 179.5 kB / 3.463 GB, free: 20 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001726/8.819, allocations: 83.02 kB / 3.463 GB, free: 19.99 MB / 394.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 (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,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 () * 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.0008111/8.82, allocations: 161.4 kB / 3.464 GB, free: 19.88 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002966/8.82, allocations: 125.1 kB / 3.464 GB, free: 19.82 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005923/8.826, allocations: 4.704 MB / 3.468 GB, free: 19.39 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.066e-05/8.826, allocations: 44.59 kB / 3.468 GB, free: 19.39 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/8.826, allocations: 7.578 kB / 3.468 GB, free: 19.38 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004804/8.831, allocations: 4.328 MB / 3.473 GB, free: 18.65 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009599/8.841, allocations: 6.957 MB / 3.479 GB, free: 18.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/8.841, allocations: 0 / 3.479 GB, free: 18.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009968/8.842, allocations: 269.6 kB / 3.48 GB, free: 18 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001488/8.843, allocations: 0.5278 MB / 3.48 GB, free: 17.96 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.622e-05/8.843, allocations: 21.38 kB / 3.48 GB, free: 17.96 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002383/8.846, allocations: 3.07 MB / 3.483 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/8.846, allocations: 0 / 3.483 GB, free: 15.86 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006179/8.852, allocations: 4.668 MB / 3.488 GB, free: 15.45 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001494/8.853, allocations: 492.5 kB / 3.488 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002179/8.854, allocations: 16.73 kB / 3.488 GB, free: 15.21 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001129/8.855, allocations: 132.6 kB / 3.488 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002477/8.855, allocations: 113.4 kB / 3.488 GB, free: 15.19 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-05/8.855, allocations: 41.64 kB / 3.488 GB, free: 15.19 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001145/8.856, allocations: 0.6846 MB / 3.489 GB, free: 15.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 4e-07/8.856, allocations: 0 / 3.489 GB, free: 15.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.009492/8.866, allocations: 2.056 MB / 3.491 GB, free: 14.98 MB / 394.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: 30 ($cse2.region3boundary,$cse3.region3boundary,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,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 (114): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 14 * 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.01139/8.877, allocations: 2.331 MB / 3.493 GB, free: 14.66 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006038/8.883, allocations: 3.331 MB / 3.497 GB, free: 14.6 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/8.883, allocations: 8.031 kB / 3.497 GB, free: 14.59 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002297/8.886, allocations: 1.485 MB / 3.498 GB, free: 14.58 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003607/8.889, allocations: 0.5634 MB / 3.499 GB, free: 14.55 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4159/9.305, allocations: 57.88 MB / 3.555 GB, free: 61.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001556/9.307, allocations: 1.763 MB / 3.557 GB, free: 61.23 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.004698/9.312, allocations: 2.076 MB / 3.559 GB, free: 61.21 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003399/9.312, allocations: 111.3 kB / 3.559 GB, free: 61.2 MB / 410.7 MB Notification: Performance of SimCode: time 1.894e-06/9.312, allocations: 0 / 3.559 GB, free: 61.2 MB / 410.7 MB Notification: Performance of Templates: time 0.1264/9.438, allocations: 58.75 MB / 3.616 GB, free: 58.41 MB / 410.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)