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.0009718/0.0009719, allocations: 88.16 kB / 16.31 MB, free: 5.547 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.00127/0.00127, allocations: 181.5 kB / 17.21 MB, free: 5.465 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.561/1.561, allocations: 205.4 MB / 223.4 MB, free: 13.17 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.0005266/0.0005266, allocations: 16 kB / 280.1 MB, free: 3.73 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1085, allocations: 47.57 MB / 327.7 MB, free: 4.09 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2623/0.3708, allocations: 59.12 MB / 386.8 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02464/0.3955, allocations: 21 MB / 407.8 MB, free: 11.52 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001732/0.3973, allocations: 31.69 kB / 407.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.3991, allocations: 0.5786 MB / 408.4 MB, free: 11.34 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:734:36-735:54:writable] Warning: 'each' used when modifying non-array element m_flow. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Fluid/Sources.mo:732:36-733:54:writable] Warning: 'each' used when modifying non-array element m_flow. Notification: Performance of NFTyping.typeBindings: time 0.01712/0.4162, allocations: 4.623 MB / 413.1 MB, free: 10.47 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01039/0.4266, allocations: 2.76 MB / 415.8 MB, free: 9.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01914/0.4458, allocations: 14.03 MB / 429.9 MB, free: 1.258 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001407/0.4472, allocations: 0.5737 MB / 430.4 MB, free: 0.6914 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002223/0.4495, allocations: 0.9378 MB / 431.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001593/0.4511, allocations: 0.794 MB / 432.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003071/0.4514, allocations: 48 kB / 432.2 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0189/0.4703, allocations: 7.2 MB / 439.4 MB, free: 7.852 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003981/0.4708, allocations: 240.2 kB / 439.6 MB, free: 7.629 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006998/0.4715, allocations: 289.1 kB / 439.9 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008003/0.4795, allocations: 3.927 MB / 443.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.031e-06/0.4795, allocations: 0 / 443.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4795, allocations: 0 / 443.9 MB, free: 3.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.357e-05/0.4795, allocations: 0 / 443.9 MB, free: 3.688 MB / 334.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.005964/0.4855, allocations: 2.192 MB / 446 MB, free: 1.473 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.4856, allocations: 8.031 kB / 446.1 MB, free: 1.465 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004351/0.4899, allocations: 0.6625 MB / 446.7 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00158/0.4915, allocations: 0.9667 MB / 447.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.915e-05/0.4916, allocations: 74.89 kB / 447.8 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001359/0.4917, allocations: 99.98 kB / 447.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003481/0.4952, allocations: 1.667 MB / 449.5 MB, free: 13.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.688e-05/0.4953, allocations: 7.938 kB / 449.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001106/0.4954, allocations: 44 kB / 449.6 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.777e-05/0.4954, allocations: 28 kB / 449.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003242/0.4987, allocations: 1.455 MB / 451.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009027/0.5077, allocations: 8.427 MB / 459.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002999/0.5107, allocations: 1.69 MB / 461.2 MB, free: 1.484 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006224/0.5114, allocations: 396 kB / 461.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1165/0.6279, allocations: 63.97 MB / 0.5132 GB, free: 9.637 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.936e-05/0.628, allocations: 47.12 kB / 0.5133 GB, free: 9.578 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 2.514e-06/0.628, allocations: 0 / 0.5133 GB, free: 9.578 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.005943/0.634, allocations: 2.025 MB / 0.5152 GB, free: 7.523 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.15e-05/0.6341, allocations: 192.5 kB / 0.5154 GB, free: 7.293 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001222/0.6353, allocations: 0.9605 MB / 0.5164 GB, free: 6.316 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 5.774e-05/0.6354, allocations: 37.7 kB / 0.5164 GB, free: 6.273 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004518/0.6358, allocations: 0.5685 MB / 0.5169 GB, free: 5.699 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002376/0.6361, allocations: 273.2 kB / 0.5172 GB, free: 5.438 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.89e-05/0.6361, allocations: 24 kB / 0.5172 GB, free: 5.414 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.6363, allocations: 353.9 kB / 0.5176 GB, free: 5.062 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005211/0.6368, allocations: 298.5 kB / 0.5179 GB, free: 4.77 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000802/0.6376, allocations: 0.7337 MB / 0.5186 GB, free: 3.836 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006452/0.6383, allocations: 409.9 kB / 0.519 GB, free: 3.434 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.565e-06/0.6383, allocations: 4 kB / 0.519 GB, free: 3.43 MB / 430.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002035/0.6403, allocations: 1.245 MB / 0.5202 GB, free: 2.172 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.591e-05/0.6404, allocations: 15.98 kB / 0.5202 GB, free: 2.156 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.6404, allocations: 16 kB / 0.5202 GB, free: 2.141 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002845/0.6432, allocations: 0.5197 MB / 0.5207 GB, free: 1.617 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.6443, allocations: 283.6 kB / 0.521 GB, free: 1.34 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.6453, allocations: 1.38 MB / 0.5223 GB, free: 15.91 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008704/0.6462, allocations: 162.6 kB / 0.5225 GB, free: 15.75 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.593e-05/0.6463, allocations: 67.98 kB / 0.5226 GB, free: 15.69 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.0004799/0.6468, allocations: 292 kB / 0.5228 GB, free: 15.39 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001774/0.647, allocations: 122.5 kB / 0.523 GB, free: 15.27 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004882/0.6518, allocations: 4.497 MB / 0.5273 GB, free: 10.78 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.035e-05/0.6519, allocations: 43.94 kB / 0.5274 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.212e-05/0.6519, allocations: 3.984 kB / 0.5274 GB, free: 10.73 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/0.652, allocations: 7.984 kB / 0.5274 GB, free: 10.72 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005711/0.6577, allocations: 4.931 MB / 0.5322 GB, free: 5.617 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.506e-06/0.6577, allocations: 4 kB / 0.5322 GB, free: 5.613 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007728/0.6585, allocations: 171.7 kB / 0.5324 GB, free: 5.445 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004052/0.6626, allocations: 1.594 MB / 0.5339 GB, free: 3.848 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001164/0.6627, allocations: 20 kB / 0.534 GB, free: 3.828 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001953/0.6647, allocations: 1.751 MB / 0.5357 GB, free: 2.027 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.873e-06/0.6647, allocations: 3.953 kB / 0.5357 GB, free: 2.023 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1968/0.8615, allocations: 2.011 MB / 0.5376 GB, free: 174.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008698/0.8624, allocations: 355.8 kB / 0.538 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003012/0.8627, allocations: 17.69 kB / 0.538 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007174/0.8634, allocations: 59.39 kB / 0.538 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001128/0.8636, allocations: 54.34 kB / 0.5381 GB, free: 174.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.307e-05/0.8636, allocations: 34.16 kB / 0.5381 GB, free: 174.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001366/0.865, allocations: 0.8227 MB / 0.5389 GB, free: 174.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.865, allocations: 0 / 0.5389 GB, free: 174.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.005083/0.8701, allocations: 1.279 MB / 0.5402 GB, free: 174.1 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 (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 10} Notification: Performance of Backend phase and start with SimCode phase: time 0.005334/0.8755, allocations: 1.246 MB / 0.5414 GB, free: 173.9 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00289/0.8784, allocations: 1.248 MB / 0.5426 GB, free: 173.9 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.8784, allocations: 0 / 0.5426 GB, free: 173.9 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001633/0.88, allocations: 0.9096 MB / 0.5435 GB, free: 173.9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003523/0.8836, allocations: 0.7024 MB / 0.5442 GB, free: 173.8 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004697/0.8883, allocations: 3.72 MB / 0.5478 GB, free: 171.7 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009155/0.8892, allocations: 1.321 MB / 0.5491 GB, free: 171 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001576/0.8908, allocations: 0.6359 MB / 0.5497 GB, free: 170.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003097/0.8911, allocations: 121.8 kB / 0.5499 GB, free: 170.9 MB / 446.1 MB Notification: Performance of SimCode: time 1.262e-06/0.8911, allocations: 3.438 kB / 0.5499 GB, free: 170.9 MB / 446.1 MB Notification: Performance of Templates: time 0.1045/0.9956, allocations: 55.91 MB / 0.6045 GB, free: 121.1 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)