Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.001262/0.001262, 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.001926/0.001926, allocations: 189.7 kB / 16.25 MB, free: 6.617 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.363/1.363, allocations: 205.1 MB / 222.1 MB, free: 4.738 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.001138/0.001139, allocations: 52.39 kB / 278.2 MB, free: 12.66 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.256, allocations: 46.63 MB / 324.8 MB, free: 2.32 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.106/0.362, allocations: 63.64 MB / 388.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.04603/0.4081, allocations: 22.58 MB / 411.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002017/0.4101, allocations: 39.69 kB / 411.1 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004926/0.4151, allocations: 0.641 MB / 411.7 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0278/0.443, allocations: 5.155 MB / 416.9 MB, free: 8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01556/0.4586, allocations: 3.137 MB / 420 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02706/0.4857, allocations: 9.062 MB / 429.1 MB, free: 11.67 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002078/0.4879, allocations: 0.6923 MB / 429.8 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003707/0.4916, allocations: 1.043 MB / 430.8 MB, free: 9.922 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002213/0.4939, allocations: 0.8596 MB / 431.7 MB, free: 9.059 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004517/0.4943, allocations: 92 kB / 431.8 MB, free: 8.969 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02419/0.5186, allocations: 7.555 MB / 439.3 MB, free: 1.406 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005615/0.5192, allocations: 294.9 kB / 439.6 MB, free: 1.117 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001281/0.5205, allocations: 0.7114 MB / 440.3 MB, free: 412 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01305/0.5335, allocations: 5.749 MB / 446.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/0.5336, allocations: 3.984 kB / 446.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5336, allocations: 0 / 446.1 MB, free: 10.64 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.095e-05/0.5336, allocations: 0 / 446.1 MB, free: 10.64 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.006893/0.5406, allocations: 2.47 MB / 448.6 MB, free: 8.109 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.873e-05/0.5406, allocations: 8.031 kB / 448.6 MB, free: 8.102 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004973/0.5456, allocations: 0.6549 MB / 449.2 MB, free: 7.445 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001988/0.5476, allocations: 0.989 MB / 450.2 MB, free: 6.414 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.61e-05/0.5477, allocations: 74.39 kB / 450.3 MB, free: 6.34 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002034/0.5479, allocations: 99.94 kB / 450.4 MB, free: 6.242 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003951/0.5519, allocations: 1.671 MB / 452.1 MB, free: 4.426 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.866e-05/0.5519, allocations: 7.938 kB / 452.1 MB, free: 4.418 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.5521, allocations: 44 kB / 452.1 MB, free: 4.375 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.298e-05/0.5521, allocations: 28 kB / 452.1 MB, free: 4.348 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003452/0.5555, allocations: 1.467 MB / 453.6 MB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1621/0.7177, allocations: 8.392 MB / 462 MB, free: 113 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002814/0.7205, allocations: 1.694 MB / 463.7 MB, free: 111.9 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006375/0.7212, allocations: 405.8 kB / 464.1 MB, free: 111.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1012/0.8224, allocations: 63.39 MB / 0.5151 GB, free: 47.59 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.528e-05/0.8225, allocations: 49.09 kB / 0.5152 GB, free: 47.54 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.735e-06/0.8225, allocations: 0 / 0.5152 GB, free: 47.54 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005424/0.828, allocations: 1.997 MB / 0.5171 GB, free: 45.54 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.8281, allocations: 192.3 kB / 0.5173 GB, free: 45.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001002/0.8291, allocations: 0.9577 MB / 0.5182 GB, free: 44.35 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.803e-05/0.8291, allocations: 45.7 kB / 0.5183 GB, free: 44.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002554/0.8294, allocations: 0.5704 MB / 0.5188 GB, free: 43.74 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001486/0.8296, allocations: 276.4 kB / 0.5191 GB, free: 43.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002416/0.8298, allocations: 238.6 kB / 0.5193 GB, free: 43.24 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.075e-05/0.8299, allocations: 345.9 kB / 0.5196 GB, free: 42.89 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004348/0.8303, allocations: 302.5 kB / 0.5199 GB, free: 42.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006535/0.831, allocations: 0.7453 MB / 0.5207 GB, free: 41.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001098/0.8321, allocations: 1.096 MB / 0.5217 GB, free: 40.38 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.8321, allocations: 4 kB / 0.5217 GB, free: 40.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001746/0.8339, allocations: 1.247 MB / 0.523 GB, free: 39.12 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.248e-05/0.8339, allocations: 12 kB / 0.523 GB, free: 39.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.8339, allocations: 15.44 kB / 0.523 GB, free: 39.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003128/0.837, allocations: 0.5308 MB / 0.5235 GB, free: 38.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009533/0.838, allocations: 283.5 kB / 0.5238 GB, free: 38.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007115/0.8387, allocations: 1.374 MB / 0.5251 GB, free: 36.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008758/0.8396, allocations: 158.6 kB / 0.5253 GB, free: 36.71 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.388e-05/0.8397, allocations: 67.98 kB / 0.5253 GB, free: 36.64 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.0004198/0.8401, allocations: 292 kB / 0.5256 GB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.8403, allocations: 130.4 kB / 0.5257 GB, free: 36.22 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003386/0.8437, allocations: 4.509 MB / 0.5301 GB, free: 31.7 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.863e-05/0.8438, allocations: 47.92 kB / 0.5302 GB, free: 31.65 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.8438, allocations: 0 / 0.5302 GB, free: 31.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.8438, allocations: 3.984 kB / 0.5302 GB, free: 31.65 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003836/0.8476, allocations: 4.938 MB / 0.535 GB, free: 26.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.8476, allocations: 0 / 0.535 GB, free: 26.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007364/0.8484, allocations: 178.5 kB / 0.5352 GB, free: 26.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001247/0.8496, allocations: 0.6684 MB / 0.5358 GB, free: 25.7 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.113e-05/0.8497, allocations: 23.98 kB / 0.5358 GB, free: 25.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000915/0.8506, allocations: 1.762 MB / 0.5376 GB, free: 23.87 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.8506, allocations: 0 / 0.5376 GB, free: 23.87 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001826/0.8525, allocations: 2.022 MB / 0.5395 GB, free: 21.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003128/0.8528, allocations: 266.3 kB / 0.5398 GB, free: 21.51 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/0.853, allocations: 53.39 kB / 0.5398 GB, free: 21.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005635/0.8535, allocations: 59.81 kB / 0.5399 GB, free: 21.4 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.006e-05/0.8536, allocations: 52.48 kB / 0.54 GB, free: 21.34 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.596e-05/0.8537, allocations: 31.98 kB / 0.54 GB, free: 21.31 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000793/0.8545, allocations: 0.8381 MB / 0.5408 GB, free: 20.47 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.8545, allocations: 0 / 0.5408 GB, free: 20.47 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003128/0.8576, allocations: 1.277 MB / 0.5421 GB, free: 19.28 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.004089/0.8617, allocations: 1.249 MB / 0.5433 GB, free: 18.23 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003072/0.8648, allocations: 1.307 MB / 0.5445 GB, free: 16.94 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.8648, allocations: 0 / 0.5445 GB, free: 16.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001221/0.866, allocations: 0.9072 MB / 0.5454 GB, free: 16.03 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003138/0.8692, allocations: 0.7275 MB / 0.5461 GB, free: 15.31 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003337/0.8725, allocations: 3.76 MB / 0.5498 GB, free: 11.52 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005107/0.8731, allocations: 1.324 MB / 0.5511 GB, free: 10.17 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00115/0.8742, allocations: 0.6427 MB / 0.5517 GB, free: 9.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000223/0.8745, allocations: 119.4 kB / 0.5519 GB, free: 9.41 MB / 382.1 MB Notification: Performance of SimCode: time 7.11e-07/0.8745, allocations: 0 / 0.5519 GB, free: 9.41 MB / 382.1 MB Notification: Performance of Templates: time 0.2198/1.094, allocations: 57.41 MB / 0.6079 GB, free: 160.2 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)