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.001154/0.001155, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001297/0.001297, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.62/1.62, allocations: 205.4 MB / 222.1 MB, free: 5.516 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.0004722/0.0004723, allocations: 16 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2472/0.2477, allocations: 47.59 MB / 326.4 MB, free: 1.441 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.0511/0.2988, allocations: 53.05 MB / 379.5 MB, free: 14.33 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02369/0.3225, allocations: 19.27 MB / 398.8 MB, free: 11.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001688/0.3242, allocations: 35.69 kB / 398.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001942/0.3262, allocations: 0.5754 MB / 399.4 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01725/0.3435, allocations: 4.866 MB / 404.2 MB, free: 5.527 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009279/0.3528, allocations: 2.735 MB / 407 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02002/0.3728, allocations: 12.69 MB / 419.7 MB, free: 6.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001443/0.3743, allocations: 0.6008 MB / 420.3 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002128/0.3765, allocations: 0.9304 MB / 421.2 MB, free: 4.531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009236/0.3774, allocations: 0.6497 MB / 421.8 MB, free: 3.879 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.3775, allocations: 52 kB / 421.9 MB, free: 3.828 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01743/0.395, allocations: 7.433 MB / 429.3 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000499/0.3955, allocations: 231 kB / 429.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006498/0.3962, allocations: 293 kB / 429.8 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008881/0.4051, allocations: 3.894 MB / 433.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.4051, allocations: 0 / 433.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.4051, allocations: 0 / 433.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.834e-05/0.4051, allocations: 0 / 433.7 MB, free: 7.965 MB / 366.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.007245/0.4124, allocations: 2.194 MB / 435.9 MB, free: 5.715 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.567e-05/0.4125, allocations: 8.031 kB / 435.9 MB, free: 5.707 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004678/0.4171, allocations: 0.6578 MB / 436.6 MB, free: 5.047 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002092/0.4193, allocations: 0.9649 MB / 437.6 MB, free: 4.039 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.767e-05/0.4193, allocations: 74.02 kB / 437.6 MB, free: 3.965 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001314/0.4195, allocations: 96 kB / 437.7 MB, free: 3.871 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003495/0.423, allocations: 1.659 MB / 439.4 MB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.822e-05/0.423, allocations: 7.922 kB / 439.4 MB, free: 2.059 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001206/0.4232, allocations: 51.95 kB / 439.4 MB, free: 2.008 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.761e-05/0.4232, allocations: 24 kB / 439.5 MB, free: 1.984 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003167/0.4264, allocations: 1.463 MB / 440.9 MB, free: 0.5195 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01027/0.4366, allocations: 8.408 MB / 449.3 MB, free: 7.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003039/0.4397, allocations: 1.706 MB / 451 MB, free: 5.629 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2983/0.738, allocations: 63.97 MB / 0.5029 GB, free: 60.08 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.809e-05/0.7381, allocations: 51.11 kB / 0.503 GB, free: 60.02 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.594e-06/0.7381, allocations: 0.75 kB / 0.503 GB, free: 60.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.004943/0.7431, allocations: 1.973 MB / 0.5049 GB, free: 58.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.837e-05/0.7431, allocations: 192.5 kB / 0.5051 GB, free: 57.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000915/0.744, allocations: 0.9582 MB / 0.506 GB, free: 56.9 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.172e-05/0.7441, allocations: 37.7 kB / 0.5061 GB, free: 56.86 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002889/0.7444, allocations: 0.571 MB / 0.5066 GB, free: 56.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001482/0.7445, allocations: 277.8 kB / 0.5069 GB, free: 56.04 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.7446, allocations: 20 kB / 0.5069 GB, free: 56.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.854e-05/0.7447, allocations: 353.8 kB / 0.5073 GB, free: 55.67 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00042/0.7451, allocations: 294.5 kB / 0.5075 GB, free: 55.38 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00057/0.7457, allocations: 0.7403 MB / 0.5083 GB, free: 54.44 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005217/0.7462, allocations: 407.5 kB / 0.5086 GB, free: 54.05 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.302e-06/0.7462, allocations: 4 kB / 0.5086 GB, free: 54.05 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001532/0.7478, allocations: 1.239 MB / 0.5099 GB, free: 52.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/0.7478, allocations: 12 kB / 0.5099 GB, free: 52.79 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.7478, allocations: 12 kB / 0.5099 GB, free: 52.78 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002978/0.7508, allocations: 0.52 MB / 0.5104 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009443/0.7517, allocations: 279.6 kB / 0.5107 GB, free: 51.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006952/0.7525, allocations: 1.376 MB / 0.512 GB, free: 50.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007519/0.7532, allocations: 158.5 kB / 0.5121 GB, free: 50.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.326e-05/0.7533, allocations: 75.97 kB / 0.5122 GB, free: 50.33 MB / 382.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.0003439/0.7537, allocations: 292 kB / 0.5125 GB, free: 50.04 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.7538, allocations: 122.6 kB / 0.5126 GB, free: 49.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003491/0.7573, allocations: 4.512 MB / 0.517 GB, free: 45.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.732e-05/0.7573, allocations: 47.92 kB / 0.5171 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.7574, allocations: 0 / 0.5171 GB, free: 45.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.087e-06/0.7574, allocations: 3.984 kB / 0.5171 GB, free: 45.35 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003853/0.7612, allocations: 4.94 MB / 0.5219 GB, free: 40.24 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.282e-06/0.7613, allocations: 0 / 0.5219 GB, free: 40.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007114/0.762, allocations: 167.7 kB / 0.5221 GB, free: 40.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003477/0.7655, allocations: 1.594 MB / 0.5236 GB, free: 38.48 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.121e-05/0.7655, allocations: 23.98 kB / 0.5236 GB, free: 38.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001018/0.7665, allocations: 1.75 MB / 0.5253 GB, free: 36.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.7666, allocations: 7.797 kB / 0.5254 GB, free: 36.65 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001805/0.7684, allocations: 2.018 MB / 0.5273 GB, free: 34.57 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003681/0.7688, allocations: 365.3 kB / 0.5277 GB, free: 34.2 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001462/0.7689, allocations: 23.94 kB / 0.5277 GB, free: 34.17 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005635/0.7695, allocations: 63.81 kB / 0.5278 GB, free: 34.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.207e-05/0.7696, allocations: 56.48 kB / 0.5278 GB, free: 34.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.547e-05/0.7696, allocations: 31.98 kB / 0.5278 GB, free: 34.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000806/0.7704, allocations: 0.8186 MB / 0.5286 GB, free: 33.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7704, allocations: 0 / 0.5286 GB, free: 33.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003114/0.7735, allocations: 1.281 MB / 0.5299 GB, free: 32 MB / 382.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.003592/0.7771, allocations: 1.245 MB / 0.5311 GB, free: 30.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002112/0.7793, allocations: 1.254 MB / 0.5323 GB, free: 29.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.7793, allocations: 4.375 kB / 0.5323 GB, free: 29.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001246/0.7805, allocations: 0.9009 MB / 0.5332 GB, free: 28.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003042/0.7836, allocations: 0.6832 MB / 0.5339 GB, free: 28.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003754/0.7874, allocations: 3.713 MB / 0.5375 GB, free: 24.39 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005561/0.7879, allocations: 1.356 MB / 0.5388 GB, free: 23 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001157/0.7891, allocations: 0.6385 MB / 0.5395 GB, free: 22.36 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002183/0.7893, allocations: 123.4 kB / 0.5396 GB, free: 22.24 MB / 382.1 MB Notification: Performance of SimCode: time 8.72e-07/0.7893, allocations: 0 / 0.5396 GB, free: 22.24 MB / 382.1 MB Notification: Performance of Templates: time 0.0739/0.8632, allocations: 55.79 MB / 0.5941 GB, free: 14.38 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: