Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001182/0.001182, allocations: 110.3 kB / 17.06 MB, free: 6.129 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.001191/0.001191, allocations: 191 kB / 18 MB, free: 5.207 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.585/1.585, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001582/0.001582, allocations: 51.92 kB / 327.9 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1182/0.1198, allocations: 46.61 MB / 374.5 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.337/0.4569, allocations: 62.86 MB / 437.3 MB, free: 468 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03285/0.4898, allocations: 22.45 MB / 459.8 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002645/0.4925, allocations: 31.75 kB / 459.8 MB, free: 10.18 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002993/0.4955, allocations: 0.7296 MB / 460.5 MB, free: 9.449 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02365/0.5192, allocations: 5.771 MB / 466.3 MB, free: 3.664 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01306/0.5323, allocations: 3.447 MB / 469.8 MB, free: 208 kB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02244/0.5548, allocations: 9.052 MB / 478.8 MB, free: 7.035 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001836/0.5567, allocations: 0.6879 MB / 479.5 MB, free: 6.344 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003009/0.5597, allocations: 1.043 MB / 480.5 MB, free: 5.297 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001848/0.5616, allocations: 0.8285 MB / 481.4 MB, free: 4.465 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004977/0.5621, allocations: 92 kB / 481.5 MB, free: 4.375 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01867/0.5808, allocations: 7.672 MB / 489.1 MB, free: 12.7 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005775/0.5814, allocations: 275 kB / 489.4 MB, free: 12.43 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001348/0.5828, allocations: 0.7192 MB / 490.1 MB, free: 11.7 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02108/0.6038, allocations: 5.745 MB / 495.9 MB, free: 5.945 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.824e-06/0.6039, allocations: 0 / 495.9 MB, free: 5.945 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.315e-06/0.6039, allocations: 0 / 495.9 MB, free: 5.945 MB / 414.1 MB Notification: Performance of Transformations before backend: time 2.823e-05/0.6039, allocations: 0 / 495.9 MB, free: 5.945 MB / 414.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.007555/0.6115, allocations: 2.471 MB / 498.3 MB, free: 3.418 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.6116, allocations: 8.031 kB / 498.3 MB, free: 3.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004719/0.6163, allocations: 0.6549 MB / 499 MB, free: 2.754 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002224/0.6185, allocations: 1.036 MB / 0.4883 GB, free: 1.672 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.325e-05/0.6186, allocations: 74.58 kB / 0.4884 GB, free: 1.598 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001355/0.6188, allocations: 103.9 kB / 0.4885 GB, free: 1.496 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/0.6224, allocations: 1.668 MB / 0.4901 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.125e-05/0.6224, allocations: 7.938 kB / 0.4901 GB, free: 15.67 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001119/0.6225, allocations: 44 kB / 0.4902 GB, free: 15.62 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.628e-05/0.6226, allocations: 28 kB / 0.4902 GB, free: 15.6 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003352/0.6259, allocations: 1.471 MB / 0.4916 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/0.636, allocations: 8.389 MB / 0.4998 GB, free: 5.121 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003015/0.6391, allocations: 1.7 MB / 0.5015 GB, free: 3.258 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006047/0.6397, allocations: 403.5 kB / 0.5019 GB, free: 2.859 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3655/1.005, allocations: 63.65 MB / 0.564 GB, free: 150.6 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/1.005, allocations: 44.19 kB / 0.5641 GB, free: 150.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 2.845e-06/1.005, allocations: 2.422 kB / 0.5641 GB, free: 150.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006583/1.012, allocations: 1.994 MB / 0.566 GB, free: 150.4 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.278e-05/1.012, allocations: 188.6 kB / 0.5662 GB, free: 150.2 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001266/1.013, allocations: 0.9662 MB / 0.5671 GB, free: 149.8 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 5.729e-05/1.013, allocations: 38.17 kB / 0.5672 GB, free: 149.8 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003333/1.014, allocations: 0.5701 MB / 0.5677 GB, free: 149.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001704/1.014, allocations: 270.9 kB / 0.568 GB, free: 149.2 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003031/1.014, allocations: 234.5 kB / 0.5682 GB, free: 149.1 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 8.957e-05/1.014, allocations: 351.3 kB / 0.5685 GB, free: 148.7 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005587/1.015, allocations: 305.9 kB / 0.5688 GB, free: 148.6 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008333/1.016, allocations: 0.7432 MB / 0.5696 GB, free: 147.9 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001358/1.017, allocations: 1.108 MB / 0.5706 GB, free: 147.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.883e-05/1.017, allocations: 3.781 kB / 0.5707 GB, free: 147.1 MB / 478.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002012/1.019, allocations: 1.239 MB / 0.5719 GB, free: 146.5 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/1.019, allocations: 11.47 kB / 0.5719 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/1.019, allocations: 13.72 kB / 0.5719 GB, free: 146.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003283/1.022, allocations: 0.532 MB / 0.5724 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0011/1.024, allocations: 281.1 kB / 0.5727 GB, free: 146.4 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001013/1.025, allocations: 1.367 MB / 0.574 GB, free: 145.2 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001098/1.026, allocations: 140.4 kB / 0.5741 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/1.026, allocations: 67.55 kB / 0.5742 GB, free: 145.1 MB / 478.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.0006475/1.026, allocations: 298.6 kB / 0.5745 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000279/1.027, allocations: 119.8 kB / 0.5746 GB, free: 144.8 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005764/1.033, allocations: 4.486 MB / 0.579 GB, free: 142.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.774e-05/1.033, allocations: 42.38 kB / 0.579 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.417e-06/1.033, allocations: 5.438 kB / 0.579 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.217e-05/1.033, allocations: 7.969 kB / 0.579 GB, free: 142.5 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004779/1.037, allocations: 4.947 MB / 0.5839 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.005e-06/1.037, allocations: 0 / 0.5839 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007328/1.038, allocations: 166.5 kB / 0.584 GB, free: 139.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001281/1.039, allocations: 0.6693 MB / 0.5847 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.904e-05/1.04, allocations: 29.23 kB / 0.5847 GB, free: 138.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001022/1.041, allocations: 1.753 MB / 0.5864 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.041, allocations: 4.094 kB / 0.5864 GB, free: 137.3 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002097/1.043, allocations: 2.028 MB / 0.5884 GB, free: 136 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003026/1.043, allocations: 266.3 kB / 0.5887 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001492/1.043, allocations: 35.69 kB / 0.5887 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/1.044, allocations: 20 kB / 0.5887 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.498e-05/1.044, allocations: 60.42 kB / 0.5888 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.895e-05/1.044, allocations: 35.98 kB / 0.5888 GB, free: 135.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0008349/1.045, allocations: 0.8264 MB / 0.5896 GB, free: 134.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.045, allocations: 0 / 0.5896 GB, free: 134.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003581/1.048, allocations: 1.282 MB / 0.5909 GB, free: 133.6 MB / 478.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.0045/1.053, allocations: 1.256 MB / 0.5921 GB, free: 132.5 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00255/1.055, allocations: 1.263 MB / 0.5933 GB, free: 131.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/1.055, allocations: 0 / 0.5933 GB, free: 131.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001323/1.057, allocations: 0.9085 MB / 0.5942 GB, free: 130.3 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003319/1.06, allocations: 0.7373 MB / 0.5949 GB, free: 129.6 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003483/1.063, allocations: 3.034 MB / 0.5979 GB, free: 126.6 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005145/1.064, allocations: 1.32 MB / 0.5992 GB, free: 125.2 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00101/1.065, allocations: 0.6317 MB / 0.5998 GB, free: 124.6 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002492/1.065, allocations: 123.4 kB / 0.5999 GB, free: 124.5 MB / 478.1 MB Notification: Performance of SimCode: time 1.643e-06/1.065, allocations: 4 kB / 0.5999 GB, free: 124.5 MB / 478.1 MB Notification: Performance of Templates: time 0.06418/1.129, allocations: 57.67 MB / 0.6562 GB, free: 66.72 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)