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.00106/0.00106, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.009824/0.009825, allocations: 168.9 kB / 16.26 MB, free: 6.648 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.618/1.618, allocations: 205.4 MB / 222.4 MB, free: 5.57 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.0004912/0.0004913, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2754/0.2759, allocations: 47.58 MB / 327 MB, free: 1.418 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07154/0.3475, allocations: 63.32 MB / 390.3 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0341/0.3816, allocations: 23.27 MB / 413.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002455/0.3842, allocations: 35.69 kB / 413.7 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002808/0.387, allocations: 0.6332 MB / 414.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01932/0.4063, allocations: 4.744 MB / 419 MB, free: 7.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01085/0.4172, allocations: 3.012 MB / 422 MB, free: 4.07 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01861/0.4358, allocations: 9.641 MB / 431.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001405/0.4373, allocations: 0.594 MB / 432.3 MB, free: 9.703 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002252/0.4396, allocations: 0.9413 MB / 433.2 MB, free: 8.758 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00128/0.4409, allocations: 0.8362 MB / 434.1 MB, free: 7.918 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001211/0.441, allocations: 48 kB / 434.1 MB, free: 7.871 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01613/0.4571, allocations: 7.535 MB / 441.6 MB, free: 336 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005995/0.4578, allocations: 246.9 kB / 441.9 MB, free: 88 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001164/0.459, allocations: 0.6937 MB / 442.6 MB, free: 15.38 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01527/0.4742, allocations: 5.666 MB / 448.2 MB, free: 9.703 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.4743, allocations: 4 kB / 448.2 MB, free: 9.699 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.4743, allocations: 0 / 448.2 MB, free: 9.699 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.715e-05/0.4743, allocations: 0 / 448.2 MB, free: 9.699 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.006367/0.4807, allocations: 2.174 MB / 450.4 MB, free: 7.469 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.4808, allocations: 8.031 kB / 450.4 MB, free: 7.461 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004664/0.4854, allocations: 0.6626 MB / 451.1 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00215/0.4876, allocations: 0.9928 MB / 452.1 MB, free: 5.762 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.208e-05/0.4877, allocations: 74.39 kB / 452.2 MB, free: 5.688 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001449/0.4878, allocations: 103.9 kB / 452.3 MB, free: 5.586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003626/0.4915, allocations: 1.667 MB / 453.9 MB, free: 3.773 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.946e-05/0.4915, allocations: 7.938 kB / 453.9 MB, free: 3.766 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/0.4916, allocations: 48 kB / 454 MB, free: 3.719 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.455e-05/0.4917, allocations: 32 kB / 454 MB, free: 3.688 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003364/0.495, allocations: 1.459 MB / 455.5 MB, free: 2.227 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2085/0.7036, allocations: 8.412 MB / 463.9 MB, free: 111.8 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002947/0.7066, allocations: 1.691 MB / 465.6 MB, free: 110.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005925/0.7072, allocations: 402.5 kB / 466 MB, free: 110.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1079/0.8151, allocations: 63.98 MB / 0.5175 GB, free: 45.75 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.429e-05/0.8152, allocations: 41.47 kB / 0.5176 GB, free: 45.71 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.665e-06/0.8152, allocations: 0 / 0.5176 GB, free: 45.71 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005576/0.8208, allocations: 2.004 MB / 0.5195 GB, free: 43.68 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.8208, allocations: 189.8 kB / 0.5197 GB, free: 43.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.8221, allocations: 0.9602 MB / 0.5206 GB, free: 42.48 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.64e-05/0.8222, allocations: 41.7 kB / 0.5207 GB, free: 42.43 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.8225, allocations: 0.5738 MB / 0.5212 GB, free: 41.85 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.8227, allocations: 274.7 kB / 0.5215 GB, free: 41.59 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.8228, allocations: 101.7 kB / 0.5216 GB, free: 41.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.857e-05/0.8229, allocations: 349.9 kB / 0.5219 GB, free: 41.13 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004767/0.8234, allocations: 306.1 kB / 0.5222 GB, free: 40.84 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006662/0.824, allocations: 0.741 MB / 0.5229 GB, free: 39.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001146/0.8252, allocations: 1.096 MB / 0.524 GB, free: 38.61 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-05/0.8252, allocations: 4 kB / 0.524 GB, free: 38.61 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001834/0.8271, allocations: 1.25 MB / 0.5252 GB, free: 37.36 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.418e-05/0.8271, allocations: 12 kB / 0.5252 GB, free: 37.34 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.823e-05/0.8271, allocations: 17.72 kB / 0.5253 GB, free: 37.33 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003127/0.8302, allocations: 0.5293 MB / 0.5258 GB, free: 36.8 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009646/0.8312, allocations: 283.4 kB / 0.5261 GB, free: 36.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008146/0.8321, allocations: 1.372 MB / 0.5274 GB, free: 35.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009499/0.833, allocations: 162.7 kB / 0.5275 GB, free: 34.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.052e-05/0.8331, allocations: 67.92 kB / 0.5276 GB, free: 34.88 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.0004603/0.8336, allocations: 296 kB / 0.5279 GB, free: 34.58 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002301/0.8338, allocations: 122.6 kB / 0.528 GB, free: 34.46 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003881/0.8377, allocations: 4.5 MB / 0.5324 GB, free: 29.95 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.967e-05/0.8378, allocations: 47.83 kB / 0.5325 GB, free: 29.91 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.8378, allocations: 8 kB / 0.5325 GB, free: 29.9 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.072e-05/0.8378, allocations: 7.922 kB / 0.5325 GB, free: 29.89 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004517/0.8423, allocations: 4.944 MB / 0.5373 GB, free: 24.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.8423, allocations: 4 kB / 0.5373 GB, free: 24.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007109/0.8431, allocations: 167.7 kB / 0.5375 GB, free: 24.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003613/0.8467, allocations: 1.586 MB / 0.539 GB, free: 23.02 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-05/0.8468, allocations: 23.98 kB / 0.539 GB, free: 23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.8478, allocations: 1.762 MB / 0.5408 GB, free: 21.2 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.8478, allocations: 4 kB / 0.5408 GB, free: 21.19 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001991/0.8498, allocations: 2.026 MB / 0.5427 GB, free: 19.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004815/0.8503, allocations: 357.8 kB / 0.5431 GB, free: 18.73 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001926/0.8505, allocations: 19.98 kB / 0.5431 GB, free: 18.71 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006263/0.8511, allocations: 55.91 kB / 0.5431 GB, free: 18.66 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.328e-05/0.8512, allocations: 60.42 kB / 0.5432 GB, free: 18.6 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.8513, allocations: 27.98 kB / 0.5432 GB, free: 18.57 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008822/0.8522, allocations: 0.8381 MB / 0.544 GB, free: 17.73 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8522, allocations: 0 / 0.544 GB, free: 17.73 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003422/0.8556, allocations: 1.277 MB / 0.5453 GB, free: 16.54 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.005623/0.8612, allocations: 1.249 MB / 0.5465 GB, free: 15.49 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002554/0.8638, allocations: 1.259 MB / 0.5477 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.891e-06/0.8638, allocations: 0 / 0.5477 GB, free: 14.23 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001412/0.8652, allocations: 0.9171 MB / 0.5486 GB, free: 13.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003997/0.8693, allocations: 0.6955 MB / 0.5493 GB, free: 12.63 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004398/0.8737, allocations: 3.809 MB / 0.553 GB, free: 8.793 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007308/0.8744, allocations: 1.322 MB / 0.5543 GB, free: 7.441 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001388/0.8758, allocations: 0.6297 MB / 0.5549 GB, free: 6.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002969/0.8761, allocations: 123.4 kB / 0.5551 GB, free: 6.695 MB / 382.1 MB Notification: Performance of SimCode: time 1.533e-06/0.8761, allocations: 4 kB / 0.5551 GB, free: 6.691 MB / 382.1 MB Notification: Performance of Templates: time 0.2668/1.143, allocations: 56.06 MB / 0.6098 GB, free: 159 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)