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.000994/0.0009936, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.00114/0.00114, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.703/1.703, allocations: 205.4 MB / 222.1 MB, free: 5.676 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.0004875/0.0004876, allocations: 8 kB / 278.9 MB, free: 12.86 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2705, allocations: 47.58 MB / 326.4 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.05436/0.3249, allocations: 53.05 MB / 379.5 MB, free: 14.36 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02651/0.3514, allocations: 19.25 MB / 398.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002024/0.3535, allocations: 43.62 kB / 398.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002218/0.3557, allocations: 0.5754 MB / 399.4 MB, free: 10.44 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01738/0.3731, allocations: 4.866 MB / 404.2 MB, free: 5.562 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009431/0.3826, allocations: 2.739 MB / 407 MB, free: 2.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02164/0.4043, allocations: 12.69 MB / 419.7 MB, free: 6.117 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001571/0.4059, allocations: 0.6046 MB / 420.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002443/0.4083, allocations: 0.9266 MB / 421.2 MB, free: 4.566 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001135/0.4095, allocations: 0.6536 MB / 421.8 MB, free: 3.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001288/0.4096, allocations: 48 kB / 421.9 MB, free: 3.863 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01672/0.4264, allocations: 7.425 MB / 429.3 MB, free: 12.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005781/0.427, allocations: 235 kB / 429.5 MB, free: 12.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006875/0.4277, allocations: 293 kB / 429.8 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009915/0.4376, allocations: 3.898 MB / 433.7 MB, free: 8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.4376, allocations: 4 kB / 433.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.4377, allocations: 0 / 433.7 MB, free: 7.996 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.186e-05/0.4377, allocations: 0 / 433.7 MB, free: 7.996 MB / 366.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.006751/0.4444, allocations: 2.19 MB / 435.9 MB, free: 5.75 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.067e-05/0.4445, allocations: 8.031 kB / 435.9 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004806/0.4493, allocations: 0.6656 MB / 436.6 MB, free: 5.074 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002343/0.4517, allocations: 0.9532 MB / 437.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.596e-05/0.4518, allocations: 74.02 kB / 437.6 MB, free: 4.004 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001273/0.4519, allocations: 96 kB / 437.7 MB, free: 3.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003496/0.4554, allocations: 1.659 MB / 439.4 MB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.55e-05/0.4555, allocations: 7.938 kB / 439.4 MB, free: 2.098 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.4556, allocations: 51.94 kB / 439.4 MB, free: 2.047 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.489e-05/0.4556, allocations: 32 kB / 439.5 MB, free: 2.016 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00328/0.4589, allocations: 1.451 MB / 440.9 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/0.4698, allocations: 8.427 MB / 449.3 MB, free: 7.523 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003096/0.4729, allocations: 1.694 MB / 451 MB, free: 5.664 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4106/0.8836, allocations: 63.97 MB / 0.5029 GB, free: 60.31 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.602e-05/0.8837, allocations: 43.97 kB / 0.503 GB, free: 60.26 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 3.055e-06/0.8837, allocations: 0.9844 kB / 0.503 GB, free: 60.26 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005544/0.8893, allocations: 1.98 MB / 0.5049 GB, free: 58.31 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.015e-05/0.8893, allocations: 195.1 kB / 0.5051 GB, free: 58.08 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001345/0.8907, allocations: 0.9574 MB / 0.506 GB, free: 57.14 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001015/0.8908, allocations: 41.7 kB / 0.5061 GB, free: 57.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003812/0.8912, allocations: 0.5674 MB / 0.5066 GB, free: 56.54 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000253/0.8915, allocations: 274.6 kB / 0.5069 GB, free: 56.27 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.922e-05/0.8915, allocations: 31.66 kB / 0.5069 GB, free: 56.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.985e-05/0.8916, allocations: 345.9 kB / 0.5073 GB, free: 55.9 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004852/0.8921, allocations: 298.5 kB / 0.5075 GB, free: 55.61 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007084/0.8928, allocations: 0.7369 MB / 0.5083 GB, free: 54.68 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006117/0.8935, allocations: 405.7 kB / 0.5086 GB, free: 54.29 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.8935, allocations: 8 kB / 0.5086 GB, free: 54.28 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001893/0.8954, allocations: 1.231 MB / 0.5099 GB, free: 53.04 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.8954, allocations: 12 kB / 0.5099 GB, free: 53.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.722e-05/0.8954, allocations: 16.84 kB / 0.5099 GB, free: 53.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003044/0.8985, allocations: 0.5225 MB / 0.5104 GB, free: 52.48 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009947/0.8995, allocations: 279.5 kB / 0.5107 GB, free: 52.21 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000802/0.9003, allocations: 1.377 MB / 0.512 GB, free: 50.79 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009956/0.9013, allocations: 162.5 kB / 0.5122 GB, free: 50.63 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.77e-05/0.9014, allocations: 67.98 kB / 0.5122 GB, free: 50.56 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 (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.0004871/0.9019, allocations: 292 kB / 0.5125 GB, free: 50.27 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002389/0.9022, allocations: 122.6 kB / 0.5126 GB, free: 50.15 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004079/0.9063, allocations: 4.517 MB / 0.517 GB, free: 45.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.458e-05/0.9063, allocations: 39.94 kB / 0.5171 GB, free: 45.59 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.216e-05/0.9063, allocations: 4 kB / 0.5171 GB, free: 45.58 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.9063, allocations: 7.984 kB / 0.5171 GB, free: 45.57 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004873/0.9112, allocations: 4.938 MB / 0.5219 GB, free: 40.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.9113, allocations: 4 kB / 0.5219 GB, free: 40.46 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007375/0.912, allocations: 171.7 kB / 0.5221 GB, free: 40.3 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003545/0.9156, allocations: 1.59 MB / 0.5236 GB, free: 38.71 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.285e-05/0.9157, allocations: 27.98 kB / 0.5236 GB, free: 38.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00102/0.9167, allocations: 1.744 MB / 0.5253 GB, free: 36.88 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.757e-06/0.9167, allocations: 3.953 kB / 0.5254 GB, free: 36.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.9188, allocations: 2.022 MB / 0.5273 GB, free: 34.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006013/0.9195, allocations: 357.8 kB / 0.5277 GB, free: 34.42 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002576/0.9197, allocations: 23.42 kB / 0.5277 GB, free: 34.4 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007327/0.9205, allocations: 63.8 kB / 0.5278 GB, free: 34.34 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.241e-05/0.9205, allocations: 48.5 kB / 0.5278 GB, free: 34.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.447e-05/0.9206, allocations: 39.97 kB / 0.5278 GB, free: 34.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001139/0.9218, allocations: 0.8186 MB / 0.5286 GB, free: 33.43 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.9218, allocations: 0 / 0.5286 GB, free: 33.43 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003964/0.9257, allocations: 1.281 MB / 0.5299 GB, free: 32.23 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 (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.005802/0.9316, allocations: 1.243 MB / 0.5311 GB, free: 31.18 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00252/0.9341, allocations: 1.259 MB / 0.5323 GB, free: 29.93 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.5e-06/0.9341, allocations: 3.656 kB / 0.5323 GB, free: 29.93 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001389/0.9355, allocations: 0.914 MB / 0.5332 GB, free: 29.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003346/0.9389, allocations: 0.6819 MB / 0.5339 GB, free: 28.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004256/0.9431, allocations: 3.709 MB / 0.5375 GB, free: 24.61 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006412/0.9438, allocations: 1.348 MB / 0.5388 GB, free: 23.23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001272/0.9451, allocations: 0.6419 MB / 0.5395 GB, free: 22.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002667/0.9454, allocations: 123.4 kB / 0.5396 GB, free: 22.46 MB / 382.1 MB Notification: Performance of SimCode: time 7.92e-07/0.9454, allocations: 0 / 0.5396 GB, free: 22.46 MB / 382.1 MB Notification: Performance of Templates: time 0.07952/1.025, allocations: 55.77 MB / 0.594 GB, free: 14.61 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: