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.001368/0.001368, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001738/0.001738, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.589/1.589, allocations: 205.1 MB / 222.4 MB, free: 4.586 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.001954/0.001954, allocations: 51.92 kB / 278.7 MB, free: 12.4 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3097/0.3116, allocations: 46.63 MB / 325.3 MB, free: 1.887 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.05789/0.3696, allocations: 62.85 MB / 388.2 MB, free: 4.895 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02642/0.396, allocations: 22.45 MB / 410.6 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001368/0.3975, allocations: 31.81 kB / 410.6 MB, free: 14.34 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001772/0.3993, allocations: 0.7257 MB / 411.4 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01775/0.417, allocations: 5.789 MB / 417.1 MB, free: 7.801 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009527/0.4266, allocations: 3.439 MB / 420.6 MB, free: 4.348 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01799/0.4446, allocations: 9.048 MB / 429.6 MB, free: 11.18 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.4461, allocations: 0.6962 MB / 430.3 MB, free: 10.47 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002258/0.4484, allocations: 1.031 MB / 431.4 MB, free: 9.438 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001203/0.4496, allocations: 0.8363 MB / 432.2 MB, free: 8.598 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001632/0.4498, allocations: 92 kB / 432.3 MB, free: 8.508 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0143/0.4641, allocations: 7.489 MB / 439.8 MB, free: 1.012 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004509/0.4646, allocations: 290.9 kB / 440.1 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009953/0.4656, allocations: 0.7076 MB / 440.8 MB, free: 16 kB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01417/0.4797, allocations: 5.741 MB / 446.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.4798, allocations: 0 / 446.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4798, allocations: 0 / 446.5 MB, free: 10.26 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.717e-05/0.4798, allocations: 4 kB / 446.5 MB, free: 10.26 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.006282/0.4861, allocations: 2.455 MB / 449 MB, free: 7.746 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.537e-05/0.4862, allocations: 12.03 kB / 449 MB, free: 7.734 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004694/0.4909, allocations: 0.6549 MB / 449.6 MB, free: 7.078 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001985/0.4929, allocations: 0.9927 MB / 450.6 MB, free: 6.043 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.613e-05/0.493, allocations: 74.39 kB / 450.7 MB, free: 5.969 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001723/0.4931, allocations: 103.9 kB / 450.8 MB, free: 5.867 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003717/0.4969, allocations: 1.671 MB / 452.5 MB, free: 4.051 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.652e-05/0.4969, allocations: 7.938 kB / 452.5 MB, free: 4.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001163/0.497, allocations: 44 kB / 452.5 MB, free: 4 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.4971, allocations: 28 kB / 452.6 MB, free: 3.973 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003319/0.5004, allocations: 1.471 MB / 454 MB, free: 2.496 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2121/0.7125, allocations: 8.425 MB / 462.4 MB, free: 112.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003141/0.7157, allocations: 1.693 MB / 464.1 MB, free: 111.5 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000674/0.7164, allocations: 402.5 kB / 464.5 MB, free: 111.3 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1256/0.842, allocations: 63.4 MB / 0.5156 GB, free: 47.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.164e-05/0.8421, allocations: 43.06 kB / 0.5156 GB, free: 46.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 6.031e-06/0.8421, allocations: 0 / 0.5156 GB, free: 46.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.007151/0.8493, allocations: 1.992 MB / 0.5175 GB, free: 44.98 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.109e-05/0.8494, allocations: 196.5 kB / 0.5177 GB, free: 44.75 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001936/0.8513, allocations: 0.9583 MB / 0.5187 GB, free: 43.78 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001246/0.8515, allocations: 41.7 kB / 0.5187 GB, free: 43.73 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004857/0.852, allocations: 0.5705 MB / 0.5193 GB, free: 43.18 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003134/0.8523, allocations: 280.8 kB / 0.5195 GB, free: 42.91 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000419/0.8527, allocations: 234.7 kB / 0.5198 GB, free: 42.68 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.785e-05/0.8528, allocations: 341.9 kB / 0.5201 GB, free: 42.34 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007269/0.8535, allocations: 306.5 kB / 0.5204 GB, free: 42.04 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001004/0.8546, allocations: 0.7391 MB / 0.5211 GB, free: 41.1 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001824/0.8564, allocations: 1.105 MB / 0.5222 GB, free: 39.81 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.529e-05/0.8564, allocations: 4 kB / 0.5222 GB, free: 39.8 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.00296/0.8594, allocations: 1.247 MB / 0.5234 GB, free: 38.55 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.226e-05/0.8594, allocations: 12 kB / 0.5234 GB, free: 38.54 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.596e-05/0.8595, allocations: 12 kB / 0.5234 GB, free: 38.52 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004132/0.8636, allocations: 0.5242 MB / 0.5239 GB, free: 38 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001333/0.865, allocations: 283.5 kB / 0.5242 GB, free: 37.72 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.8661, allocations: 1.379 MB / 0.5255 GB, free: 36.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.8674, allocations: 130.5 kB / 0.5257 GB, free: 36.17 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001439/0.8676, allocations: 68.03 kB / 0.5257 GB, free: 36.1 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.0006589/0.8683, allocations: 292 kB / 0.526 GB, free: 35.81 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004836/0.8688, allocations: 123.3 kB / 0.5261 GB, free: 35.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005892/0.8747, allocations: 4.51 MB / 0.5305 GB, free: 31.17 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.091e-05/0.8747, allocations: 46.7 kB / 0.5306 GB, free: 31.13 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.209e-05/0.8748, allocations: 7.922 kB / 0.5306 GB, free: 31.12 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.323e-05/0.8748, allocations: 3.984 kB / 0.5306 GB, free: 31.12 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006448/0.8812, allocations: 4.945 MB / 0.5354 GB, free: 26.01 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.374e-05/0.8813, allocations: 4 kB / 0.5354 GB, free: 26 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001015/0.8823, allocations: 167.7 kB / 0.5356 GB, free: 25.84 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001782/0.8841, allocations: 0.6684 MB / 0.5362 GB, free: 25.16 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.737e-05/0.8842, allocations: 23.98 kB / 0.5363 GB, free: 25.14 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001385/0.8856, allocations: 1.758 MB / 0.538 GB, free: 23.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.337e-06/0.8856, allocations: 0 / 0.538 GB, free: 23.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.8879, allocations: 2.029 MB / 0.54 GB, free: 21.25 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003999/0.8883, allocations: 266.3 kB / 0.5402 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002741/0.8886, allocations: 39.62 kB / 0.5403 GB, free: 20.93 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006241/0.8892, allocations: 23.98 kB / 0.5403 GB, free: 20.91 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.478e-05/0.8893, allocations: 48.5 kB / 0.5403 GB, free: 20.86 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.464e-05/0.8893, allocations: 43.77 kB / 0.5404 GB, free: 20.82 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000972/0.8903, allocations: 0.8303 MB / 0.5412 GB, free: 19.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8903, allocations: 0 / 0.5412 GB, free: 19.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003542/0.8939, allocations: 1.277 MB / 0.5424 GB, free: 18.79 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.005216/0.8991, allocations: 1.255 MB / 0.5436 GB, free: 17.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003352/0.9025, allocations: 1.302 MB / 0.5449 GB, free: 16.45 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.9025, allocations: 0 / 0.5449 GB, free: 16.45 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001464/0.904, allocations: 0.907 MB / 0.5458 GB, free: 15.54 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003824/0.9078, allocations: 0.7288 MB / 0.5465 GB, free: 14.82 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004138/0.912, allocations: 3.073 MB / 0.5495 GB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006896/0.9127, allocations: 1.324 MB / 0.5508 GB, free: 10.36 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00138/0.9141, allocations: 0.6389 MB / 0.5514 GB, free: 9.719 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003012/0.9144, allocations: 127.4 kB / 0.5516 GB, free: 9.594 MB / 382.1 MB Notification: Performance of SimCode: time 1.002e-06/0.9144, allocations: 0 / 0.5516 GB, free: 9.594 MB / 382.1 MB Notification: Performance of Templates: time 0.2903/1.205, allocations: 57.53 MB / 0.6077 GB, free: 159.9 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)