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.001212/0.001212, 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.001314/0.001314, allocations: 193 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.336/1.336, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.00127/0.00127, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2168/0.218, allocations: 46.63 MB / 325.3 MB, free: 1.844 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.05794/0.276, allocations: 62.86 MB / 388.2 MB, free: 4.84 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02636/0.3024, allocations: 22.45 MB / 410.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001535/0.304, allocations: 27.81 kB / 410.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001978/0.306, allocations: 0.7218 MB / 411.4 MB, free: 13.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01544/0.3215, allocations: 5.777 MB / 417.1 MB, free: 7.766 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01011/0.3316, allocations: 3.451 MB / 420.6 MB, free: 4.301 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01975/0.3514, allocations: 9.06 MB / 429.6 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001623/0.3531, allocations: 0.6885 MB / 430.3 MB, free: 10.42 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002537/0.3556, allocations: 1.035 MB / 431.4 MB, free: 9.383 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.3574, allocations: 0.8324 MB / 432.2 MB, free: 8.547 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003916/0.3578, allocations: 92 kB / 432.3 MB, free: 8.457 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01586/0.3737, allocations: 7.492 MB / 439.8 MB, free: 0.957 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008141/0.3745, allocations: 282.9 kB / 440.1 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001294/0.3758, allocations: 0.7154 MB / 440.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01249/0.3883, allocations: 5.733 MB / 446.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3884, allocations: 4 kB / 446.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.903e-06/0.3884, allocations: 0 / 446.5 MB, free: 10.21 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.645e-05/0.3885, allocations: 0 / 446.5 MB, free: 10.21 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.006907/0.3954, allocations: 2.462 MB / 449 MB, free: 7.691 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3954, allocations: 8.031 kB / 449 MB, free: 7.684 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004856/0.4003, allocations: 0.6588 MB / 449.6 MB, free: 7.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/0.4025, allocations: 0.9928 MB / 450.6 MB, free: 5.988 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.978e-05/0.4026, allocations: 78.39 kB / 450.7 MB, free: 5.91 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002073/0.4028, allocations: 99.94 kB / 450.8 MB, free: 5.812 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004029/0.4068, allocations: 1.675 MB / 452.5 MB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.4069, allocations: 3.938 kB / 452.5 MB, free: 3.988 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.407, allocations: 48 kB / 452.5 MB, free: 3.941 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/0.407, allocations: 24 kB / 452.6 MB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003513/0.4106, allocations: 1.467 MB / 454 MB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1606/0.5712, allocations: 8.415 MB / 462.4 MB, free: 112.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002746/0.574, allocations: 1.699 MB / 464.1 MB, free: 111.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/0.5746, allocations: 407.1 kB / 464.5 MB, free: 111.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1105/0.6851, allocations: 63.38 MB / 0.5155 GB, free: 47.2 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.9e-05/0.6851, allocations: 47.06 kB / 0.5156 GB, free: 47.14 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.435e-06/0.6852, allocations: 4 kB / 0.5156 GB, free: 47.14 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005577/0.6907, allocations: 1.991 MB / 0.5175 GB, free: 45.16 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.6908, allocations: 192.5 kB / 0.5177 GB, free: 44.93 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001041/0.6919, allocations: 0.9583 MB / 0.5187 GB, free: 43.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.629e-05/0.6919, allocations: 41.7 kB / 0.5187 GB, free: 43.91 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002866/0.6922, allocations: 0.5794 MB / 0.5193 GB, free: 43.36 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.6924, allocations: 271.6 kB / 0.5195 GB, free: 43.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002482/0.6926, allocations: 234.7 kB / 0.5197 GB, free: 42.86 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.866e-05/0.6927, allocations: 345.9 kB / 0.5201 GB, free: 42.51 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004632/0.6932, allocations: 302.5 kB / 0.5204 GB, free: 42.22 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006287/0.6938, allocations: 0.742 MB / 0.5211 GB, free: 41.28 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/0.695, allocations: 1.102 MB / 0.5222 GB, free: 39.99 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.695, allocations: 7.562 kB / 0.5222 GB, free: 39.98 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001851/0.6969, allocations: 1.247 MB / 0.5234 GB, free: 38.73 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.156e-05/0.6969, allocations: 12 kB / 0.5234 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.697, allocations: 12 kB / 0.5234 GB, free: 38.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003123/0.7001, allocations: 0.52 MB / 0.5239 GB, free: 38.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009629/0.7011, allocations: 287.5 kB / 0.5242 GB, free: 37.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007448/0.7018, allocations: 1.383 MB / 0.5255 GB, free: 36.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008156/0.7026, allocations: 122.6 kB / 0.5257 GB, free: 36.35 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.356e-05/0.7027, allocations: 68.03 kB / 0.5257 GB, free: 36.29 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.0004464/0.7032, allocations: 296.9 kB / 0.526 GB, free: 35.99 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002646/0.7035, allocations: 126.5 kB / 0.5261 GB, free: 35.87 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003812/0.7073, allocations: 4.503 MB / 0.5305 GB, free: 31.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.069e-05/0.7073, allocations: 43.94 kB / 0.5306 GB, free: 31.31 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.748e-06/0.7074, allocations: 3.984 kB / 0.5306 GB, free: 31.3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.059e-05/0.7074, allocations: 7.984 kB / 0.5306 GB, free: 31.3 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004466/0.7118, allocations: 4.952 MB / 0.5354 GB, free: 26.18 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-05/0.7119, allocations: 0 / 0.5354 GB, free: 26.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007583/0.7127, allocations: 175.6 kB / 0.5356 GB, free: 26.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001351/0.714, allocations: 0.6645 MB / 0.5362 GB, free: 25.34 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.766e-05/0.7141, allocations: 27.98 kB / 0.5363 GB, free: 25.31 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00101/0.7151, allocations: 1.758 MB / 0.538 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.7151, allocations: 3.984 kB / 0.538 GB, free: 23.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.7171, allocations: 2.032 MB / 0.54 GB, free: 21.42 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003209/0.7174, allocations: 266.3 kB / 0.5402 GB, free: 21.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002336/0.7177, allocations: 39.69 kB / 0.5403 GB, free: 21.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005836/0.7183, allocations: 19.98 kB / 0.5403 GB, free: 21.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.7184, allocations: 48.5 kB / 0.5403 GB, free: 21.03 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.662e-05/0.7184, allocations: 39.97 kB / 0.5404 GB, free: 20.99 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009384/0.7194, allocations: 0.8303 MB / 0.5412 GB, free: 20.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.7194, allocations: 4 kB / 0.5412 GB, free: 20.15 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00374/0.7231, allocations: 1.276 MB / 0.5424 GB, free: 18.96 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.004696/0.7278, allocations: 1.25 MB / 0.5436 GB, free: 17.85 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003078/0.7309, allocations: 1.303 MB / 0.5449 GB, free: 16.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.7309, allocations: 0 / 0.5449 GB, free: 16.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001305/0.7323, allocations: 0.9109 MB / 0.5458 GB, free: 15.64 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003392/0.7357, allocations: 0.7368 MB / 0.5465 GB, free: 14.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003506/0.7392, allocations: 3.074 MB / 0.5495 GB, free: 11.81 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.7397, allocations: 1.316 MB / 0.5508 GB, free: 10.46 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001184/0.7409, allocations: 0.6355 MB / 0.5514 GB, free: 9.828 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002246/0.7412, allocations: 131.4 kB / 0.5516 GB, free: 9.699 MB / 382.1 MB Notification: Performance of SimCode: time 6.32e-07/0.7412, allocations: 0 / 0.5516 GB, free: 9.699 MB / 382.1 MB Notification: Performance of Templates: time 0.07898/0.8201, allocations: 57.52 MB / 0.6077 GB, free: 104 kB / 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)