Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.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.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 104.9 kB / 17.06 MB, free: 6.027 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.001312/0.001312, allocations: 195 kB / 17.99 MB, free: 5.109 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.54/1.54, allocations: 205.1 MB / 223.9 MB, free: 12.25 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.001355/0.001355, allocations: 51.94 kB / 327.8 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1074, allocations: 46.62 MB / 374.5 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.3112/0.4186, allocations: 62.85 MB / 437.3 MB, free: 460 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02896/0.4477, allocations: 22.44 MB / 459.8 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002287/0.45, allocations: 39.69 kB / 459.8 MB, free: 10.19 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002814/0.4529, allocations: 0.7257 MB / 460.5 MB, free: 9.457 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02441/0.4773, allocations: 5.77 MB / 466.3 MB, free: 3.672 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01025/0.4876, allocations: 3.458 MB / 469.8 MB, free: 204 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01722/0.5049, allocations: 9.044 MB / 478.8 MB, free: 7.039 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001482/0.5064, allocations: 0.6879 MB / 479.5 MB, free: 6.348 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0022/0.5086, allocations: 1.059 MB / 480.6 MB, free: 5.285 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.5097, allocations: 0.8401 MB / 481.4 MB, free: 4.441 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.5098, allocations: 92 kB / 481.5 MB, free: 4.352 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01633/0.5262, allocations: 7.653 MB / 489.1 MB, free: 12.69 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000535/0.5267, allocations: 290.9 kB / 489.4 MB, free: 12.41 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001222/0.528, allocations: 0.7075 MB / 490.1 MB, free: 11.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0161/0.5441, allocations: 5.749 MB / 495.9 MB, free: 5.934 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.896e-06/0.5441, allocations: 4 kB / 495.9 MB, free: 5.93 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5442, allocations: 0 / 495.9 MB, free: 5.93 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.804e-05/0.5442, allocations: 4 kB / 495.9 MB, free: 5.926 MB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006445/0.5506, allocations: 2.463 MB / 498.3 MB, free: 3.406 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.5507, allocations: 12.02 kB / 498.4 MB, free: 3.395 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0044/0.5551, allocations: 0.6588 MB / 499 MB, free: 2.734 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002083/0.5572, allocations: 1.043 MB / 0.4883 GB, free: 1.645 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.656e-05/0.5573, allocations: 74.58 kB / 0.4884 GB, free: 1.57 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001455/0.5574, allocations: 99.94 kB / 0.4885 GB, free: 1.473 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003444/0.5609, allocations: 1.671 MB / 0.4901 GB, free: 15.65 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.618e-05/0.5609, allocations: 4 kB / 0.4901 GB, free: 15.64 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001043/0.561, allocations: 44 kB / 0.4902 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.601e-05/0.5611, allocations: 35.92 kB / 0.4902 GB, free: 15.57 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003092/0.5642, allocations: 1.455 MB / 0.4916 GB, free: 14.11 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009088/0.5733, allocations: 8.395 MB / 0.4998 GB, free: 5.102 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002921/0.5762, allocations: 1.7 MB / 0.5015 GB, free: 3.238 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005578/0.5768, allocations: 399.6 kB / 0.5019 GB, free: 2.844 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4289/1.006, allocations: 63.65 MB / 0.564 GB, free: 150 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.841e-05/1.006, allocations: 42.72 kB / 0.5641 GB, free: 150 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 5.06e-06/1.006, allocations: 0 / 0.5641 GB, free: 150 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006519/1.012, allocations: 1.996 MB / 0.566 GB, free: 149.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.128e-05/1.012, allocations: 189.5 kB / 0.5662 GB, free: 149.6 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001818/1.014, allocations: 0.9674 MB / 0.5672 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.419e-05/1.014, allocations: 41.11 kB / 0.5672 GB, free: 149.2 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004137/1.015, allocations: 0.5696 MB / 0.5677 GB, free: 148.8 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002481/1.015, allocations: 277 kB / 0.568 GB, free: 148.6 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003457/1.015, allocations: 234.6 kB / 0.5682 GB, free: 148.5 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.171e-05/1.015, allocations: 350.5 kB / 0.5686 GB, free: 148.2 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005543/1.016, allocations: 306.8 kB / 0.5689 GB, free: 148.1 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008179/1.017, allocations: 0.7459 MB / 0.5696 GB, free: 147.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001542/1.018, allocations: 1.097 MB / 0.5707 GB, free: 146.5 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.319e-05/1.018, allocations: 4.562 kB / 0.5707 GB, free: 146.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002491/1.021, allocations: 1.246 MB / 0.5719 GB, free: 146 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.279e-05/1.021, allocations: 10.12 kB / 0.5719 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.853e-05/1.021, allocations: 14.81 kB / 0.5719 GB, free: 146 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003313/1.024, allocations: 0.5228 MB / 0.5724 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001155/1.026, allocations: 284.9 kB / 0.5727 GB, free: 145.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009631/1.027, allocations: 1.376 MB / 0.574 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001119/1.028, allocations: 135.3 kB / 0.5742 GB, free: 144.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001718/1.028, allocations: 70.73 kB / 0.5742 GB, free: 144.5 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 63 * Number of states: 0 () * Number of discrete variables: 20 (rightAdaptor.state_b.phase,rightAdaptor.state_a.phase,rightAdaptor.state_a_nondes.phase,rightAdaptor.state_b_des.phase,leftAdaptor.state_b.phase,leftAdaptor.state_a.phase,leftAdaptor.state_a_nondes.phase,leftAdaptor.state_b_des.phase,suddenExpansion2.state_b.phase,suddenExpansion2.state_a.phase,suddenExpansion2.state_a_nondes.phase,suddenExpansion2.state_b_des.phase,rightBoundary2.medium.phase,leftBoundary2.medium.phase,suddenExpansion1.state_b.phase,suddenExpansion1.state_a.phase,suddenExpansion1.state_a_nondes.phase,suddenExpansion1.state_b_des.phase,rightBoundary1.medium.phase,leftBoundary1.medium.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(3,14)} Notification: Performance of prepare postOptimizeDAE: time 0.0006605/1.029, allocations: 293.2 kB / 0.5745 GB, free: 144.3 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004131/1.029, allocations: 119.9 kB / 0.5746 GB, free: 144.2 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005272/1.034, allocations: 4.485 MB / 0.579 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.18e-05/1.034, allocations: 42.94 kB / 0.579 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.285e-05/1.034, allocations: 5.312 kB / 0.579 GB, free: 142.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.433e-05/1.034, allocations: 11.97 kB / 0.5791 GB, free: 142 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005496/1.04, allocations: 4.944 MB / 0.5839 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.178e-05/1.04, allocations: 0 / 0.5839 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000779/1.041, allocations: 167.2 kB / 0.584 GB, free: 138.6 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001466/1.042, allocations: 0.6712 MB / 0.5847 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.397e-05/1.042, allocations: 23.83 kB / 0.5847 GB, free: 138.3 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001036/1.043, allocations: 1.751 MB / 0.5864 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/1.043, allocations: 3.938 kB / 0.5864 GB, free: 136.8 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002489/1.046, allocations: 2.027 MB / 0.5884 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004361/1.046, allocations: 270.3 kB / 0.5887 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002522/1.046, allocations: 39.69 kB / 0.5887 GB, free: 135.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005676/1.047, allocations: 16 kB / 0.5887 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.531e-05/1.047, allocations: 63.23 kB / 0.5888 GB, free: 135.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.338e-05/1.047, allocations: 35.92 kB / 0.5888 GB, free: 135.1 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0009621/1.048, allocations: 0.8303 MB / 0.5896 GB, free: 134.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.048, allocations: 4 kB / 0.5896 GB, free: 134.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003855/1.052, allocations: 1.276 MB / 0.5909 GB, free: 133.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 24 ($cse10.phase,$cse10.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (81): * Single equations (assignments): 71 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems 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): 1 system {(3,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.005692/1.058, allocations: 1.25 MB / 0.5921 GB, free: 132.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.002642/1.06, allocations: 1.258 MB / 0.5933 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.834e-06/1.06, allocations: 384 / 0.5933 GB, free: 130.8 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001453/1.062, allocations: 0.9111 MB / 0.5942 GB, free: 129.9 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003798/1.066, allocations: 0.7307 MB / 0.5949 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004074/1.07, allocations: 3.04 MB / 0.5979 GB, free: 126.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006452/1.07, allocations: 1.32 MB / 0.5992 GB, free: 124.8 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001207/1.072, allocations: 0.6377 MB / 0.5998 GB, free: 124.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002862/1.072, allocations: 123.4 kB / 0.5999 GB, free: 124 MB / 478.1 MB Notification: Performance of SimCode: time 6.31e-07/1.072, allocations: 0 / 0.5999 GB, free: 124 MB / 478.1 MB Notification: Performance of Templates: time 0.06902/1.141, allocations: 58.18 MB / 0.6568 GB, free: 65.77 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)