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.001337/0.001337, allocations: 106.4 kB / 16.51 MB, free: 6.707 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.001386/0.001386, allocations: 186.5 kB / 17.42 MB, free: 6.07 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.309/1.309, allocations: 205.1 MB / 223.3 MB, free: 12.41 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.001155/0.001155, allocations: 51.88 kB / 279.3 MB, free: 3.566 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09513/0.0963, allocations: 46.62 MB / 325.9 MB, free: 4.887 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.2427/0.3391, allocations: 64.47 MB / 390.4 MB, free: 9.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03057/0.3697, allocations: 23.64 MB / 414.1 MB, free: 8.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002556/0.3723, allocations: 38.81 kB / 414.1 MB, free: 8.555 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002718/0.3751, allocations: 0.6353 MB / 414.7 MB, free: 8.391 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01842/0.3935, allocations: 4.746 MB / 419.5 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009555/0.4031, allocations: 3.015 MB / 422.5 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01701/0.4201, allocations: 9.627 MB / 432.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001186/0.4214, allocations: 0.6042 MB / 432.7 MB, free: 13 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002004/0.4234, allocations: 0.9453 MB / 433.7 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009935/0.4244, allocations: 0.8401 MB / 434.5 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.4245, allocations: 52 kB / 434.6 MB, free: 11.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01633/0.4409, allocations: 7.535 MB / 442.1 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004515/0.4414, allocations: 254.9 kB / 442.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001199/0.4426, allocations: 0.6685 MB / 443 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01726/0.4598, allocations: 5.714 MB / 448.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/0.4599, allocations: 0 / 448.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4599, allocations: 0 / 448.7 MB, free: 12.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.35e-05/0.4599, allocations: 0 / 448.7 MB, free: 12.96 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.007622/0.4676, allocations: 2.459 MB / 451.2 MB, free: 10.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.532e-05/0.4676, allocations: 12.03 kB / 451.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004961/0.4726, allocations: 0.6509 MB / 451.9 MB, free: 9.785 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0021/0.4748, allocations: 0.9967 MB / 452.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.286e-05/0.4748, allocations: 74.58 kB / 452.9 MB, free: 8.672 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.475, allocations: 99.94 kB / 453 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003756/0.4788, allocations: 1.679 MB / 454.7 MB, free: 6.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.167e-05/0.4788, allocations: 11.92 kB / 454.7 MB, free: 6.738 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001107/0.4789, allocations: 44 kB / 454.8 MB, free: 6.695 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.535e-05/0.479, allocations: 28 kB / 454.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003444/0.4824, allocations: 1.464 MB / 456.2 MB, free: 5.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009796/0.4922, allocations: 8.392 MB / 464.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003217/0.4955, allocations: 1.705 MB / 466.3 MB, free: 10.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006144/0.4961, allocations: 403.6 kB / 466.7 MB, free: 9.938 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1212/0.6173, allocations: 63.39 MB / 0.5177 GB, free: 3.027 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.433e-05/0.6174, allocations: 47.12 kB / 0.5177 GB, free: 2.973 MB / 430.1 MB Notification: Performance of pre-optimization done (n=77): time 3.236e-06/0.6174, allocations: 0 / 0.5177 GB, free: 2.973 MB / 430.1 MB Notification: Performance of matching and sorting (n=77): time 0.00644/0.6239, allocations: 1.99 MB / 0.5197 GB, free: 0.9492 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.624, allocations: 192.5 kB / 0.5199 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001541/0.6256, allocations: 0.976 MB / 0.5208 GB, free: 15.73 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.849e-05/0.6257, allocations: 37.7 kB / 0.5209 GB, free: 15.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004385/0.6261, allocations: 0.5649 MB / 0.5214 GB, free: 15.11 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002594/0.6264, allocations: 280.1 kB / 0.5217 GB, free: 14.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003264/0.6268, allocations: 230.7 kB / 0.5219 GB, free: 14.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.6269, allocations: 353.9 kB / 0.5222 GB, free: 14.25 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005629/0.6275, allocations: 294.5 kB / 0.5225 GB, free: 13.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008757/0.6284, allocations: 0.7493 MB / 0.5232 GB, free: 13.01 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001455/0.6298, allocations: 1.097 MB / 0.5243 GB, free: 11.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.115e-05/0.6298, allocations: 8 kB / 0.5243 GB, free: 11.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.002245/0.6321, allocations: 1.248 MB / 0.5255 GB, free: 10.45 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.206e-05/0.6321, allocations: 12 kB / 0.5256 GB, free: 10.44 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.6322, allocations: 12 kB / 0.5256 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003496/0.6357, allocations: 0.5274 MB / 0.5261 GB, free: 9.902 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001153/0.6369, allocations: 279.5 kB / 0.5263 GB, free: 9.629 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00122/0.6381, allocations: 1.373 MB / 0.5277 GB, free: 8.207 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.6391, allocations: 166.5 kB / 0.5278 GB, free: 8.043 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.6393, allocations: 63.97 kB / 0.5279 GB, free: 7.98 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.0005976/0.6399, allocations: 296.2 kB / 0.5282 GB, free: 7.68 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004213/0.6403, allocations: 126.5 kB / 0.5283 GB, free: 7.555 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005857/0.6462, allocations: 4.511 MB / 0.5327 GB, free: 3.027 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.324e-05/0.6463, allocations: 43.94 kB / 0.5328 GB, free: 2.984 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.04e-05/0.6463, allocations: 4 kB / 0.5328 GB, free: 2.98 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.6463, allocations: 3.984 kB / 0.5328 GB, free: 2.977 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.182/0.8283, allocations: 4.935 MB / 0.5376 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.579e-05/0.8284, allocations: 5.031 kB / 0.5376 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009116/0.8293, allocations: 162.8 kB / 0.5377 GB, free: 175.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004086/0.8334, allocations: 1.591 MB / 0.5393 GB, free: 175.2 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001024/0.8335, allocations: 25.3 kB / 0.5393 GB, free: 175.2 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001173/0.8347, allocations: 1.758 MB / 0.541 GB, free: 173.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.8347, allocations: 3.969 kB / 0.541 GB, free: 173.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002475/0.8372, allocations: 2.027 MB / 0.543 GB, free: 172.9 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003224/0.8376, allocations: 271.5 kB / 0.5433 GB, free: 172.7 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001744/0.8377, allocations: 38.48 kB / 0.5433 GB, free: 172.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005871/0.8383, allocations: 60.11 kB / 0.5434 GB, free: 172.7 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001073/0.8384, allocations: 61.19 kB / 0.5434 GB, free: 172.7 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.993e-05/0.8385, allocations: 31.3 kB / 0.5435 GB, free: 172.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.001147/0.8397, allocations: 0.8302 MB / 0.5443 GB, free: 172.3 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.8397, allocations: 1.219 kB / 0.5443 GB, free: 172.3 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003682/0.8434, allocations: 1.276 MB / 0.5455 GB, free: 172.2 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.004146/0.8475, allocations: 1.263 MB / 0.5468 GB, free: 172.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002499/0.85, allocations: 1.258 MB / 0.548 GB, free: 171.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.609e-06/0.85, allocations: 4.562 kB / 0.548 GB, free: 171.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001372/0.8514, allocations: 0.9044 MB / 0.5489 GB, free: 171.2 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003121/0.8546, allocations: 0.6902 MB / 0.5495 GB, free: 171.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003785/0.8584, allocations: 3.769 MB / 0.5532 GB, free: 168.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005584/0.8589, allocations: 1.319 MB / 0.5545 GB, free: 168.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001248/0.8602, allocations: 0.6363 MB / 0.5551 GB, free: 168.1 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.8604, allocations: 123.3 kB / 0.5553 GB, free: 168.1 MB / 446.1 MB Notification: Performance of SimCode: time 6.61e-07/0.8605, allocations: 0 / 0.5553 GB, free: 168.1 MB / 446.1 MB Notification: Performance of Templates: time 0.06185/0.9223, allocations: 56.25 MB / 0.6102 GB, free: 113.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)