Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.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.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.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.0009474/0.0009475, allocations: 92.23 kB / 15.06 MB, free: 1.098 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.001113/0.001113, allocations: 172.7 kB / 15.95 MB, free: 208 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.72/1.72, allocations: 205.4 MB / 222.1 MB, free: 5.668 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.0004719/0.0004719, allocations: 12 kB / 278.9 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.2993, allocations: 47.58 MB / 326.5 MB, free: 1.602 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.06136/0.3607, allocations: 59.12 MB / 385.6 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.03141/0.3921, allocations: 21.01 MB / 406.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002257/0.3944, allocations: 35.69 kB / 406.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002413/0.3969, allocations: 0.5746 MB / 407.2 MB, free: 2.723 MB / 334.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.01906/0.4159, allocations: 4.618 MB / 411.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01015/0.4261, allocations: 2.759 MB / 414.6 MB, free: 11.32 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.02394/0.4501, allocations: 14.02 MB / 428.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00167/0.4518, allocations: 0.5888 MB / 429.2 MB, free: 12.67 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002736/0.4545, allocations: 0.9299 MB / 430.1 MB, free: 11.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001726/0.4563, allocations: 0.7897 MB / 430.9 MB, free: 10.94 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004172/0.4567, allocations: 52 kB / 431 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01672/0.4735, allocations: 7.207 MB / 438.2 MB, free: 3.676 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006154/0.4741, allocations: 231 kB / 438.4 MB, free: 3.449 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008175/0.4749, allocations: 301 kB / 438.7 MB, free: 3.148 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009103/0.4841, allocations: 3.917 MB / 442.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.4841, allocations: 4 kB / 442.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.4841, allocations: 0 / 442.6 MB, free: 15.22 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.954e-05/0.4842, allocations: 0 / 442.6 MB, free: 15.22 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.007464/0.4917, allocations: 2.194 MB / 444.8 MB, free: 12.97 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.4917, allocations: 8.031 kB / 444.8 MB, free: 12.96 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00496/0.4967, allocations: 0.6578 MB / 445.5 MB, free: 12.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002436/0.4991, allocations: 0.9611 MB / 446.4 MB, free: 11.3 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.413e-05/0.4992, allocations: 77.95 kB / 446.5 MB, free: 11.22 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002069/0.4995, allocations: 96 kB / 446.6 MB, free: 11.12 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004017/0.5035, allocations: 1.663 MB / 448.3 MB, free: 9.316 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.516e-05/0.5035, allocations: 3.938 kB / 448.3 MB, free: 9.312 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001137/0.5036, allocations: 55.94 kB / 448.3 MB, free: 9.258 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.63e-05/0.5037, allocations: 24 kB / 448.3 MB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003357/0.507, allocations: 1.463 MB / 449.8 MB, free: 7.77 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2188/0.7258, allocations: 8.392 MB / 458.2 MB, free: 113.5 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00344/0.7293, allocations: 1.704 MB / 459.9 MB, free: 112.7 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005937/0.7299, allocations: 396 kB / 460.3 MB, free: 112.7 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09911/0.829, allocations: 63.97 MB / 0.512 GB, free: 49.13 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.649e-05/0.8291, allocations: 43.12 kB / 0.512 GB, free: 49.08 MB / 382.1 MB Notification: Performance of pre-optimization done (n=77): time 4.96e-06/0.8291, allocations: 4 kB / 0.512 GB, free: 49.08 MB / 382.1 MB Notification: Performance of matching and sorting (n=77): time 0.005508/0.8347, allocations: 2.026 MB / 0.514 GB, free: 47.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.467e-05/0.8347, allocations: 196.4 kB / 0.5142 GB, free: 46.85 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.8357, allocations: 0.9554 MB / 0.5151 GB, free: 45.88 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.583e-05/0.8358, allocations: 37.7 kB / 0.5152 GB, free: 45.84 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00032/0.8361, allocations: 0.5783 MB / 0.5157 GB, free: 45.28 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000164/0.8363, allocations: 274.9 kB / 0.516 GB, free: 45.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.444e-05/0.8364, allocations: 20 kB / 0.516 GB, free: 45 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.234e-05/0.8364, allocations: 352.5 kB / 0.5163 GB, free: 44.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004331/0.8369, allocations: 298.5 kB / 0.5166 GB, free: 44.36 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000589/0.8375, allocations: 0.7347 MB / 0.5173 GB, free: 43.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005555/0.838, allocations: 412.6 kB / 0.5177 GB, free: 43.03 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/0.8381, allocations: 4 kB / 0.5177 GB, free: 43.03 MB / 382.1 MB Notification: Performance of matching and sorting (n=140) (initialization): time 0.001623/0.8397, allocations: 1.232 MB / 0.5189 GB, free: 41.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.8397, allocations: 16.03 kB / 0.519 GB, free: 41.8 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/0.8397, allocations: 12.88 kB / 0.519 GB, free: 41.79 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002702/0.8424, allocations: 0.5341 MB / 0.5195 GB, free: 41.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009315/0.8434, allocations: 279.6 kB / 0.5198 GB, free: 40.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007799/0.8442, allocations: 1.372 MB / 0.5211 GB, free: 39.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009248/0.8451, allocations: 166.6 kB / 0.5213 GB, free: 39.4 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.589e-05/0.8452, allocations: 63.98 kB / 0.5213 GB, free: 39.34 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.0004707/0.8457, allocations: 307.3 kB / 0.5216 GB, free: 39.03 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.8459, allocations: 126.5 kB / 0.5217 GB, free: 38.91 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003792/0.8497, allocations: 4.491 MB / 0.5261 GB, free: 34.4 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.269e-05/0.8497, allocations: 47.86 kB / 0.5262 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.8497, allocations: 4 kB / 0.5262 GB, free: 34.35 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.467e-06/0.8497, allocations: 3.984 kB / 0.5262 GB, free: 34.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004358/0.8541, allocations: 4.929 MB / 0.531 GB, free: 29.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.8541, allocations: 3.984 kB / 0.531 GB, free: 29.24 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006931/0.8548, allocations: 167.7 kB / 0.5311 GB, free: 29.08 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003108/0.8579, allocations: 1.586 MB / 0.5327 GB, free: 27.49 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.87e-05/0.858, allocations: 27.98 kB / 0.5327 GB, free: 27.46 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009599/0.859, allocations: 1.758 MB / 0.5344 GB, free: 25.66 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.859, allocations: 0 / 0.5344 GB, free: 25.66 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/0.8608, allocations: 2.006 MB / 0.5364 GB, free: 23.59 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003641/0.8612, allocations: 361.7 kB / 0.5367 GB, free: 23.21 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001425/0.8613, allocations: 20 kB / 0.5368 GB, free: 23.19 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005433/0.8619, allocations: 59.8 kB / 0.5368 GB, free: 23.13 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.396e-05/0.862, allocations: 52.34 kB / 0.5369 GB, free: 23.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.273e-05/0.8621, allocations: 47.33 kB / 0.5369 GB, free: 23.04 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008414/0.8629, allocations: 0.8108 MB / 0.5377 GB, free: 22.23 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.8629, allocations: 0 / 0.5377 GB, free: 22.23 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003168/0.8661, allocations: 1.285 MB / 0.539 GB, free: 21.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 (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.003743/0.8698, allocations: 1.26 MB / 0.5402 GB, free: 19.96 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002145/0.872, allocations: 1.259 MB / 0.5414 GB, free: 18.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.719e-06/0.872, allocations: 0 / 0.5414 GB, free: 18.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001202/0.8732, allocations: 0.9046 MB / 0.5423 GB, free: 17.8 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002981/0.8762, allocations: 0.6854 MB / 0.543 GB, free: 17.12 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.8798, allocations: 3.726 MB / 0.5466 GB, free: 13.36 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005441/0.8803, allocations: 1.317 MB / 0.5479 GB, free: 12.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001212/0.8816, allocations: 0.6378 MB / 0.5485 GB, free: 11.38 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002318/0.8818, allocations: 119.4 kB / 0.5486 GB, free: 11.26 MB / 382.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8818, allocations: 3.938 kB / 0.5486 GB, free: 11.25 MB / 382.1 MB Notification: Performance of Templates: time 0.07912/0.9609, allocations: 55.91 MB / 0.6032 GB, free: 3.258 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile (rm -f Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; mkfifo Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe >> ../files/Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.sim & ./Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.pipe 2>&1)