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.001283/0.001283, allocations: 109.3 kB / 16.62 MB, free: 6.809 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.001358/0.001358, allocations: 193.8 kB / 17.55 MB, free: 5.949 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.324/1.324, allocations: 205.1 MB / 223.4 MB, free: 12.45 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.001143/0.001143, allocations: 59.92 kB / 279.5 MB, free: 3.5 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08033/0.08149, allocations: 46.63 MB / 326.1 MB, free: 4.797 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2055/0.287, allocations: 63.62 MB / 389.8 MB, free: 9.223 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02247/0.3095, allocations: 22.58 MB / 412.3 MB, free: 8.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001671/0.3113, allocations: 35.19 kB / 412.4 MB, free: 8.363 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001876/0.3132, allocations: 0.643 MB / 413 MB, free: 8.191 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0153/0.3285, allocations: 5.156 MB / 418.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008906/0.3374, allocations: 3.143 MB / 421.3 MB, free: 4.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0137/0.3512, allocations: 9.069 MB / 430.4 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001336/0.3525, allocations: 0.677 MB / 431.1 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002136/0.3547, allocations: 1.055 MB / 432.1 MB, free: 13.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001208/0.3559, allocations: 0.8479 MB / 433 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001483/0.356, allocations: 92 kB / 433.1 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01519/0.3712, allocations: 7.555 MB / 440.6 MB, free: 4.953 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005048/0.3718, allocations: 286.9 kB / 440.9 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001304/0.3731, allocations: 0.7231 MB / 441.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01416/0.3873, allocations: 5.745 MB / 447.4 MB, free: 14.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.904e-06/0.3873, allocations: 4 kB / 447.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.368e-06/0.3873, allocations: 3.938 kB / 447.4 MB, free: 14.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.308e-05/0.3874, allocations: 3.938 kB / 447.4 MB, free: 14.18 MB / 350.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.006578/0.394, allocations: 2.459 MB / 449.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.216e-05/0.394, allocations: 16.03 kB / 449.9 MB, free: 11.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004869/0.3989, allocations: 0.651 MB / 450.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001779/0.4007, allocations: 0.9929 MB / 451.5 MB, free: 9.961 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.369e-05/0.4008, allocations: 74.58 kB / 451.6 MB, free: 9.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001347/0.4009, allocations: 103.9 kB / 451.7 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003646/0.4045, allocations: 1.679 MB / 453.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.754e-05/0.4046, allocations: 3.938 kB / 453.4 MB, free: 7.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/0.4047, allocations: 49.62 kB / 453.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.229e-05/0.4047, allocations: 24 kB / 453.4 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003367/0.4081, allocations: 1.467 MB / 454.9 MB, free: 6.422 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009578/0.4177, allocations: 8.389 MB / 463.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003099/0.4208, allocations: 1.701 MB / 465 MB, free: 11.56 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005946/0.4215, allocations: 411.4 kB / 465.4 MB, free: 11.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1226/0.5441, allocations: 63.38 MB / 0.5164 GB, free: 4.25 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.564e-05/0.5442, allocations: 47.12 kB / 0.5164 GB, free: 4.195 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 2.265e-06/0.5442, allocations: 0 / 0.5164 GB, free: 4.195 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.005777/0.5499, allocations: 1.986 MB / 0.5184 GB, free: 2.18 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001055/0.5501, allocations: 192.5 kB / 0.5185 GB, free: 1.949 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001139/0.5512, allocations: 0.9722 MB / 0.5195 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.158e-05/0.5513, allocations: 37.7 kB / 0.5195 GB, free: 0.918 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003921/0.5517, allocations: 0.5688 MB / 0.5201 GB, free: 348 kB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002074/0.5519, allocations: 272.1 kB / 0.5203 GB, free: 72 kB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003128/0.5522, allocations: 234.9 kB / 0.5206 GB, free: 15.83 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.5524, allocations: 349.9 kB / 0.5209 GB, free: 15.48 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004998/0.5529, allocations: 306.4 kB / 0.5212 GB, free: 15.19 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007891/0.5537, allocations: 0.7492 MB / 0.5219 GB, free: 14.23 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001369/0.555, allocations: 1.094 MB / 0.523 GB, free: 12.94 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.183e-06/0.5551, allocations: 12 kB / 0.523 GB, free: 12.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002068/0.5571, allocations: 1.248 MB / 0.5242 GB, free: 11.67 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.502e-05/0.5572, allocations: 8 kB / 0.5242 GB, free: 11.66 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.571e-05/0.5572, allocations: 16 kB / 0.5242 GB, free: 11.65 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003329/0.5605, allocations: 0.5273 MB / 0.5248 GB, free: 11.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.5616, allocations: 279.6 kB / 0.525 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001112/0.5627, allocations: 1.373 MB / 0.5264 GB, free: 9.426 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001004/0.5637, allocations: 162.6 kB / 0.5265 GB, free: 9.266 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.884e-05/0.5639, allocations: 71.97 kB / 0.5266 GB, free: 9.195 MB / 446.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.0005093/0.5644, allocations: 288.3 kB / 0.5269 GB, free: 8.902 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.5646, allocations: 122.6 kB / 0.527 GB, free: 8.781 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004768/0.5694, allocations: 4.512 MB / 0.5314 GB, free: 4.258 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.525e-05/0.5694, allocations: 43.94 kB / 0.5314 GB, free: 4.215 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.496e-06/0.5695, allocations: 4 kB / 0.5314 GB, free: 4.211 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.112e-05/0.5695, allocations: 3.984 kB / 0.5314 GB, free: 4.207 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1747/0.7442, allocations: 4.94 MB / 0.5363 GB, free: 175.6 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.81e-05/0.7442, allocations: 0 / 0.5363 GB, free: 175.6 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008988/0.7451, allocations: 166.1 kB / 0.5364 GB, free: 175.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001829/0.747, allocations: 0.6737 MB / 0.5371 GB, free: 175.6 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.452e-05/0.7471, allocations: 26.67 kB / 0.5371 GB, free: 175.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001219/0.7483, allocations: 1.756 MB / 0.5388 GB, free: 174.4 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.974e-06/0.7483, allocations: 0 / 0.5388 GB, free: 174.4 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.7506, allocations: 2.027 MB / 0.5408 GB, free: 173.6 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003091/0.751, allocations: 266.3 kB / 0.5411 GB, free: 173.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/0.7511, allocations: 43.8 kB / 0.5411 GB, free: 173.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000595/0.7517, allocations: 62.03 kB / 0.5412 GB, free: 173.4 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.247e-05/0.7518, allocations: 55.75 kB / 0.5412 GB, free: 173.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.353e-05/0.7519, allocations: 33.89 kB / 0.5412 GB, free: 173.4 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001058/0.753, allocations: 0.8304 MB / 0.542 GB, free: 173.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.753, allocations: 0 / 0.542 GB, free: 173.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003509/0.7565, allocations: 1.279 MB / 0.5433 GB, free: 173 MB / 446.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.00435/0.7609, allocations: 1.261 MB / 0.5445 GB, free: 172.8 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.003175/0.764, allocations: 1.299 MB / 0.5458 GB, free: 172.4 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.931e-06/0.7641, allocations: 5.031 kB / 0.5458 GB, free: 172.4 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001467/0.7655, allocations: 0.9079 MB / 0.5467 GB, free: 172 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003333/0.7689, allocations: 0.7306 MB / 0.5474 GB, free: 171.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004076/0.773, allocations: 3.765 MB / 0.5511 GB, free: 169.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007304/0.7737, allocations: 1.314 MB / 0.5524 GB, free: 168.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001271/0.775, allocations: 0.639 MB / 0.553 GB, free: 168.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002283/0.7752, allocations: 126.5 kB / 0.5531 GB, free: 168.9 MB / 446.1 MB Notification: Performance of SimCode: time 7.92e-07/0.7752, allocations: 0 / 0.5531 GB, free: 168.9 MB / 446.1 MB Notification: Performance of Templates: time 0.05696/0.8322, allocations: 57.41 MB / 0.6092 GB, free: 114.8 MB / 446.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)