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.00101/0.001018, allocations: 98.27 kB / 15.36 MB, free: 0.7305 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.001369/0.001369, allocations: 173.4 kB / 16.27 MB, free: 6.664 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.605/1.605, allocations: 205.4 MB / 222.5 MB, free: 5.559 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.0004942/0.0004941, allocations: 8 kB / 279.4 MB, free: 12.52 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2841/0.2846, allocations: 47.59 MB / 327 MB, free: 1.414 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06161/0.3462, allocations: 63.31 MB / 390.3 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02814/0.3744, allocations: 23.26 MB / 413.6 MB, free: 12.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001921/0.3764, allocations: 35.69 kB / 413.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001957/0.3783, allocations: 0.6371 MB / 414.3 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01805/0.3964, allocations: 4.744 MB / 419 MB, free: 7.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009759/0.4062, allocations: 3.016 MB / 422 MB, free: 4.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01586/0.4221, allocations: 9.637 MB / 431.7 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001204/0.4233, allocations: 0.594 MB / 432.3 MB, free: 9.699 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001947/0.4253, allocations: 0.953 MB / 433.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001022/0.4263, allocations: 0.8362 MB / 434.1 MB, free: 7.902 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.4264, allocations: 48 kB / 434.1 MB, free: 7.855 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01519/0.4416, allocations: 7.539 MB / 441.6 MB, free: 316 kB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003716/0.442, allocations: 242.9 kB / 441.9 MB, free: 72 kB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001317/0.4433, allocations: 0.6975 MB / 442.6 MB, free: 15.36 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01634/0.4597, allocations: 5.662 MB / 448.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.4597, allocations: 0 / 448.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.4597, allocations: 0 / 448.2 MB, free: 9.688 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.4598, allocations: 0 / 448.2 MB, free: 9.688 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.006369/0.4661, allocations: 2.186 MB / 450.4 MB, free: 7.445 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.928e-05/0.4662, allocations: 8.031 kB / 450.4 MB, free: 7.438 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00467/0.4709, allocations: 0.6587 MB / 451.1 MB, free: 6.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00198/0.4729, allocations: 0.9929 MB / 452.1 MB, free: 5.742 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.013e-05/0.473, allocations: 74.39 kB / 452.2 MB, free: 5.668 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001296/0.4731, allocations: 99.94 kB / 452.3 MB, free: 5.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003573/0.4767, allocations: 1.671 MB / 453.9 MB, free: 3.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.435e-05/0.4767, allocations: 3.938 kB / 453.9 MB, free: 3.75 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001114/0.4768, allocations: 48 kB / 454 MB, free: 3.703 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.537e-05/0.4769, allocations: 31.98 kB / 454 MB, free: 3.672 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003235/0.4801, allocations: 1.463 MB / 455.5 MB, free: 2.207 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2247/0.7048, allocations: 8.413 MB / 463.9 MB, free: 111.7 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002952/0.7078, allocations: 1.687 MB / 465.6 MB, free: 110.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006187/0.7085, allocations: 406.5 kB / 466 MB, free: 110.5 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.11/0.8184, allocations: 63.97 MB / 0.5175 GB, free: 45.71 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.04e-05/0.8185, allocations: 47.12 kB / 0.5176 GB, free: 45.66 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 2.645e-06/0.8185, allocations: 0 / 0.5176 GB, free: 45.66 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005401/0.8239, allocations: 2.001 MB / 0.5195 GB, free: 43.63 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.751e-05/0.824, allocations: 191.4 kB / 0.5197 GB, free: 43.4 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001052/0.8251, allocations: 0.9641 MB / 0.5206 GB, free: 42.43 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.813e-05/0.8251, allocations: 37.7 kB / 0.5207 GB, free: 42.38 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003436/0.8255, allocations: 0.5717 MB / 0.5212 GB, free: 41.81 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.8257, allocations: 279.7 kB / 0.5215 GB, free: 41.54 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001073/0.8258, allocations: 97.66 kB / 0.5216 GB, free: 41.44 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.199e-05/0.8259, allocations: 353.9 kB / 0.5219 GB, free: 41.09 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004519/0.8264, allocations: 302.5 kB / 0.5222 GB, free: 40.79 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000633/0.827, allocations: 0.7392 MB / 0.5229 GB, free: 39.86 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/0.8282, allocations: 1.098 MB / 0.524 GB, free: 38.57 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.8282, allocations: 4 kB / 0.524 GB, free: 38.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001622/0.8298, allocations: 1.251 MB / 0.5252 GB, free: 37.31 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.8298, allocations: 12.25 kB / 0.5253 GB, free: 37.3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.8299, allocations: 16 kB / 0.5253 GB, free: 37.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003088/0.8329, allocations: 0.5195 MB / 0.5258 GB, free: 36.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009449/0.8339, allocations: 283.5 kB / 0.526 GB, free: 36.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007622/0.8347, allocations: 1.376 MB / 0.5274 GB, free: 35.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008488/0.8355, allocations: 162.6 kB / 0.5275 GB, free: 34.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.784e-05/0.8356, allocations: 67.92 kB / 0.5276 GB, free: 34.84 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.0004534/0.8361, allocations: 300 kB / 0.5279 GB, free: 34.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000155/0.8362, allocations: 122.4 kB / 0.528 GB, free: 34.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003812/0.8401, allocations: 4.502 MB / 0.5324 GB, free: 29.91 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.23e-05/0.8401, allocations: 47.92 kB / 0.5325 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.8401, allocations: 0 / 0.5325 GB, free: 29.86 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.047e-05/0.8401, allocations: 11.81 kB / 0.5325 GB, free: 29.85 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004221/0.8444, allocations: 4.944 MB / 0.5373 GB, free: 24.74 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.156e-06/0.8444, allocations: 0.6875 kB / 0.5373 GB, free: 24.74 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000721/0.8451, allocations: 175.7 kB / 0.5375 GB, free: 24.57 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003518/0.8486, allocations: 1.586 MB / 0.539 GB, free: 22.98 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.227e-05/0.8487, allocations: 23.98 kB / 0.539 GB, free: 22.95 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009527/0.8497, allocations: 1.755 MB / 0.5408 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.8497, allocations: 4 kB / 0.5408 GB, free: 21.15 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00185/0.8516, allocations: 2.029 MB / 0.5427 GB, free: 19.06 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003985/0.852, allocations: 353.8 kB / 0.5431 GB, free: 18.69 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001317/0.8521, allocations: 16 kB / 0.5431 GB, free: 18.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005517/0.8527, allocations: 55.91 kB / 0.5431 GB, free: 18.62 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.617e-05/0.8527, allocations: 64.36 kB / 0.5432 GB, free: 18.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.423e-05/0.8528, allocations: 31.98 kB / 0.5432 GB, free: 18.52 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008329/0.8536, allocations: 0.8303 MB / 0.544 GB, free: 17.69 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8536, allocations: 3.938 kB / 0.5441 GB, free: 17.69 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003699/0.8573, allocations: 1.288 MB / 0.5453 GB, free: 16.49 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.004256/0.8616, allocations: 1.245 MB / 0.5465 GB, free: 15.44 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002233/0.8639, allocations: 1.253 MB / 0.5477 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/0.8639, allocations: 4 kB / 0.5478 GB, free: 14.19 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001225/0.8651, allocations: 0.9087 MB / 0.5486 GB, free: 13.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003358/0.8685, allocations: 0.6949 MB / 0.5493 GB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003426/0.8719, allocations: 3.813 MB / 0.553 GB, free: 8.75 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.8724, allocations: 1.318 MB / 0.5543 GB, free: 7.402 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001078/0.8735, allocations: 0.6354 MB / 0.5549 GB, free: 6.773 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.8737, allocations: 119.4 kB / 0.5551 GB, free: 6.656 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.8737, allocations: 0 / 0.5551 GB, free: 6.656 MB / 382.1 MB Notification: Performance of Templates: time 0.2569/1.131, allocations: 56.06 MB / 0.6098 GB, free: 159 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)