Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Fluid.Examples.NonCircularPipes") translateModel(Modelica.Fluid.Examples.NonCircularPipes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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.001197/0.001197, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.00144/0.00144, allocations: 177.3 kB / 15.95 MB, free: 216 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.515/1.515, allocations: 205.4 MB / 222.1 MB, free: 5.887 MB / 174.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.0005091/0.0005091, allocations: 16 kB / 278.9 MB, free: 13.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2964/0.2969, allocations: 47.57 MB / 326.4 MB, free: 1.398 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.NonCircularPipes): time 0.05599/0.353, allocations: 53.37 MB / 379.8 MB, free: 14.06 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03312/0.3862, allocations: 22.63 MB / 402.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002176/0.3884, allocations: 55.5 kB / 402.5 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002571/0.391, allocations: 0.7234 MB / 403.2 MB, free: 6.613 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01226/0.4033, allocations: 3.148 MB / 406.4 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02115/0.4245, allocations: 6.531 MB / 412.9 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005423/0.4299, allocations: 2.706 MB / 415.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001703/0.4316, allocations: 0.9288 MB / 416.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02249/0.4541, allocations: 12.53 MB / 429.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02028/0.4744, allocations: 12.22 MB / 441.3 MB, free: 484 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005334/0.475, allocations: 76 kB / 441.3 MB, free: 408 kB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02004/0.4951, allocations: 8.701 MB / 450 MB, free: 7.688 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001139/0.4963, allocations: 0.5649 MB / 450.6 MB, free: 7.121 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008645/0.4971, allocations: 400.8 kB / 451 MB, free: 6.723 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01129/0.5084, allocations: 5.235 MB / 456.2 MB, free: 1.477 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.5085, allocations: 4 kB / 456.2 MB, free: 1.473 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.545e-06/0.5085, allocations: 0 / 456.2 MB, free: 1.473 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.201e-05/0.5085, allocations: 0 / 456.2 MB, free: 1.473 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: 391 * Number of variables: 391 Notification: Performance of Generate backend data structure: time 0.2491/0.7576, allocations: 2.61 MB / 458.9 MB, free: 96.6 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.834e-05/0.7577, allocations: 10.09 kB / 458.9 MB, free: 96.6 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004963/0.7626, allocations: 0.6027 MB / 459.5 MB, free: 96.5 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002441/0.7651, allocations: 1.126 MB / 460.6 MB, free: 96.17 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001627/0.7653, allocations: 144.1 kB / 460.7 MB, free: 96.17 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002757/0.7656, allocations: 152.5 kB / 460.9 MB, free: 96.17 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005958/0.7715, allocations: 2.8 MB / 463.7 MB, free: 95.79 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.177e-05/0.7716, allocations: 10.8 kB / 463.7 MB, free: 95.79 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001514/0.7717, allocations: 62.22 kB / 463.7 MB, free: 95.79 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001538/0.7719, allocations: 149.1 kB / 463.9 MB, free: 95.79 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00542/0.7773, allocations: 2.665 MB / 466.6 MB, free: 95.77 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.01349/0.7908, allocations: 11.69 MB / 478.3 MB, free: 88.66 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004347/0.7952, allocations: 1.766 MB / 480 MB, free: 88.45 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01572/0.811, allocations: 8.422 MB / 488.4 MB, free: 80.67 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.795e-05/0.8111, allocations: 48.25 kB / 488.5 MB, free: 80.62 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 5.66e-06/0.8111, allocations: 0 / 488.5 MB, free: 80.62 MB / 382.1 MB Notification: Performance of matching and sorting (n=132): time 0.01954/0.8306, allocations: 7.478 MB / 496 MB, free: 74.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.234e-05/0.8307, allocations: 153.6 kB / 496.1 MB, free: 74.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001535/0.8323, allocations: 1.177 MB / 497.3 MB, free: 73.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001171/0.8324, allocations: 50.45 kB / 497.3 MB, free: 73.6 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004638/0.8329, allocations: 0.7199 MB / 498.1 MB, free: 73.12 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003653/0.8333, allocations: 457.2 kB / 498.5 MB, free: 72.75 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.399e-05/0.8334, allocations: 31.81 kB / 498.5 MB, free: 72.74 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.8335, allocations: 364.7 kB / 498.9 MB, free: 72.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001446/0.8349, allocations: 0.8879 MB / 499.8 MB, free: 71.71 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.8365, allocations: 1.273 MB / 0.4893 GB, free: 70.29 MB / 382.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: annulus_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: circular_pipe.mediums[1].p = 1000000.0 (boundary.p = 1000000.0) Notification: Performance of analyzeInitialSystem (initialization): time 2.654/3.491, allocations: 0.49 GB / 0.9793 GB, free: 104.5 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.364e-06/3.491, allocations: 4 kB / 0.9793 GB, free: 104.5 MB / 430.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.004338/3.495, allocations: 2.687 MB / 0.982 GB, free: 101.9 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006075/3.496, allocations: 4.203 MB / 0.9861 GB, free: 97.41 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.495e-05/3.496, allocations: 12 kB / 0.9861 GB, free: 97.4 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001535/3.498, allocations: 0.5169 MB / 0.9866 GB, free: 96.87 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001304/3.499, allocations: 379.5 kB / 0.987 GB, free: 96.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001519/3.5, allocations: 2.912 MB / 0.9898 GB, free: 93.49 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001489/3.502, allocations: 194.7 kB / 0.99 GB, free: 93.31 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001127/3.502, allocations: 75.98 kB / 0.9901 GB, free: 93.23 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.766e-06/3.502, allocations: 4 kB / 0.9901 GB, free: 93.23 MB / 430.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003998/3.506, allocations: 2.477 MB / 0.9925 GB, free: 90.74 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.528e-05/3.506, allocations: 12.97 kB / 0.9925 GB, free: 90.73 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001444/3.507, allocations: 0.5221 MB / 0.993 GB, free: 90.2 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/3.509, allocations: 375.4 kB / 0.9934 GB, free: 89.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001516/3.51, allocations: 2.911 MB / 0.9962 GB, free: 86.82 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/3.512, allocations: 194.6 kB / 0.9964 GB, free: 86.65 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/3.512, allocations: 82.66 kB / 0.9965 GB, free: 86.57 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: annulus_pipe.mediums[1].p = 1000000.0 circular_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 (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 (177): * Single equations (assignments): 173 * 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.0008004/3.513, allocations: 0.5922 MB / 0.997 GB, free: 85.97 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002005/3.513, allocations: 145 kB / 0.9972 GB, free: 85.9 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006108/3.519, allocations: 5.562 MB / 1.003 GB, free: 80.42 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.8e-05/3.519, allocations: 59.91 kB / 1.003 GB, free: 80.36 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/3.519, allocations: 0 / 1.003 GB, free: 80.36 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005122/3.524, allocations: 5.099 MB / 1.008 GB, free: 75.15 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01022/3.534, allocations: 8.61 MB / 1.016 GB, free: 66.4 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.754e-06/3.535, allocations: 3.984 kB / 1.016 GB, free: 66.4 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001023/3.536, allocations: 291.9 kB / 1.016 GB, free: 66.11 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001729/3.537, allocations: 0.5544 MB / 1.017 GB, free: 65.55 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.661e-05/3.537, allocations: 43.98 kB / 1.017 GB, free: 65.5 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001525/3.539, allocations: 2.922 MB / 1.02 GB, free: 62.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/3.539, allocations: 4.031 kB / 1.02 GB, free: 62.48 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006306/3.545, allocations: 5.523 MB / 1.025 GB, free: 56.81 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009715/3.546, allocations: 0.5248 MB / 1.026 GB, free: 56.27 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002342/3.546, allocations: 43.81 kB / 1.026 GB, free: 56.23 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001041/3.548, allocations: 155.7 kB / 1.026 GB, free: 56.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001977/3.548, allocations: 136.8 kB / 1.026 GB, free: 55.94 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.344e-05/3.548, allocations: 51.97 kB / 1.026 GB, free: 55.89 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0009336/3.549, allocations: 0.8972 MB / 1.027 GB, free: 54.99 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.51e-07/3.549, allocations: 0 / 1.027 GB, free: 54.99 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004321/3.553, allocations: 1.997 MB / 1.029 GB, free: 53.14 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 (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.004719/3.558, allocations: 1.641 MB / 1.03 GB, free: 51.79 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005927/3.564, allocations: 3.851 MB / 1.034 GB, free: 47.94 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.46e-06/3.564, allocations: 0 / 1.034 GB, free: 47.94 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002266/3.566, allocations: 1.832 MB / 1.036 GB, free: 46.11 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003324/3.569, allocations: 0.7351 MB / 1.037 GB, free: 45.39 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006595/3.576, allocations: 6.324 MB / 1.043 GB, free: 39 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000946/3.577, allocations: 1.804 MB / 1.045 GB, free: 37.16 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002967/3.58, allocations: 1.957 MB / 1.047 GB, free: 35.2 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003318/3.58, allocations: 135.4 kB / 1.047 GB, free: 35.07 MB / 430.1 MB Notification: Performance of SimCode: time 5.91e-07/3.58, allocations: 0 / 1.047 GB, free: 35.07 MB / 430.1 MB Notification: Performance of Templates: time 0.2455/3.826, allocations: 71.42 MB / 1.116 GB, free: 130.9 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.NonCircularPipes.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Fluid.Examples.NonCircularPipes.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.NonCircularPipes.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.NonCircularPipes.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.NonCircularPipes.sim & ./Modelica_3.1_Modelica.Fluid.Examples.NonCircularPipes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.NonCircularPipes.pipe 2>&1) Environment - environmentSimulation: