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.01154/0.01154, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.002385/0.002385, allocations: 201.5 kB / 16.68 MB, free: 5.973 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.577/1.577, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.001272/0.001272, allocations: 54.06 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1223/0.1236, allocations: 46.63 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07069/0.1943, allocations: 62.85 MB / 436 MB, free: 2.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3136/0.508, allocations: 22.43 MB / 458.4 MB, free: 2.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001979/0.51, allocations: 29.38 kB / 458.5 MB, free: 2.328 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002545/0.5126, allocations: 0.724 MB / 459.2 MB, free: 2.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02124/0.5339, allocations: 5.806 MB / 465 MB, free: 2.27 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01295/0.5469, allocations: 3.457 MB / 468.5 MB, free: 2.219 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02258/0.5694, allocations: 9.051 MB / 477.5 MB, free: 316 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001778/0.5713, allocations: 0.6921 MB / 478.2 MB, free: 264 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003221/0.5745, allocations: 1.057 MB / 479.3 MB, free: 260 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002243/0.5768, allocations: 0.8289 MB / 480.1 MB, free: 164 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005103/0.5773, allocations: 92.41 kB / 480.2 MB, free: 164 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02212/0.5995, allocations: 7.693 MB / 487.9 MB, free: 14.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008667/0.6004, allocations: 285.5 kB / 488.2 MB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002755/0.6031, allocations: 0.7086 MB / 488.9 MB, free: 14.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01672/0.6199, allocations: 5.752 MB / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.706e-06/0.6199, allocations: 0.875 kB / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 4.238e-06/0.62, allocations: 0 / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.827e-05/0.62, allocations: 2.844 kB / 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.008563/0.6286, allocations: 2.465 MB / 497.1 MB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.6287, allocations: 10 kB / 497.1 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005167/0.6339, allocations: 0.6545 MB / 497.7 MB, free: 10.52 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003033/0.6369, allocations: 1.041 MB / 498.8 MB, free: 9.977 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001216/0.6371, allocations: 72.42 kB / 498.9 MB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003591/0.6374, allocations: 107.6 kB / 499 MB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004491/0.6419, allocations: 1.67 MB / 0.4889 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.644e-05/0.642, allocations: 2.812 kB / 0.4889 GB, free: 8.922 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001865/0.6422, allocations: 47.38 kB / 0.4889 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.125e-05/0.6422, allocations: 28 kB / 0.489 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003609/0.6459, allocations: 1.469 MB / 0.4904 GB, free: 7.824 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01077/0.6566, allocations: 8.406 MB / 0.4986 GB, free: 15.04 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003192/0.6599, allocations: 1.691 MB / 0.5003 GB, free: 13.19 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006568/0.6605, allocations: 406.7 kB / 0.5007 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1318/0.7924, allocations: 63.66 MB / 0.5628 GB, free: 5.648 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/0.7924, allocations: 43.12 kB / 0.5629 GB, free: 5.598 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 3.006e-06/0.7925, allocations: 0 / 0.5629 GB, free: 5.598 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.00658/0.799, allocations: 1.99 MB / 0.5648 GB, free: 3.582 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.7992, allocations: 199.6 kB / 0.565 GB, free: 3.348 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001984/0.8012, allocations: 0.9644 MB / 0.5659 GB, free: 2.367 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.8013, allocations: 37.7 kB / 0.566 GB, free: 2.324 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005622/0.8019, allocations: 0.5704 MB / 0.5665 GB, free: 1.75 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003743/0.8023, allocations: 272.6 kB / 0.5668 GB, free: 1.484 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004443/0.8027, allocations: 234.7 kB / 0.567 GB, free: 1.25 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.8029, allocations: 345.9 kB / 0.5673 GB, free: 0.9062 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000604/0.8035, allocations: 306.5 kB / 0.5676 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001008/0.8045, allocations: 0.7437 MB / 0.5684 GB, free: 15.68 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001569/0.8061, allocations: 1.098 MB / 0.5694 GB, free: 14.44 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.242e-05/0.8061, allocations: 4 kB / 0.5694 GB, free: 14.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002426/0.8086, allocations: 1.253 MB / 0.5707 GB, free: 13.25 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.504e-05/0.8086, allocations: 8 kB / 0.5707 GB, free: 13.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.094e-05/0.8086, allocations: 20.09 kB / 0.5707 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003388/0.812, allocations: 0.5195 MB / 0.5712 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001094/0.8131, allocations: 277.4 kB / 0.5715 GB, free: 12.45 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001171/0.8143, allocations: 1.38 MB / 0.5728 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009848/0.8153, allocations: 142.3 kB / 0.5729 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000124/0.8155, allocations: 72.02 kB / 0.573 GB, free: 10.83 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.0006/0.8161, allocations: 290.1 kB / 0.5733 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003513/0.8164, allocations: 122.7 kB / 0.5734 GB, free: 10.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005462/0.8219, allocations: 4.487 MB / 0.5778 GB, free: 5.973 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.497e-05/0.822, allocations: 47.92 kB / 0.5778 GB, free: 5.926 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.719e-06/0.822, allocations: 0 / 0.5778 GB, free: 5.926 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.362e-05/0.822, allocations: 3.984 kB / 0.5778 GB, free: 5.922 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006131/0.8281, allocations: 4.939 MB / 0.5827 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.8282, allocations: 0 / 0.5827 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008168/0.829, allocations: 169.9 kB / 0.5828 GB, free: 0.668 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/0.8305, allocations: 0.6684 MB / 0.5835 GB, free: 0 / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-05/0.8306, allocations: 28.03 kB / 0.5835 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001443/0.8321, allocations: 1.753 MB / 0.5852 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.657e-06/0.8321, allocations: 0 / 0.5852 GB, free: 14.17 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/0.8347, allocations: 2.029 MB / 0.5872 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004771/0.8352, allocations: 262.3 kB / 0.5874 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003253/0.8356, allocations: 47.61 kB / 0.5875 GB, free: 11.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006708/0.8363, allocations: 16 kB / 0.5875 GB, free: 11.75 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.497e-05/0.8364, allocations: 60.48 kB / 0.5876 GB, free: 11.69 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-05/0.8364, allocations: 35.73 kB / 0.5876 GB, free: 11.66 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001289/0.8377, allocations: 0.8317 MB / 0.5884 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8377, allocations: 0 / 0.5884 GB, free: 10.83 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00425/0.842, allocations: 1.276 MB / 0.5897 GB, free: 9.551 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.006609/0.8486, allocations: 1.252 MB / 0.5909 GB, free: 8.402 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003259/0.8519, allocations: 1.264 MB / 0.5921 GB, free: 7.18 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 6.752e-06/0.8519, allocations: 4 kB / 0.5921 GB, free: 7.176 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.8536, allocations: 0.9114 MB / 0.593 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004128/0.8578, allocations: 0.7312 MB / 0.5937 GB, free: 5.559 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004801/0.8626, allocations: 3.016 MB / 0.5967 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009782/0.8636, allocations: 1.324 MB / 0.598 GB, free: 1.164 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001342/0.8649, allocations: 0.6389 MB / 0.5986 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003047/0.8653, allocations: 119.4 kB / 0.5987 GB, free: 412 kB / 0.4981 GB Notification: Performance of SimCode: time 6.52e-07/0.8653, allocations: 0 / 0.5987 GB, free: 412 kB / 0.4981 GB Notification: Performance of Templates: time 0.3224/1.188, allocations: 57.68 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)