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.0066/0.0066, allocations: 101.5 kB / 15.73 MB, free: 5.992 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.001185/0.001186, allocations: 189.5 kB / 16.67 MB, free: 5.914 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.644/1.644, allocations: 205.1 MB / 222.5 MB, free: 4.367 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.001221/0.001221, allocations: 51.3 kB / 326.5 MB, free: 14.45 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1221, allocations: 46.63 MB / 373.2 MB, free: 1.289 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06215/0.1844, allocations: 62.85 MB / 436 MB, free: 2.215 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3291/0.5135, allocations: 22.44 MB / 458.4 MB, free: 2.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001835/0.5153, allocations: 31.38 kB / 458.5 MB, free: 2.273 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002266/0.5177, allocations: 0.7253 MB / 459.2 MB, free: 2.273 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01699/0.5347, allocations: 5.773 MB / 465 MB, free: 2.219 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009985/0.5447, allocations: 3.451 MB / 468.4 MB, free: 2.168 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01955/0.5643, allocations: 9.041 MB / 477.5 MB, free: 264 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001639/0.5659, allocations: 0.6925 MB / 478.2 MB, free: 216 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002718/0.5687, allocations: 1.045 MB / 479.2 MB, free: 212 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001806/0.5705, allocations: 0.8332 MB / 480 MB, free: 112 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001964/0.5707, allocations: 92.72 kB / 480.1 MB, free: 112 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01858/0.5893, allocations: 7.689 MB / 487.8 MB, free: 14.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004873/0.5898, allocations: 284.3 kB / 488.1 MB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001377/0.5912, allocations: 0.7112 MB / 488.8 MB, free: 14.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01472/0.6059, allocations: 5.75 MB / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.606, allocations: 2.688 kB / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.606, allocations: 0 / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.893e-05/0.606, allocations: 0 / 494.6 MB, free: 12.14 MB / 398.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.006674/0.6127, allocations: 2.469 MB / 497 MB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.6128, allocations: 11.69 kB / 497 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004742/0.6175, allocations: 0.6595 MB / 497.7 MB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.6196, allocations: 1.027 MB / 498.7 MB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.237e-05/0.6197, allocations: 74.11 kB / 498.8 MB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001442/0.6198, allocations: 103.6 kB / 498.9 MB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003544/0.6234, allocations: 1.674 MB / 0.4888 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.642e-05/0.6234, allocations: 3.094 kB / 0.4888 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.6235, allocations: 48.81 kB / 0.4889 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/0.6236, allocations: 28 kB / 0.4889 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003347/0.6269, allocations: 1.467 MB / 0.4904 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01019/0.6371, allocations: 8.394 MB / 0.4986 GB, free: 15.11 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003415/0.6406, allocations: 1.698 MB / 0.5002 GB, free: 13.26 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000653/0.6413, allocations: 403.6 kB / 0.5006 GB, free: 12.86 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1379/0.7792, allocations: 63.66 MB / 0.5628 GB, free: 5.711 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.074e-05/0.7793, allocations: 45.75 kB / 0.5628 GB, free: 5.66 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 2.946e-06/0.7793, allocations: 0 / 0.5628 GB, free: 5.66 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006389/0.7857, allocations: 1.993 MB / 0.5648 GB, free: 3.641 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001317/0.7859, allocations: 192.5 kB / 0.5649 GB, free: 3.41 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001925/0.7878, allocations: 0.9644 MB / 0.5659 GB, free: 2.43 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000117/0.788, allocations: 41.7 kB / 0.5659 GB, free: 2.383 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005071/0.7885, allocations: 0.5704 MB / 0.5665 GB, free: 1.809 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002904/0.7888, allocations: 273.7 kB / 0.5667 GB, free: 1.547 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003463/0.7891, allocations: 234.7 kB / 0.567 GB, free: 1.312 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.7893, allocations: 345.9 kB / 0.5673 GB, free: 0.9688 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005682/0.7899, allocations: 306.5 kB / 0.5676 GB, free: 0.6719 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000868/0.7907, allocations: 0.7423 MB / 0.5683 GB, free: 15.74 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001519/0.7923, allocations: 1.105 MB / 0.5694 GB, free: 14.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.184e-05/0.7923, allocations: 4 kB / 0.5694 GB, free: 14.49 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002284/0.7946, allocations: 1.252 MB / 0.5706 GB, free: 13.32 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.482e-05/0.7946, allocations: 8 kB / 0.5706 GB, free: 13.31 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.219e-05/0.7947, allocations: 16.91 kB / 0.5706 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00341/0.7981, allocations: 0.5209 MB / 0.5711 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/0.7991, allocations: 285.8 kB / 0.5714 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001081/0.8002, allocations: 1.369 MB / 0.5728 GB, free: 11.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009587/0.8012, allocations: 134.5 kB / 0.5729 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/0.8013, allocations: 72.02 kB / 0.573 GB, free: 10.89 MB / 494.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.000523/0.8019, allocations: 290.6 kB / 0.5732 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003108/0.8022, allocations: 122.6 kB / 0.5733 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005253/0.8074, allocations: 4.487 MB / 0.5777 GB, free: 6.039 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.444e-05/0.8075, allocations: 47.92 kB / 0.5778 GB, free: 5.992 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.529e-05/0.8075, allocations: 0 / 0.5778 GB, free: 5.992 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.221e-05/0.8075, allocations: 3.984 kB / 0.5778 GB, free: 5.988 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006744/0.8143, allocations: 4.934 MB / 0.5826 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.8144, allocations: 0 / 0.5826 GB, free: 0.8984 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009383/0.8153, allocations: 174.1 kB / 0.5828 GB, free: 0.7344 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001769/0.8171, allocations: 0.671 MB / 0.5834 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.2e-05/0.8172, allocations: 31.92 kB / 0.5834 GB, free: 36 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0016/0.8188, allocations: 1.757 MB / 0.5852 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.795e-06/0.8188, allocations: 0 / 0.5852 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002811/0.8217, allocations: 2.022 MB / 0.5871 GB, free: 12.16 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005159/0.8222, allocations: 266.3 kB / 0.5874 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002878/0.8225, allocations: 47.61 kB / 0.5874 GB, free: 11.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005641/0.8231, allocations: 16 kB / 0.5875 GB, free: 11.82 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.8232, allocations: 56.48 kB / 0.5875 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.694e-05/0.8232, allocations: 31.98 kB / 0.5875 GB, free: 11.73 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001259/0.8245, allocations: 0.8303 MB / 0.5883 GB, free: 10.9 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/0.8245, allocations: 4 kB / 0.5884 GB, free: 10.89 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004507/0.829, allocations: 1.276 MB / 0.5896 GB, free: 9.617 MB / 0.4981 GB 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.005903/0.8349, allocations: 1.26 MB / 0.5908 GB, free: 8.457 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002784/0.8377, allocations: 1.264 MB / 0.5921 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.82e-06/0.8378, allocations: 3.844 kB / 0.5921 GB, free: 7.234 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00159/0.8394, allocations: 0.9171 MB / 0.593 GB, free: 6.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003499/0.8429, allocations: 0.7166 MB / 0.5937 GB, free: 5.621 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004544/0.8474, allocations: 3.034 MB / 0.5966 GB, free: 2.57 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009062/0.8483, allocations: 1.316 MB / 0.5979 GB, free: 1.223 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001244/0.8496, allocations: 0.6253 MB / 0.5985 GB, free: 0.5977 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002657/0.8499, allocations: 119.4 kB / 0.5986 GB, free: 492 kB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.8499, allocations: 0 / 0.5986 GB, free: 492 kB / 0.4981 GB Notification: Performance of Templates: time 0.3128/1.163, allocations: 57.69 MB / 0.655 GB, free: 233 MB / 0.545 GB 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)