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.00673/0.00673, allocations: 102.9 kB / 15.73 MB, free: 6.043 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.001569/0.001569, allocations: 194.1 kB / 16.68 MB, free: 5.965 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.582/1.582, allocations: 205.1 MB / 222.5 MB, free: 4.391 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.001304/0.001304, allocations: 47.34 kB / 326.5 MB, free: 14.48 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1202, allocations: 46.63 MB / 373.2 MB, free: 1.301 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06371/0.184, allocations: 62.84 MB / 436 MB, free: 2.23 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3369/0.5209, allocations: 22.44 MB / 458.4 MB, free: 2.266 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002126/0.5231, allocations: 29.81 kB / 458.5 MB, free: 2.266 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002542/0.5257, allocations: 0.7245 MB / 459.2 MB, free: 2.266 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02007/0.5458, allocations: 5.777 MB / 465 MB, free: 2.207 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01124/0.5571, allocations: 3.453 MB / 468.4 MB, free: 2.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01763/0.5747, allocations: 9.048 MB / 477.5 MB, free: 252 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00203/0.5768, allocations: 0.6902 MB / 478.2 MB, free: 200 kB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004084/0.5809, allocations: 1.065 MB / 479.2 MB, free: 196 kB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002668/0.5836, allocations: 0.8282 MB / 480.1 MB, free: 100 kB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002875/0.5839, allocations: 93 kB / 480.1 MB, free: 100 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0292/0.6131, allocations: 7.694 MB / 487.8 MB, free: 14.76 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000908/0.6141, allocations: 281.1 kB / 488.1 MB, free: 14.66 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002244/0.6164, allocations: 0.7075 MB / 488.8 MB, free: 14.43 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02589/0.6423, allocations: 5.752 MB / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.036e-05/0.6424, allocations: 0 / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.295e-06/0.6424, allocations: 0 / 494.6 MB, free: 12.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.232e-05/0.6425, allocations: 0 / 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.01338/0.6559, allocations: 2.474 MB / 497 MB, free: 10.75 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/0.6559, allocations: 8.344 kB / 497.1 MB, free: 10.75 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009902/0.6659, allocations: 0.6602 MB / 497.7 MB, free: 10.51 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004359/0.6703, allocations: 1.027 MB / 498.7 MB, free: 9.973 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001471/0.6704, allocations: 76.27 kB / 498.8 MB, free: 9.969 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000454/0.6709, allocations: 99.66 kB / 498.9 MB, free: 9.965 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007874/0.6788, allocations: 1.68 MB / 0.4889 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.737e-05/0.6789, allocations: 3.188 kB / 0.4889 GB, free: 8.934 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002407/0.6792, allocations: 47.06 kB / 0.4889 GB, free: 8.918 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.912e-05/0.6792, allocations: 28 kB / 0.4889 GB, free: 8.891 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006966/0.6862, allocations: 1.465 MB / 0.4904 GB, free: 7.836 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01322/0.6995, allocations: 8.399 MB / 0.4986 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003111/0.7026, allocations: 1.691 MB / 0.5002 GB, free: 13.24 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006277/0.7033, allocations: 406.3 kB / 0.5006 GB, free: 12.84 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1323/0.8356, allocations: 63.66 MB / 0.5628 GB, free: 5.688 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.8356, allocations: 39.12 kB / 0.5628 GB, free: 5.641 MB / 478.1 MB Notification: Performance of pre-optimization done (n=77): time 3.316e-06/0.8357, allocations: 0 / 0.5628 GB, free: 5.641 MB / 478.1 MB Notification: Performance of matching and sorting (n=77): time 0.006725/0.8424, allocations: 1.995 MB / 0.5648 GB, free: 3.621 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001446/0.8426, allocations: 192.5 kB / 0.565 GB, free: 3.391 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.8442, allocations: 0.9605 MB / 0.5659 GB, free: 2.414 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 9.792e-05/0.8443, allocations: 41.7 kB / 0.5659 GB, free: 2.367 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005236/0.8449, allocations: 0.5683 MB / 0.5665 GB, free: 1.793 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003038/0.8452, allocations: 274.8 kB / 0.5667 GB, free: 1.527 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004086/0.8456, allocations: 238.7 kB / 0.567 GB, free: 1.289 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001521/0.8458, allocations: 346.9 kB / 0.5673 GB, free: 0.9492 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005935/0.8464, allocations: 306.5 kB / 0.5676 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009535/0.8473, allocations: 0.7472 MB / 0.5683 GB, free: 15.71 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001533/0.8489, allocations: 1.098 MB / 0.5694 GB, free: 14.48 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.167e-05/0.8489, allocations: 4 kB / 0.5694 GB, free: 14.47 MB / 494.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002303/0.8512, allocations: 1.248 MB / 0.5706 GB, free: 13.3 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.137e-05/0.8512, allocations: 13.09 kB / 0.5706 GB, free: 13.29 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.581e-05/0.8513, allocations: 16.88 kB / 0.5707 GB, free: 13.27 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003382/0.8547, allocations: 0.5195 MB / 0.5712 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/0.8557, allocations: 286.1 kB / 0.5714 GB, free: 12.49 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001249/0.857, allocations: 1.377 MB / 0.5728 GB, free: 11.07 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009019/0.8579, allocations: 130.5 kB / 0.5729 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001085/0.858, allocations: 73.78 kB / 0.573 GB, free: 10.87 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.0004922/0.8585, allocations: 293.7 kB / 0.5733 GB, free: 10.59 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003264/0.8589, allocations: 122.6 kB / 0.5734 GB, free: 10.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004929/0.8638, allocations: 4.481 MB / 0.5777 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.144e-05/0.8639, allocations: 47.92 kB / 0.5778 GB, free: 5.969 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.154e-06/0.8639, allocations: 0 / 0.5778 GB, free: 5.969 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/0.8639, allocations: 3.984 kB / 0.5778 GB, free: 5.965 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005719/0.8696, allocations: 4.937 MB / 0.5826 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.8697, allocations: 3.75 kB / 0.5826 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007845/0.8704, allocations: 170.1 kB / 0.5828 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001489/0.872, allocations: 0.6661 MB / 0.5834 GB, free: 52 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.87e-05/0.872, allocations: 39.92 kB / 0.5835 GB, free: 12 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001417/0.8735, allocations: 1.754 MB / 0.5852 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.8735, allocations: 0 / 0.5852 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002477/0.876, allocations: 2.022 MB / 0.5872 GB, free: 12.14 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004128/0.8764, allocations: 266.3 kB / 0.5874 GB, free: 11.86 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002361/0.8766, allocations: 47.61 kB / 0.5875 GB, free: 11.81 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005765/0.8772, allocations: 16 kB / 0.5875 GB, free: 11.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.745e-05/0.8773, allocations: 55.39 kB / 0.5875 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.963e-05/0.8774, allocations: 35.98 kB / 0.5876 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001157/0.8785, allocations: 0.8342 MB / 0.5884 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.8786, allocations: 0 / 0.5884 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004031/0.8826, allocations: 1.28 MB / 0.5896 GB, free: 9.59 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.005639/0.8882, allocations: 1.255 MB / 0.5908 GB, free: 8.438 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002772/0.891, allocations: 1.263 MB / 0.5921 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.891, allocations: 0 / 0.5921 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.001619/0.8927, allocations: 0.9112 MB / 0.593 GB, free: 6.324 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004148/0.8968, allocations: 0.727 MB / 0.5937 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004948/0.9018, allocations: 3.026 MB / 0.5966 GB, free: 2.559 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009033/0.9027, allocations: 1.316 MB / 0.5979 GB, free: 1.211 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.001249/0.904, allocations: 0.6329 MB / 0.5985 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002908/0.9043, allocations: 119.4 kB / 0.5987 GB, free: 472 kB / 0.4981 GB Notification: Performance of SimCode: time 1.523e-06/0.9043, allocations: 0 / 0.5987 GB, free: 472 kB / 0.4981 GB Notification: Performance of Templates: time 0.3214/1.226, allocations: 58.19 MB / 0.6555 GB, free: 232.8 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)