Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.009445/0.009445, allocations: 99.34 kB / 15.73 MB, free: 6.035 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.002001/0.002001, allocations: 195.8 kB / 16.67 MB, free: 5.961 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.634/1.634, allocations: 205.1 MB / 222.5 MB, free: 4.504 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.001184/0.001184, allocations: 46.25 kB / 326.5 MB, free: 14.39 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1137, 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.06199/0.1757, allocations: 62.85 MB / 436 MB, free: 2.262 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3105/0.4863, allocations: 22.44 MB / 458.4 MB, free: 2.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001831/0.4881, allocations: 29.25 kB / 458.5 MB, free: 2.668 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002519/0.4907, allocations: 0.7388 MB / 459.2 MB, free: 2.664 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01825/0.509, allocations: 5.794 MB / 465 MB, free: 2.605 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01177/0.5208, allocations: 3.454 MB / 468.5 MB, free: 2.559 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01791/0.5387, allocations: 9.051 MB / 477.5 MB, free: 0.6484 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001381/0.5401, allocations: 0.6862 MB / 478.2 MB, free: 0.5977 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002511/0.5427, allocations: 1.069 MB / 479.3 MB, free: 0.5898 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.5437, allocations: 0.8297 MB / 480.1 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000143/0.5439, allocations: 91.56 kB / 480.2 MB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01747/0.5613, allocations: 7.68 MB / 487.9 MB, free: 15.04 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004404/0.5618, allocations: 281.8 kB / 488.1 MB, free: 14.93 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001378/0.5632, allocations: 0.716 MB / 488.9 MB, free: 14.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01635/0.5796, allocations: 5.766 MB / 494.6 MB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.664e-06/0.5796, allocations: 2.219 kB / 494.6 MB, free: 12.38 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.5796, allocations: 0 / 494.6 MB, free: 12.38 MB / 398.1 MB Notification: Performance of Transformations before backend: time 2.384e-05/0.5797, allocations: 0 / 494.6 MB, free: 12.38 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.007064/0.5867, allocations: 2.529 MB / 497.2 MB, free: 10.93 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.487e-05/0.5868, allocations: 11.41 kB / 497.2 MB, free: 10.93 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004573/0.5914, allocations: 0.6665 MB / 497.8 MB, free: 10.69 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00203/0.5934, allocations: 1.044 MB / 498.9 MB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.785e-05/0.5935, allocations: 74.95 kB / 498.9 MB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001569/0.5936, allocations: 101.4 kB / 499 MB, free: 10.13 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003714/0.5974, allocations: 1.672 MB / 0.489 GB, free: 9.172 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.254e-05/0.5974, allocations: 7.094 kB / 0.489 GB, free: 9.168 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001166/0.5975, allocations: 45.06 kB / 0.489 GB, free: 9.156 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.704e-05/0.5976, allocations: 28 kB / 0.4891 GB, free: 9.129 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00345/0.601, allocations: 1.472 MB / 0.4905 GB, free: 7.977 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01012/0.6112, allocations: 8.396 MB / 0.4987 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003145/0.6143, allocations: 1.707 MB / 0.5004 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006395/0.615, allocations: 403.6 kB / 0.5007 GB, free: 12.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1368/0.7518, allocations: 63.66 MB / 0.5629 GB, free: 5.676 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001112/0.752, allocations: 46.12 kB / 0.563 GB, free: 5.625 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 7.734e-06/0.752, allocations: 4 kB / 0.563 GB, free: 5.621 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.008311/0.7603, allocations: 2.003 MB / 0.5649 GB, free: 3.594 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001329/0.7605, allocations: 188.5 kB / 0.5651 GB, free: 3.367 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001848/0.7624, allocations: 0.9644 MB / 0.566 GB, free: 2.391 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001196/0.7625, allocations: 41.7 kB / 0.5661 GB, free: 2.344 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005529/0.7631, allocations: 0.5818 MB / 0.5667 GB, free: 1.758 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003448/0.7634, allocations: 291.7 kB / 0.5669 GB, free: 1.477 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004238/0.7639, allocations: 234.8 kB / 0.5672 GB, free: 1.242 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/0.7641, allocations: 345.9 kB / 0.5675 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006598/0.7647, allocations: 306.5 kB / 0.5678 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.7658, allocations: 0.7454 MB / 0.5685 GB, free: 15.67 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001666/0.7675, allocations: 1.097 MB / 0.5696 GB, free: 14.43 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.62e-05/0.7675, allocations: 4 kB / 0.5696 GB, free: 14.43 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002543/0.77, allocations: 1.256 MB / 0.5708 GB, free: 13.25 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.7701, allocations: 12 kB / 0.5708 GB, free: 13.23 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.786e-05/0.7701, allocations: 16 kB / 0.5708 GB, free: 13.22 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003407/0.7735, allocations: 0.5199 MB / 0.5713 GB, free: 12.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001116/0.7747, allocations: 278.3 kB / 0.5716 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001342/0.776, allocations: 1.37 MB / 0.5729 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001166/0.7772, allocations: 143 kB / 0.5731 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001509/0.7774, allocations: 73.7 kB / 0.5731 GB, free: 10.82 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.000724/0.7781, allocations: 294.2 kB / 0.5734 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004035/0.7785, allocations: 127.2 kB / 0.5736 GB, free: 10.42 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005889/0.7844, allocations: 4.493 MB / 0.5779 GB, free: 5.953 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.586e-05/0.7845, allocations: 47.92 kB / 0.578 GB, free: 5.906 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-05/0.7845, allocations: 4 kB / 0.578 GB, free: 5.902 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.584e-05/0.7845, allocations: 3.984 kB / 0.578 GB, free: 5.898 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007509/0.792, allocations: 4.941 MB / 0.5828 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.939e-05/0.7921, allocations: 0 / 0.5828 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008792/0.793, allocations: 170 kB / 0.583 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001697/0.7947, allocations: 0.6684 MB / 0.5836 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.627e-05/0.7948, allocations: 35.22 kB / 0.5837 GB, free: 15.95 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001738/0.7966, allocations: 1.754 MB / 0.5854 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.531e-06/0.7966, allocations: 7.938 kB / 0.5854 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003239/0.7998, allocations: 2.035 MB / 0.5874 GB, free: 12.05 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006336/0.8005, allocations: 279.3 kB / 0.5876 GB, free: 11.76 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003557/0.8009, allocations: 47.67 kB / 0.5877 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006955/0.8016, allocations: 16 kB / 0.5877 GB, free: 11.7 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.8017, allocations: 56.48 kB / 0.5878 GB, free: 11.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.147e-05/0.8017, allocations: 31.98 kB / 0.5878 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001484/0.8032, allocations: 0.8303 MB / 0.5886 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of sort global known variables: time 3.31e-07/0.8032, allocations: 0 / 0.5886 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005305/0.8086, allocations: 1.291 MB / 0.5899 GB, free: 9.484 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.008013/0.8166, allocations: 1.266 MB / 0.5911 GB, free: 8.316 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.003894/0.8205, allocations: 1.263 MB / 0.5923 GB, free: 7.098 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.8206, allocations: 4.062 kB / 0.5923 GB, free: 7.094 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001998/0.8226, allocations: 0.9073 MB / 0.5932 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004422/0.827, allocations: 0.7321 MB / 0.5939 GB, free: 5.48 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005666/0.8327, allocations: 3.085 MB / 0.5969 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.8338, allocations: 1.316 MB / 0.5982 GB, free: 1.027 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001543/0.8354, allocations: 0.6211 MB / 0.5988 GB, free: 416 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/0.8357, allocations: 123.4 kB / 0.599 GB, free: 292 kB / 0.4981 GB Notification: Performance of SimCode: time 9.32e-07/0.8358, allocations: 0 / 0.599 GB, free: 292 kB / 0.4981 GB Notification: Performance of Templates: time 0.3102/1.146, allocations: 57.69 MB / 0.6553 GB, free: 233.2 MB / 0.545 GB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)