Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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_4.0.0_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.001123/0.001123, allocations: 109.1 kB / 17.75 MB, free: 5.352 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.001086/0.001086, allocations: 192.6 kB / 18.68 MB, free: 4.43 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.171/1.171, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.634e-05/1.635e-05, allocations: 2.281 kB / 351.9 MB, free: 3.285 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1822/0.1822, allocations: 62.85 MB / 414.8 MB, free: 2.578 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02415/0.2064, allocations: 22.45 MB / 437.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001252/0.2077, allocations: 27.81 kB / 437.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.2094, allocations: 0.7257 MB / 438 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01356/0.223, allocations: 5.791 MB / 443.8 MB, free: 7.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008006/0.231, allocations: 3.462 MB / 447.2 MB, free: 4.27 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01405/0.2451, allocations: 9.409 MB / 456.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008592/0.2459, allocations: 0.7194 MB / 457.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001526/0.2475, allocations: 1.168 MB / 458.5 MB, free: 8.852 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01086/0.2583, allocations: 7.091 MB / 465.6 MB, free: 1.648 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001377/0.2585, allocations: 95.94 kB / 465.7 MB, free: 1.555 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01028/0.2688, allocations: 7.251 MB / 473 MB, free: 10.3 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.001647/0.2704, allocations: 2.472 MB / 475.4 MB, free: 7.801 MB / 382.1 MB Notification: Performance of replaceArrayConstructors: time 0.0008834/0.2713, allocations: 1.602 MB / 477 MB, free: 6.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002555/0.2716, allocations: 231.4 kB / 477.3 MB, free: 5.953 MB / 382.1 MB Notification: Performance of FrontEnd: time 0.0001858/0.2718, allocations: 39.88 kB / 477.3 MB, free: 5.914 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 (192) * Number of variables: 256 (256) Notification: Performance of Bindings: time 0.005651/0.2774, allocations: 7.471 MB / 484.8 MB, free: 14.24 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.0002668/0.2777, allocations: 347.3 kB / 485.1 MB, free: 13.9 MB / 398.1 MB Notification: Performance of Early Inline: time 0.005262/0.283, allocations: 5.926 MB / 491 MB, free: 7.875 MB / 398.1 MB Notification: Performance of simplify1: time 0.000315/0.2833, allocations: 367.5 kB / 491.4 MB, free: 7.516 MB / 398.1 MB Notification: Performance of Alias: time 0.004185/0.2875, allocations: 4.308 MB / 495.7 MB, free: 2.855 MB / 398.1 MB Notification: Performance of simplify2: time 0.0003433/0.2879, allocations: 339.5 kB / 496 MB, free: 2.523 MB / 398.1 MB Notification: Performance of Events: time 0.0008032/0.2887, allocations: 0.7845 MB / 496.8 MB, free: 1.738 MB / 398.1 MB Notification: Performance of Detect States: time 0.0007891/0.2895, allocations: 1.005 MB / 497.8 MB, free: 0.7109 MB / 398.1 MB Notification: Performance of Partitioning: time 0.001662/0.2911, allocations: 1.92 MB / 499.7 MB, free: 14.38 MB / 414.1 MB Notification: Performance of Causalize: time 0.007449/0.2986, allocations: 7.656 MB / 0.4955 GB, free: 6.285 MB / 414.1 MB Notification: Performance of After Index Reduction Inline: time 0.003452/0.3021, allocations: 4.025 MB / 0.4994 GB, free: 2.219 MB / 414.1 MB Notification: Performance of Inline: time 0.008227/0.3103, allocations: 8.999 MB / 0.5082 GB, free: 9.082 MB / 430.1 MB Notification: Performance of Partitioning: time 0.000332/0.3106, allocations: 301.8 kB / 0.5085 GB, free: 8.758 MB / 430.1 MB Notification: Performance of Cleanup: time 0.0002972/0.3109, allocations: 351.4 kB / 0.5088 GB, free: 8.414 MB / 430.1 MB Notification: Performance of Causalize: time 0.01098/0.3219, allocations: 10.55 MB / 0.5192 GB, free: 13.71 MB / 446.1 MB Notification: Performance of Tearing: time 0.001376/0.3233, allocations: 1.507 MB / 0.5206 GB, free: 12.11 MB / 446.1 MB Notification: Performance of Initialization: time 1.032e-06/0.3233, allocations: 0 / 0.5206 GB, free: 12.11 MB / 446.1 MB Notification: Performance of Tearing: time 0.001293/0.3246, allocations: 1.522 MB / 0.5221 GB, free: 10.49 MB / 446.1 MB Notification: Performance of Categorize: time 6.384e-05/0.3247, allocations: 15.88 kB / 0.5221 GB, free: 10.47 MB / 446.1 MB Notification: Performance of Solve: time 0.001513/0.3262, allocations: 1.024 MB / 0.5231 GB, free: 9.426 MB / 446.1 MB Notification: Performance of Jacobian: time 3.376e-06/0.3262, allocations: 3.938 kB / 0.5231 GB, free: 9.422 MB / 446.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 8.942e-05/0.3263, allocations: 122.3 kB / 0.5232 GB, free: 9.312 MB / 446.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");