Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") translateModel(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|suddenExpansion1.dp|suddenExpansion1.m_flow|suddenExpansion1.port_b_T|suddenExpansion2.dp|suddenExpansion2.m_flow|suddenExpansion2.port_b_T",fileNamePrefix="Modelica_3.2.3_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.001321/0.001321, allocations: 107.7 kB / 18.41 MB, free: 4.668 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.001448/0.001448, allocations: 191 kB / 19.35 MB, free: 3.742 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.431/1.431, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.043e-05/2.044e-05, allocations: 6.219 kB / 329.2 MB, free: 3.355 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.272/0.272, allocations: 62.84 MB / 392 MB, free: 9.863 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02558/0.2976, allocations: 22.45 MB / 414.4 MB, free: 9.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.2992, allocations: 30.69 kB / 414.5 MB, free: 9.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001978/0.3012, allocations: 0.7305 MB / 415.2 MB, free: 8.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01619/0.3174, allocations: 5.785 MB / 421 MB, free: 6.051 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009335/0.3268, allocations: 3.447 MB / 424.4 MB, free: 3.609 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01823/0.345, allocations: 9.412 MB / 433.8 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001508/0.3466, allocations: 0.7162 MB / 434.6 MB, free: 12.67 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002166/0.3487, allocations: 1.156 MB / 435.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01383/0.3626, allocations: 7.095 MB / 442.8 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003021/0.3629, allocations: 96 kB / 442.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01509/0.378, allocations: 7.247 MB / 450.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of combineBinaries: time 0.002187/0.3802, allocations: 2.466 MB / 452.6 MB, free: 10.46 MB / 350.1 MB Notification: Performance of replaceArrayConstructors: time 0.001129/0.3814, allocations: 1.588 MB / 454.2 MB, free: 8.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004318/0.3818, allocations: 235.4 kB / 454.4 MB, free: 8.621 MB / 350.1 MB Notification: Performance of FrontEnd: time 0.0003147/0.3821, allocations: 39.92 kB / 454.5 MB, free: 8.582 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 (192) * Number of variables: 256 (256) Notification: Performance of Bindings: time 0.007175/0.3893, allocations: 7.467 MB / 461.9 MB, free: 0.918 MB / 350.1 MB Notification: Performance of FunctionAlias: time 0.0003328/0.3897, allocations: 339.4 kB / 462.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of Early Inline: time 0.00609/0.3958, allocations: 5.934 MB / 468.2 MB, free: 10.55 MB / 366.1 MB Notification: Performance of simplify1: time 0.0003955/0.3962, allocations: 363.5 kB / 468.6 MB, free: 10.2 MB / 366.1 MB Notification: Performance of Alias: time 0.005095/0.4013, allocations: 4.312 MB / 472.9 MB, free: 5.539 MB / 366.1 MB Notification: Performance of simplify2: time 0.0003578/0.4016, allocations: 331.6 kB / 473.2 MB, free: 5.215 MB / 366.1 MB Notification: Performance of Events: time 0.0008723/0.4025, allocations: 0.7914 MB / 474 MB, free: 4.418 MB / 366.1 MB Notification: Performance of Detect States: time 0.0009126/0.4035, allocations: 1.001 MB / 475 MB, free: 3.395 MB / 366.1 MB Notification: Performance of Partitioning: time 0.001893/0.4054, allocations: 1.92 MB / 476.9 MB, free: 1.059 MB / 366.1 MB Notification: Performance of Causalize: time 0.008305/0.4137, allocations: 7.644 MB / 484.6 MB, free: 8.984 MB / 382.1 MB Notification: Performance of After Index Reduction Inline: time 0.003989/0.4177, allocations: 4.041 MB / 488.6 MB, free: 4.898 MB / 382.1 MB Notification: Performance of Inline: time 0.009187/0.4269, allocations: 9 MB / 497.6 MB, free: 11.78 MB / 398.1 MB Notification: Performance of Partitioning: time 0.0003914/0.4273, allocations: 309.7 kB / 497.9 MB, free: 11.44 MB / 398.1 MB Notification: Performance of Cleanup: time 0.0003955/0.4277, allocations: 355.4 kB / 498.2 MB, free: 11.09 MB / 398.1 MB Notification: Performance of Causalize: time 0.01274/0.4404, allocations: 10.54 MB / 0.4969 GB, free: 416 kB / 398.1 MB Notification: Performance of Tearing: time 0.001535/0.442, allocations: 1.501 MB / 0.4983 GB, free: 14.81 MB / 414.1 MB Notification: Performance of Initialization: time 1.012e-06/0.442, allocations: 8 kB / 0.4983 GB, free: 14.8 MB / 414.1 MB Notification: Performance of Tearing: time 0.001407/0.4434, allocations: 1.53 MB / 0.4998 GB, free: 13.17 MB / 414.1 MB Notification: Performance of Categorize: time 8.186e-05/0.4435, allocations: 11.94 kB / 0.4998 GB, free: 13.16 MB / 414.1 MB Notification: Performance of Solve: time 0.001783/0.4453, allocations: 1.032 MB / 0.5008 GB, free: 12.11 MB / 414.1 MB Notification: Performance of Jacobian: time 3.416e-06/0.4453, allocations: 0 / 0.5008 GB, free: 12.11 MB / 414.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 24 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 30 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 52 (52) {leftBoundary1.medium.state.phase, rightBoundary1.medium.state.phase, suddenExpansion1.state_a.phase, suddenExpansion1.state_b.phase, suddenExpansion1.state_b_des.phase, suddenExpansion1.state_a_nondes.phase, leftBoundary2.medium.state.phase, rightBoundary2.medium.state.phase, suddenExpansion2.state_a.phase, suddenExpansion2.state_b.phase, suddenExpansion2.state_b_des.phase, suddenExpansion2.state_a_nondes.phase, leftAdaptor.state_a.phase, leftAdaptor.state_b.phase, leftAdaptor.state_b_des.phase, leftAdaptor.state_a_nondes.phase, rightAdaptor.state_a.phase, rightAdaptor.state_b.phase, rightAdaptor.state_b_des.phase, rightAdaptor.state_a_nondes.phase, $SEV_31, $SEV_30, $SEV_29, $SEV_28, $SEV_27, $SEV_26, $SEV_25, $SEV_24, $SEV_23, $SEV_22, $SEV_21, $SEV_20, $SEV_19, $SEV_18, $SEV_17, $SEV_16, $SEV_15, $SEV_14, $SEV_13, $SEV_12, $SEV_11, $SEV_10[$i1], $SEV_9, $SEV_8[$i1], $SEV_7, $SEV_6, $SEV_5[$i1], $SEV_4, $SEV_3[$i1], $SEV_2, $SEV_1, $SEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 200 (scalar:192, array:8, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 290 (scalar:282, array:8, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 9.306e-05/0.4454, allocations: 102.8 kB / 0.5009 GB, free: 12.01 MB / 414.1 MB Error: Internal error NSimStrongComponent.Block.createNoReturnBlocks failed for [ALGO] (0) ($RES_SIM_142) [----] Modelica.Fluid.Utilities.checkBoundary("WaterIF97", {"water"}, false, true, leftBoundary1.X_in_internal, "Boundary_pT");