Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001097/0.001097, allocations: 93.27 kB / 16.3 MB, free: 6.133 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.001214/0.001214, allocations: 179 kB / 17.2 MB, free: 6.016 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.683/1.683, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.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.0004583/0.0004583, allocations: 8 kB / 280.1 MB, free: 3.75 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1209, allocations: 47.58 MB / 327.7 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2758/0.3967, allocations: 53.04 MB / 380.7 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02434/0.4211, allocations: 19.26 MB / 400 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001914/0.4231, allocations: 37.91 kB / 400 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001912/0.425, allocations: 0.5708 MB / 400.6 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0165/0.4415, allocations: 4.873 MB / 405.5 MB, free: 11.55 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009287/0.4508, allocations: 2.727 MB / 408.2 MB, free: 11.43 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01842/0.4693, allocations: 12.71 MB / 420.9 MB, free: 7.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001157/0.4705, allocations: 0.5958 MB / 421.5 MB, free: 7.535 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002066/0.4725, allocations: 0.9261 MB / 422.4 MB, free: 6.863 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009296/0.4735, allocations: 0.6474 MB / 423.1 MB, free: 6.344 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001032/0.4736, allocations: 56 kB / 423.1 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01472/0.4883, allocations: 7.435 MB / 430.6 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005598/0.4889, allocations: 229 kB / 430.8 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007936/0.4897, allocations: 291.8 kB / 431.1 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009306/0.499, allocations: 3.898 MB / 435 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.4991, allocations: 0 / 435 MB, free: 11.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.4991, allocations: 4 kB / 435 MB, free: 11.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.662e-05/0.4991, allocations: 4 kB / 435 MB, free: 11.83 MB / 334.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.005846/0.505, allocations: 2.187 MB / 437.2 MB, free: 9.609 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.505, allocations: 12.03 kB / 437.2 MB, free: 9.598 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004571/0.5096, allocations: 0.657 MB / 437.8 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00178/0.5114, allocations: 0.9621 MB / 438.8 MB, free: 7.961 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.253e-05/0.5115, allocations: 77.95 kB / 438.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.5116, allocations: 96 kB / 439 MB, free: 7.789 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003343/0.515, allocations: 1.664 MB / 440.6 MB, free: 5.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.333e-05/0.515, allocations: 3.938 kB / 440.6 MB, free: 5.977 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001033/0.5151, allocations: 48 kB / 440.7 MB, free: 5.93 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.5151, allocations: 28 kB / 440.7 MB, free: 5.902 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003278/0.5184, allocations: 1.459 MB / 442.2 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009528/0.528, allocations: 8.434 MB / 450.6 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003064/0.531, allocations: 1.687 MB / 452.3 MB, free: 9.633 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1283/0.6593, allocations: 63.97 MB / 0.5042 GB, free: 2.18 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.502e-05/0.6594, allocations: 47.06 kB / 0.5042 GB, free: 2.125 MB / 414.1 MB Notification: Performance of pre-optimization done (n=77): time 2.955e-06/0.6594, allocations: 0 / 0.5042 GB, free: 2.125 MB / 414.1 MB Notification: Performance of matching and sorting (n=77): time 0.006012/0.6654, allocations: 1.979 MB / 0.5061 GB, free: 120 kB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/0.6656, allocations: 188.5 kB / 0.5063 GB, free: 15.89 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001435/0.667, allocations: 0.9566 MB / 0.5073 GB, free: 14.91 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 9.42e-05/0.6671, allocations: 45.69 kB / 0.5073 GB, free: 14.86 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004705/0.6676, allocations: 0.5609 MB / 0.5079 GB, free: 14.3 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002911/0.6679, allocations: 274 kB / 0.5081 GB, free: 14.03 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.612e-05/0.668, allocations: 31.88 kB / 0.5081 GB, free: 14 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.6682, allocations: 353.9 kB / 0.5085 GB, free: 13.65 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005673/0.6687, allocations: 298.5 kB / 0.5088 GB, free: 13.36 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008363/0.6696, allocations: 0.7314 MB / 0.5095 GB, free: 12.43 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007138/0.6703, allocations: 415.7 kB / 0.5099 GB, free: 12.03 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.16e-05/0.6703, allocations: 4 kB / 0.5099 GB, free: 12.02 MB / 430.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002175/0.6725, allocations: 1.233 MB / 0.5111 GB, free: 10.78 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.161e-05/0.6726, allocations: 12.94 kB / 0.5111 GB, free: 10.77 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.241e-05/0.6726, allocations: 12 kB / 0.5111 GB, free: 10.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003146/0.6757, allocations: 0.5312 MB / 0.5116 GB, free: 10.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.6768, allocations: 279.5 kB / 0.5119 GB, free: 9.949 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001136/0.678, allocations: 1.376 MB / 0.5132 GB, free: 8.527 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001084/0.6791, allocations: 162.7 kB / 0.5134 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.6792, allocations: 63.98 kB / 0.5135 GB, free: 8.305 MB / 430.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005666/0.6798, allocations: 300 kB / 0.5137 GB, free: 8 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002841/0.6801, allocations: 126.5 kB / 0.5139 GB, free: 7.875 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005183/0.6853, allocations: 4.501 MB / 0.5183 GB, free: 3.395 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-05/0.6853, allocations: 43.92 kB / 0.5183 GB, free: 3.352 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.117e-05/0.6854, allocations: 4 kB / 0.5183 GB, free: 3.348 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.344e-05/0.6854, allocations: 3.984 kB / 0.5183 GB, free: 3.344 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005949/0.6913, allocations: 4.948 MB / 0.5231 GB, free: 14.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-05/0.6914, allocations: 4 kB / 0.5231 GB, free: 14.22 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008482/0.6922, allocations: 167.7 kB / 0.5233 GB, free: 14.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004014/0.6963, allocations: 1.594 MB / 0.5249 GB, free: 12.46 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.602e-05/0.6964, allocations: 23.98 kB / 0.5249 GB, free: 12.44 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001421/0.6978, allocations: 1.751 MB / 0.5266 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.511e-06/0.6978, allocations: 4 kB / 0.5266 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002673/0.7005, allocations: 2.022 MB / 0.5286 GB, free: 8.551 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000693/0.7012, allocations: 361.8 kB / 0.5289 GB, free: 8.176 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003014/0.7015, allocations: 16 kB / 0.5289 GB, free: 8.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008265/0.7023, allocations: 59.86 kB / 0.529 GB, free: 8.102 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.45e-05/0.7024, allocations: 52.48 kB / 0.529 GB, free: 8.051 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.496e-05/0.7025, allocations: 35.98 kB / 0.5291 GB, free: 8.016 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001237/0.7038, allocations: 0.8225 MB / 0.5299 GB, free: 7.191 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.7038, allocations: 0 / 0.5299 GB, free: 7.191 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004091/0.7079, allocations: 1.28 MB / 0.5311 GB, free: 5.91 MB / 446.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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005449/0.7133, allocations: 1.249 MB / 0.5323 GB, free: 4.758 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002751/0.7161, allocations: 1.254 MB / 0.5336 GB, free: 3.508 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.7161, allocations: 0 / 0.5336 GB, free: 3.508 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001654/0.7178, allocations: 0.9079 MB / 0.5345 GB, free: 2.602 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003579/0.7214, allocations: 0.6888 MB / 0.5351 GB, free: 1.91 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1874/0.9088, allocations: 3.702 MB / 0.5387 GB, free: 152.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008754/0.9097, allocations: 1.352 MB / 0.5401 GB, free: 151.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001316/0.911, allocations: 0.6284 MB / 0.5407 GB, free: 151.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000235/0.9112, allocations: 121 kB / 0.5408 GB, free: 151.9 MB / 446.1 MB Notification: Performance of SimCode: time 9.01e-07/0.9113, allocations: 0 / 0.5408 GB, free: 151.9 MB / 446.1 MB Notification: Performance of Templates: time 0.06831/0.9796, allocations: 55.8 MB / 0.5953 GB, free: 111.5 MB / 446.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1) Environment - environmentSimulation: