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.001345/0.001345, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.00116/0.00116, allocations: 191.4 kB / 16.13 MB, free: 6.668 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.398/1.398, allocations: 205.1 MB / 222 MB, free: 4.73 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.001079/0.001079, allocations: 47.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2101, allocations: 46.62 MB / 324.7 MB, free: 1.953 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.05582/0.2659, allocations: 64.5 MB / 389.2 MB, free: 3.48 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02833/0.2943, allocations: 23.62 MB / 412.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001747/0.2961, allocations: 35.69 kB / 412.8 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002024/0.2982, allocations: 0.6372 MB / 413.5 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01432/0.3125, allocations: 4.752 MB / 418.2 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008219/0.3208, allocations: 3.009 MB / 421.2 MB, free: 3.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01759/0.3384, allocations: 9.633 MB / 430.9 MB, free: 9.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001202/0.3396, allocations: 0.6018 MB / 431.5 MB, free: 8.953 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/0.3415, allocations: 0.9452 MB / 432.4 MB, free: 8.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009776/0.3424, allocations: 0.8362 MB / 433.2 MB, free: 7.164 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001244/0.3426, allocations: 52 kB / 433.3 MB, free: 7.113 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01303/0.3556, allocations: 7.543 MB / 440.8 MB, free: 15.56 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002684/0.3559, allocations: 254.8 kB / 441.1 MB, free: 15.31 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000813/0.3567, allocations: 0.6647 MB / 441.7 MB, free: 14.64 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01087/0.3676, allocations: 5.714 MB / 447.5 MB, free: 8.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.3677, allocations: 0 / 447.5 MB, free: 8.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.002e-06/0.3677, allocations: 0 / 447.5 MB, free: 8.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.907e-05/0.3677, allocations: 4 kB / 447.5 MB, free: 8.914 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.006501/0.3742, allocations: 2.459 MB / 449.9 MB, free: 6.398 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.3742, allocations: 8.031 kB / 449.9 MB, free: 6.391 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004667/0.3789, allocations: 0.6548 MB / 450.6 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001855/0.3808, allocations: 0.9967 MB / 451.6 MB, free: 4.695 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.913e-05/0.3809, allocations: 78.39 kB / 451.7 MB, free: 4.617 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001317/0.381, allocations: 99.94 kB / 451.8 MB, free: 4.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00345/0.3845, allocations: 1.671 MB / 453.4 MB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.6e-05/0.3845, allocations: 7.938 kB / 453.4 MB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.3846, allocations: 44 kB / 453.5 MB, free: 2.652 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.345e-05/0.3846, allocations: 31.98 kB / 453.5 MB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003224/0.3879, allocations: 1.463 MB / 455 MB, free: 1.156 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.15/0.5378, allocations: 8.394 MB / 463.4 MB, free: 111.4 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002851/0.5407, allocations: 1.693 MB / 465.1 MB, free: 110.3 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006172/0.5414, allocations: 403.8 kB / 465.4 MB, free: 110.1 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1012/0.6426, allocations: 63.39 MB / 0.5164 GB, free: 45.93 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.623e-05/0.6426, allocations: 47.12 kB / 0.5165 GB, free: 45.88 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.224e-06/0.6426, allocations: 0 / 0.5165 GB, free: 45.88 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005355/0.648, allocations: 1.991 MB / 0.5184 GB, free: 43.86 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.185e-05/0.6481, allocations: 192.5 kB / 0.5186 GB, free: 43.63 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/0.6492, allocations: 0.9671 MB / 0.5196 GB, free: 42.65 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.775e-05/0.6493, allocations: 37.7 kB / 0.5196 GB, free: 42.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003021/0.6496, allocations: 0.5684 MB / 0.5202 GB, free: 42.05 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001755/0.6498, allocations: 282.2 kB / 0.5204 GB, free: 41.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002596/0.65, allocations: 230.7 kB / 0.5206 GB, free: 41.55 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.915e-05/0.6501, allocations: 353.9 kB / 0.521 GB, free: 41.2 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000459/0.6506, allocations: 294.5 kB / 0.5213 GB, free: 40.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006429/0.6512, allocations: 0.7472 MB / 0.522 GB, free: 39.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001126/0.6523, allocations: 1.094 MB / 0.5231 GB, free: 38.67 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.898e-06/0.6524, allocations: 7.562 kB / 0.5231 GB, free: 38.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001848/0.6542, allocations: 1.247 MB / 0.5243 GB, free: 37.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.6543, allocations: 15.98 kB / 0.5243 GB, free: 37.4 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.6543, allocations: 15.94 kB / 0.5243 GB, free: 37.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003196/0.6575, allocations: 0.5188 MB / 0.5248 GB, free: 36.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000981/0.6585, allocations: 279.6 kB / 0.5251 GB, free: 36.59 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008104/0.6593, allocations: 1.373 MB / 0.5264 GB, free: 35.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008848/0.6602, allocations: 166.5 kB / 0.5266 GB, free: 35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.277e-05/0.6603, allocations: 63.98 kB / 0.5266 GB, free: 34.94 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.0003969/0.6607, allocations: 300.2 kB / 0.5269 GB, free: 34.64 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002367/0.6609, allocations: 118.6 kB / 0.527 GB, free: 34.52 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003705/0.6646, allocations: 4.518 MB / 0.5315 GB, free: 30 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.018e-05/0.6647, allocations: 43.94 kB / 0.5315 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.847e-06/0.6647, allocations: 3.984 kB / 0.5315 GB, free: 29.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.6647, allocations: 3.984 kB / 0.5315 GB, free: 29.95 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004553/0.6693, allocations: 4.946 MB / 0.5363 GB, free: 24.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.917e-06/0.6693, allocations: 0 / 0.5363 GB, free: 24.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007551/0.6701, allocations: 171.6 kB / 0.5365 GB, free: 24.68 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003548/0.6736, allocations: 1.59 MB / 0.5381 GB, free: 23.08 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.416e-05/0.6737, allocations: 20 kB / 0.5381 GB, free: 23.06 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009369/0.6746, allocations: 1.755 MB / 0.5398 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.6746, allocations: 4.094 kB / 0.5398 GB, free: 21.26 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.6765, allocations: 2.029 MB / 0.5418 GB, free: 19.17 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003/0.6768, allocations: 266.3 kB / 0.542 GB, free: 18.89 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001853/0.677, allocations: 35.69 kB / 0.5421 GB, free: 18.85 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006172/0.6776, allocations: 59.81 kB / 0.5421 GB, free: 18.79 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.525e-05/0.6777, allocations: 60.48 kB / 0.5422 GB, free: 18.73 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.788e-05/0.6778, allocations: 31.98 kB / 0.5422 GB, free: 18.7 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008159/0.6786, allocations: 0.8303 MB / 0.543 GB, free: 17.87 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6786, allocations: 0 / 0.543 GB, free: 17.87 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003033/0.6816, allocations: 1.284 MB / 0.5443 GB, free: 16.67 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.004454/0.6861, allocations: 1.259 MB / 0.5455 GB, free: 15.62 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.6882, allocations: 1.259 MB / 0.5467 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.6882, allocations: 5.625 kB / 0.5467 GB, free: 14.36 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001215/0.6894, allocations: 0.9033 MB / 0.5476 GB, free: 13.45 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00308/0.6925, allocations: 0.6996 MB / 0.5483 GB, free: 12.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003512/0.6961, allocations: 3.763 MB / 0.552 GB, free: 8.965 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005192/0.6966, allocations: 1.318 MB / 0.5533 GB, free: 7.621 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001121/0.6977, allocations: 0.6349 MB / 0.5539 GB, free: 6.984 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002421/0.698, allocations: 123.4 kB / 0.554 GB, free: 6.863 MB / 382.1 MB Notification: Performance of SimCode: time 3.71e-07/0.698, allocations: 0 / 0.554 GB, free: 6.863 MB / 382.1 MB Notification: Performance of Templates: time 0.2168/0.9148, allocations: 56.24 MB / 0.6089 GB, free: 159.7 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)