Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_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.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_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.001206/0.001206, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001481/0.001481, allocations: 194.3 kB / 16.25 MB, free: 6.621 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.322/1.322, allocations: 205.1 MB / 222.1 MB, free: 4.695 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.001109/0.001109, allocations: 51.94 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1951/0.1962, allocations: 46.63 MB / 324.8 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.05612/0.2523, allocations: 63.64 MB / 388.5 MB, free: 4.242 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02617/0.2785, allocations: 22.58 MB / 411.1 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/0.2801, allocations: 39.69 kB / 411.1 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002014/0.2822, allocations: 0.641 MB / 411.7 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01465/0.2968, allocations: 5.151 MB / 416.9 MB, free: 7.746 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008394/0.3052, allocations: 3.145 MB / 420 MB, free: 4.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01471/0.32, allocations: 9.059 MB / 429.1 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001306/0.3213, allocations: 0.6845 MB / 429.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002079/0.3234, allocations: 1.047 MB / 430.8 MB, free: 9.664 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001139/0.3246, allocations: 0.8519 MB / 431.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.3247, allocations: 95.94 kB / 431.8 MB, free: 8.715 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01364/0.3384, allocations: 7.559 MB / 439.3 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004645/0.3389, allocations: 294.9 kB / 439.6 MB, free: 0.8594 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001014/0.3399, allocations: 0.7192 MB / 440.3 MB, free: 140 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01562/0.3555, allocations: 5.741 MB / 446.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.876e-06/0.3556, allocations: 3.984 kB / 446.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3556, allocations: 4 kB / 446.1 MB, free: 10.38 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.903e-05/0.3556, allocations: 4 kB / 446.1 MB, free: 10.37 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: 256 * Number of variables: 256 Notification: Performance of Generate backend data structure: time 0.006847/0.3625, allocations: 2.458 MB / 448.6 MB, free: 7.855 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.284e-05/0.3625, allocations: 8.031 kB / 448.6 MB, free: 7.848 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004637/0.3672, allocations: 0.6588 MB / 449.2 MB, free: 7.188 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001696/0.3689, allocations: 0.9928 MB / 450.2 MB, free: 6.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.564e-05/0.3689, allocations: 74.39 kB / 450.3 MB, free: 6.078 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.3691, allocations: 99.94 kB / 450.4 MB, free: 5.98 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00358/0.3727, allocations: 1.675 MB / 452.1 MB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.713e-05/0.3727, allocations: 3.938 kB / 452.1 MB, free: 4.156 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001098/0.3728, allocations: 48 kB / 452.1 MB, free: 4.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.122e-05/0.3729, allocations: 24 kB / 452.1 MB, free: 4.086 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003236/0.3761, allocations: 1.467 MB / 453.6 MB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1435/0.5197, allocations: 8.401 MB / 462 MB, free: 112.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002621/0.5223, allocations: 1.691 MB / 463.7 MB, free: 111.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005268/0.5229, allocations: 399.6 kB / 464.1 MB, free: 111.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09708/0.6199, allocations: 63.4 MB / 0.5151 GB, free: 47.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.078e-05/0.62, allocations: 43.12 kB / 0.5152 GB, free: 47.16 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.385e-06/0.62, allocations: 0 / 0.5152 GB, free: 47.16 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005254/0.6253, allocations: 1.993 MB / 0.5171 GB, free: 45.17 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.586e-05/0.6254, allocations: 200.5 kB / 0.5173 GB, free: 44.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00089/0.6263, allocations: 0.9583 MB / 0.5182 GB, free: 43.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.098e-05/0.6263, allocations: 40.7 kB / 0.5183 GB, free: 43.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002545/0.6266, allocations: 0.5714 MB / 0.5188 GB, free: 43.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001348/0.6267, allocations: 273.6 kB / 0.5191 GB, free: 43.1 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002419/0.627, allocations: 238.6 kB / 0.5193 GB, free: 42.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.766e-05/0.627, allocations: 345.9 kB / 0.5196 GB, free: 42.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004287/0.6275, allocations: 306.5 kB / 0.5199 GB, free: 42.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005866/0.6281, allocations: 0.7403 MB / 0.5207 GB, free: 41.29 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/0.6291, allocations: 1.099 MB / 0.5217 GB, free: 40 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.6291, allocations: 4 kB / 0.5217 GB, free: 40 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001613/0.6308, allocations: 1.251 MB / 0.523 GB, free: 38.74 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.6308, allocations: 12 kB / 0.523 GB, free: 38.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/0.6308, allocations: 15.98 kB / 0.523 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003097/0.6339, allocations: 0.5225 MB / 0.5235 GB, free: 38.19 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009303/0.6349, allocations: 283.6 kB / 0.5238 GB, free: 37.91 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006955/0.6356, allocations: 1.366 MB / 0.5251 GB, free: 36.5 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007704/0.6363, allocations: 174.5 kB / 0.5253 GB, free: 36.32 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.421e-05/0.6364, allocations: 63.98 kB / 0.5253 GB, free: 36.26 MB / 382.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.000365/0.6368, allocations: 288.1 kB / 0.5256 GB, free: 35.97 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.637, allocations: 122.6 kB / 0.5257 GB, free: 35.85 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003494/0.6405, allocations: 4.521 MB / 0.5301 GB, free: 31.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-05/0.6405, allocations: 39.94 kB / 0.5302 GB, free: 31.29 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6405, allocations: 4 kB / 0.5302 GB, free: 31.28 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.009e-05/0.6405, allocations: 7.969 kB / 0.5302 GB, free: 31.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00376/0.6443, allocations: 4.936 MB / 0.535 GB, free: 26.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.584e-06/0.6443, allocations: 4 kB / 0.535 GB, free: 26.17 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007195/0.6451, allocations: 167.7 kB / 0.5352 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001241/0.6463, allocations: 0.6723 MB / 0.5358 GB, free: 25.32 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.383e-05/0.6464, allocations: 27.98 kB / 0.5358 GB, free: 25.3 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009391/0.6473, allocations: 1.75 MB / 0.5376 GB, free: 23.5 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.6473, allocations: 4 kB / 0.5376 GB, free: 23.5 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/0.6491, allocations: 2.026 MB / 0.5395 GB, free: 21.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000252/0.6494, allocations: 262.3 kB / 0.5398 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.6496, allocations: 47.53 kB / 0.5398 GB, free: 21.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000562/0.6501, allocations: 59.8 kB / 0.5399 GB, free: 21.03 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.04e-05/0.6502, allocations: 56.5 kB / 0.5399 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.001e-05/0.6503, allocations: 43.77 kB / 0.54 GB, free: 20.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0007396/0.651, allocations: 0.8264 MB / 0.5408 GB, free: 20.11 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.651, allocations: 0 / 0.5408 GB, free: 20.11 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002943/0.654, allocations: 1.277 MB / 0.542 GB, free: 18.91 MB / 382.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.003444/0.6574, allocations: 1.263 MB / 0.5433 GB, free: 17.86 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00269/0.6601, allocations: 1.301 MB / 0.5445 GB, free: 16.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.6601, allocations: 0 / 0.5445 GB, free: 16.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00121/0.6614, allocations: 0.9163 MB / 0.5454 GB, free: 15.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002831/0.6642, allocations: 0.7266 MB / 0.5461 GB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003063/0.6673, allocations: 3.764 MB / 0.5498 GB, free: 11.14 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.6678, allocations: 1.32 MB / 0.5511 GB, free: 9.793 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009997/0.6688, allocations: 0.6348 MB / 0.5517 GB, free: 9.156 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002094/0.669, allocations: 123.4 kB / 0.5519 GB, free: 9.035 MB / 382.1 MB Notification: Performance of SimCode: time 4.81e-07/0.669, allocations: 4 kB / 0.5519 GB, free: 9.031 MB / 382.1 MB Notification: Performance of Templates: time 0.2194/0.8883, allocations: 57.41 MB / 0.6079 GB, free: 159.9 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)