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.001133/0.001133, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001319/0.001319, allocations: 193.1 kB / 16.13 MB, free: 6.668 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.328/1.328, allocations: 205.1 MB / 222 MB, free: 4.746 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.001129/0.001129, allocations: 51.92 kB / 278 MB, free: 12.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2117/0.2128, allocations: 46.63 MB / 324.7 MB, free: 2.262 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06097/0.2738, allocations: 64.48 MB / 389.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02742/0.3013, allocations: 23.63 MB / 412.8 MB, free: 12.04 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.3028, allocations: 35.75 kB / 412.8 MB, free: 12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001778/0.3046, allocations: 0.6371 MB / 413.5 MB, free: 11.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01376/0.3183, allocations: 4.744 MB / 418.2 MB, free: 6.602 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008129/0.3265, allocations: 3.016 MB / 421.2 MB, free: 3.574 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01697/0.3435, allocations: 9.633 MB / 430.8 MB, free: 9.824 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001029/0.3445, allocations: 0.5979 MB / 431.4 MB, free: 9.211 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001745/0.3463, allocations: 0.953 MB / 432.4 MB, free: 8.254 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009171/0.3472, allocations: 0.8401 MB / 433.2 MB, free: 7.41 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001126/0.3474, allocations: 52 kB / 433.3 MB, free: 7.359 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01298/0.3603, allocations: 7.531 MB / 440.8 MB, free: 15.82 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003561/0.3607, allocations: 254.8 kB / 441.1 MB, free: 15.57 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008479/0.3616, allocations: 0.6763 MB / 441.7 MB, free: 14.89 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01149/0.3731, allocations: 5.71 MB / 447.5 MB, free: 9.168 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.3731, allocations: 0 / 447.5 MB, free: 9.168 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3731, allocations: 0 / 447.5 MB, free: 9.168 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.3732, allocations: 3.938 kB / 447.5 MB, free: 9.164 MB / 382.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.005763/0.3789, allocations: 2.462 MB / 449.9 MB, free: 6.645 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.513e-05/0.379, allocations: 12.03 kB / 449.9 MB, free: 6.633 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004693/0.3837, allocations: 0.6548 MB / 450.6 MB, free: 5.977 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.3855, allocations: 0.989 MB / 451.6 MB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.979e-05/0.3855, allocations: 74.39 kB / 451.7 MB, free: 4.871 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001425/0.3857, allocations: 99.94 kB / 451.7 MB, free: 4.773 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003601/0.3893, allocations: 1.671 MB / 453.4 MB, free: 2.957 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.584e-05/0.3893, allocations: 7.938 kB / 453.4 MB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.3895, allocations: 48 kB / 453.5 MB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.3895, allocations: 28 kB / 453.5 MB, free: 2.875 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003355/0.3928, allocations: 1.467 MB / 455 MB, free: 1.398 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1406/0.5335, allocations: 8.396 MB / 463.4 MB, free: 111.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002702/0.5362, allocations: 1.693 MB / 465.1 MB, free: 110.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005472/0.5368, allocations: 402.3 kB / 465.5 MB, free: 110.4 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09907/0.6359, allocations: 63.39 MB / 0.5164 GB, free: 46.29 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.548e-05/0.636, allocations: 42.41 kB / 0.5165 GB, free: 46.24 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.295e-06/0.636, allocations: 0 / 0.5165 GB, free: 46.24 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005492/0.6415, allocations: 1.996 MB / 0.5184 GB, free: 44.22 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.897e-05/0.6416, allocations: 192.5 kB / 0.5186 GB, free: 43.99 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001087/0.6426, allocations: 0.964 MB / 0.5196 GB, free: 43.02 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.076e-05/0.6427, allocations: 41.7 kB / 0.5196 GB, free: 42.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003225/0.6431, allocations: 0.5748 MB / 0.5202 GB, free: 42.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.6433, allocations: 270 kB / 0.5204 GB, free: 42.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002835/0.6436, allocations: 238.7 kB / 0.5206 GB, free: 41.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.084e-05/0.6436, allocations: 349.9 kB / 0.521 GB, free: 41.55 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004845/0.6441, allocations: 302.5 kB / 0.5213 GB, free: 41.26 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000596/0.6447, allocations: 0.7395 MB / 0.522 GB, free: 40.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.6459, allocations: 1.105 MB / 0.5231 GB, free: 39.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.075e-06/0.6459, allocations: 8 kB / 0.5231 GB, free: 39.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001776/0.6477, allocations: 1.24 MB / 0.5243 GB, free: 37.77 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.6477, allocations: 8.219 kB / 0.5243 GB, free: 37.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.6477, allocations: 20 kB / 0.5243 GB, free: 37.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00302/0.6507, allocations: 0.5225 MB / 0.5248 GB, free: 37.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009611/0.6517, allocations: 283.5 kB / 0.5251 GB, free: 36.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007773/0.6525, allocations: 1.375 MB / 0.5264 GB, free: 35.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009016/0.6534, allocations: 158.6 kB / 0.5266 GB, free: 35.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.994e-05/0.6535, allocations: 67.98 kB / 0.5267 GB, free: 35.3 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 (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.0004504/0.654, allocations: 297.1 kB / 0.5269 GB, free: 35 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002641/0.6542, allocations: 122.6 kB / 0.5271 GB, free: 34.88 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003702/0.6579, allocations: 4.503 MB / 0.5315 GB, free: 30.37 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.008e-05/0.658, allocations: 51.72 kB / 0.5315 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.108e-05/0.658, allocations: 4 kB / 0.5315 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.024e-05/0.658, allocations: 3.984 kB / 0.5315 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004423/0.6625, allocations: 4.944 MB / 0.5363 GB, free: 25.21 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/0.6625, allocations: 4 kB / 0.5363 GB, free: 25.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000755/0.6633, allocations: 171.7 kB / 0.5365 GB, free: 25.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003541/0.6668, allocations: 1.59 MB / 0.5381 GB, free: 23.44 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.7e-05/0.6669, allocations: 23.98 kB / 0.5381 GB, free: 23.42 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001024/0.668, allocations: 1.758 MB / 0.5398 GB, free: 21.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/0.668, allocations: 0 / 0.5398 GB, free: 21.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002259/0.6703, allocations: 2.029 MB / 0.5418 GB, free: 19.53 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006167/0.6709, allocations: 266.3 kB / 0.542 GB, free: 19.25 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003283/0.6712, allocations: 39.69 kB / 0.5421 GB, free: 19.21 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007959/0.672, allocations: 59.81 kB / 0.5421 GB, free: 19.15 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.291e-05/0.6721, allocations: 52.48 kB / 0.5422 GB, free: 19.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.865e-05/0.6722, allocations: 36.86 kB / 0.5422 GB, free: 19.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001009/0.6732, allocations: 0.8303 MB / 0.543 GB, free: 18.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6732, allocations: 0 / 0.543 GB, free: 18.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003366/0.6766, allocations: 1.285 MB / 0.5443 GB, free: 17.03 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 (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.006411/0.683, allocations: 1.252 MB / 0.5455 GB, free: 15.98 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002811/0.6858, allocations: 1.26 MB / 0.5467 GB, free: 14.72 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 7.053e-06/0.6859, allocations: 8 kB / 0.5467 GB, free: 14.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001428/0.6873, allocations: 0.9033 MB / 0.5476 GB, free: 13.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00338/0.6907, allocations: 0.7005 MB / 0.5483 GB, free: 13.11 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003778/0.6945, allocations: 3.762 MB / 0.552 GB, free: 9.316 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005551/0.6951, allocations: 1.318 MB / 0.5533 GB, free: 7.973 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001239/0.6963, allocations: 0.6269 MB / 0.5539 GB, free: 7.344 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002792/0.6966, allocations: 127.4 kB / 0.554 GB, free: 7.219 MB / 382.1 MB Notification: Performance of SimCode: time 4.11e-07/0.6966, allocations: 0 / 0.554 GB, free: 7.219 MB / 382.1 MB Notification: Performance of Templates: time 0.2282/0.9248, allocations: 56.23 MB / 0.6089 GB, free: 159.8 MB / 430.1 MB 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)