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.007884/0.007884, allocations: 96.64 kB / 15.73 MB, free: 6.484 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.001707/0.001708, allocations: 191.3 kB / 16.67 MB, free: 6.391 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.586/1.586, allocations: 205.1 MB / 222.6 MB, free: 4.52 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.001353/0.001353, allocations: 50.17 kB / 326.5 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1177, allocations: 46.62 MB / 373.2 MB, free: 1.336 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.07299/0.1908, allocations: 62.85 MB / 436 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3225/0.5133, allocations: 22.43 MB / 458.4 MB, free: 2.312 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002307/0.5156, allocations: 30.8 kB / 458.5 MB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002896/0.5186, allocations: 0.7248 MB / 459.2 MB, free: 2.312 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02177/0.5404, allocations: 5.784 MB / 465 MB, free: 2.254 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01147/0.5519, allocations: 3.453 MB / 468.4 MB, free: 2.199 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02122/0.5731, allocations: 9.035 MB / 477.5 MB, free: 300 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001641/0.5748, allocations: 0.7019 MB / 478.2 MB, free: 240 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003173/0.578, allocations: 1.047 MB / 479.2 MB, free: 232 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00248/0.5805, allocations: 0.8301 MB / 480 MB, free: 136 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005605/0.5811, allocations: 91.72 kB / 480.1 MB, free: 136 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02172/0.6028, allocations: 7.685 MB / 487.8 MB, free: 14.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008163/0.6037, allocations: 287.9 kB / 488.1 MB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002535/0.6062, allocations: 0.7117 MB / 488.8 MB, free: 14.42 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01764/0.6239, allocations: 5.764 MB / 494.6 MB, free: 12.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.169e-06/0.6239, allocations: 0 / 494.6 MB, free: 12.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.624, allocations: 0 / 494.6 MB, free: 12.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.486e-05/0.624, allocations: 0 / 494.6 MB, free: 12.11 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.007292/0.6313, allocations: 2.532 MB / 497.1 MB, free: 10.65 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.6314, allocations: 10.66 kB / 497.1 MB, free: 10.65 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004772/0.6362, allocations: 0.6635 MB / 497.8 MB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002073/0.6383, allocations: 1.045 MB / 498.8 MB, free: 9.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.706e-05/0.6383, allocations: 74.55 kB / 498.9 MB, free: 9.859 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001882/0.6385, allocations: 106.8 kB / 499 MB, free: 9.852 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004332/0.6429, allocations: 1.665 MB / 0.4889 GB, free: 8.801 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.058e-05/0.643, allocations: 13.84 kB / 0.4889 GB, free: 8.797 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001659/0.6431, allocations: 52.06 kB / 0.489 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.72e-05/0.6432, allocations: 28 kB / 0.489 GB, free: 8.754 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003877/0.6471, allocations: 1.457 MB / 0.4904 GB, free: 7.703 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01033/0.6574, allocations: 8.409 MB / 0.4987 GB, free: 14.96 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003047/0.6605, allocations: 1.703 MB / 0.5003 GB, free: 13.1 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006024/0.6611, allocations: 399.6 kB / 0.5007 GB, free: 12.7 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1314/0.7925, allocations: 63.67 MB / 0.5629 GB, free: 5.551 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.566e-05/0.7926, allocations: 50.22 kB / 0.5629 GB, free: 5.496 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 3.156e-06/0.7927, allocations: 0 / 0.5629 GB, free: 5.496 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006519/0.7992, allocations: 2.006 MB / 0.5649 GB, free: 3.465 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001269/0.7993, allocations: 188.5 kB / 0.5651 GB, free: 3.238 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001698/0.8011, allocations: 0.9646 MB / 0.566 GB, free: 2.258 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001017/0.8012, allocations: 37.7 kB / 0.566 GB, free: 2.215 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004819/0.8017, allocations: 0.5779 MB / 0.5666 GB, free: 1.633 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003135/0.802, allocations: 291.1 kB / 0.5669 GB, free: 1.352 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/0.8024, allocations: 234.8 kB / 0.5671 GB, free: 1.117 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001418/0.8025, allocations: 353.9 kB / 0.5674 GB, free: 0.7656 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005852/0.8031, allocations: 305.5 kB / 0.5677 GB, free: 484 kB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009098/0.804, allocations: 0.7429 MB / 0.5685 GB, free: 15.54 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001549/0.8056, allocations: 1.096 MB / 0.5695 GB, free: 14.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.447e-05/0.8056, allocations: 6.906 kB / 0.5695 GB, free: 14.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002509/0.8081, allocations: 1.254 MB / 0.5708 GB, free: 13.12 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.476e-05/0.8082, allocations: 13 kB / 0.5708 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.948e-05/0.8082, allocations: 12 kB / 0.5708 GB, free: 13.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00332/0.8116, allocations: 0.5234 MB / 0.5713 GB, free: 12.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.8127, allocations: 282.3 kB / 0.5716 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001183/0.8139, allocations: 1.374 MB / 0.5729 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.815, allocations: 135 kB / 0.573 GB, free: 10.76 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001301/0.8151, allocations: 69.62 kB / 0.5731 GB, free: 10.7 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.0006768/0.8158, allocations: 289.3 kB / 0.5734 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004307/0.8163, allocations: 131.2 kB / 0.5735 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005904/0.8222, allocations: 4.498 MB / 0.5779 GB, free: 5.824 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.425e-05/0.8223, allocations: 43.94 kB / 0.5779 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.874e-05/0.8223, allocations: 0 / 0.5779 GB, free: 5.781 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-05/0.8223, allocations: 7.969 kB / 0.5779 GB, free: 5.773 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007349/0.8297, allocations: 4.945 MB / 0.5828 GB, free: 0.6758 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.299e-05/0.8297, allocations: 4 kB / 0.5828 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008104/0.8305, allocations: 165.8 kB / 0.5829 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001672/0.8322, allocations: 0.679 MB / 0.5836 GB, free: 15.84 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.908e-05/0.8323, allocations: 23.98 kB / 0.5836 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00161/0.8339, allocations: 1.756 MB / 0.5853 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.8339, allocations: 96 / 0.5853 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003011/0.837, allocations: 2.042 MB / 0.5873 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005823/0.8376, allocations: 267.4 kB / 0.5876 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003784/0.8379, allocations: 47.61 kB / 0.5876 GB, free: 11.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007115/0.8387, allocations: 20 kB / 0.5877 GB, free: 11.57 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001011/0.8388, allocations: 56.48 kB / 0.5877 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.064e-05/0.8388, allocations: 39.98 kB / 0.5877 GB, free: 11.48 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001449/0.8403, allocations: 0.8264 MB / 0.5886 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3e-07/0.8403, allocations: 0 / 0.5886 GB, free: 10.65 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005418/0.8457, allocations: 1.291 MB / 0.5898 GB, free: 9.359 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.007165/0.8529, allocations: 1.266 MB / 0.591 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003314/0.8562, allocations: 1.259 MB / 0.5923 GB, free: 6.977 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/0.8563, allocations: 4 kB / 0.5923 GB, free: 6.973 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001754/0.858, allocations: 0.9101 MB / 0.5932 GB, free: 6.086 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004195/0.8622, allocations: 0.7311 MB / 0.5939 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005348/0.8676, allocations: 3.077 MB / 0.5969 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001192/0.8688, allocations: 1.32 MB / 0.5982 GB, free: 0.9062 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001593/0.8704, allocations: 0.6351 MB / 0.5988 GB, free: 272 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003656/0.8708, allocations: 123.4 kB / 0.5989 GB, free: 148 kB / 0.4981 GB Notification: Performance of SimCode: time 1.192e-06/0.8708, allocations: 8 kB / 0.5989 GB, free: 140 kB / 0.4981 GB Notification: Performance of Templates: time 0.3272/1.198, allocations: 57.68 MB / 0.6553 GB, free: 232.8 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)