Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001097/0.001097, allocations: 111.2 kB / 18.47 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001136/0.001136, allocations: 206.8 kB / 19.42 MB, free: 3.656 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.145/1.145, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.045e-05/1.046e-05, allocations: 6.219 kB / 359.3 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings): time 0.1703/0.1704, allocations: 63.05 MB / 422.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02283/0.1932, allocations: 22.46 MB / 444.8 MB, free: 4.672 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001203/0.1945, allocations: 31.75 kB / 444.9 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001819/0.1963, allocations: 0.7411 MB / 445.6 MB, free: 3.898 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0125/0.2089, allocations: 5.818 MB / 451.4 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007643/0.2165, allocations: 3.475 MB / 454.9 MB, free: 10.61 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01591/0.2325, allocations: 9.42 MB / 464.3 MB, free: 1.074 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009519/0.2334, allocations: 0.6112 MB / 464.9 MB, free: 464 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001835/0.2353, allocations: 1.179 MB / 466.1 MB, free: 15.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01325/0.2485, allocations: 7.095 MB / 473.2 MB, free: 8.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002311/0.2488, allocations: 92 kB / 473.3 MB, free: 7.973 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01026/0.259, allocations: 7.27 MB / 480.6 MB, free: 0.6953 MB / 382.1 MB Notification: Performance of combineBinaries: time 0.001945/0.261, allocations: 2.475 MB / 483.1 MB, free: 14.19 MB / 398.1 MB Notification: Performance of replaceArrayConstructors: time 0.001092/0.2621, allocations: 1.593 MB / 484.6 MB, free: 12.58 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003522/0.2625, allocations: 231.4 kB / 484.9 MB, free: 12.35 MB / 398.1 MB Notification: Performance of FrontEnd: time 0.0001711/0.2626, allocations: 35.92 kB / 484.9 MB, free: 12.32 MB / 398.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.005/0.2676, allocations: 5.85 MB / 490.8 MB, free: 6.266 MB / 398.1 MB Notification: Performance of FunctionAlias: time 0.000318/0.268, allocations: 279.4 kB / 491 MB, free: 5.992 MB / 398.1 MB Notification: Performance of Early Inline: time 0.004686/0.2727, allocations: 4.517 MB / 495.5 MB, free: 1.375 MB / 398.1 MB Notification: Performance of simplify1: time 0.0006261/0.2733, allocations: 0.4995 MB / 496 MB, free: 0.8281 MB / 398.1 MB Notification: Performance of Alias: time 0.003046/0.2763, allocations: 2.604 MB / 498.7 MB, free: 13.88 MB / 414.1 MB Notification: Performance of simplify2: time 0.0004925/0.2768, allocations: 455.3 kB / 499.1 MB, free: 13.39 MB / 414.1 MB Notification: Performance of Detect States: time 0.0005951/0.2775, allocations: 0.6671 MB / 499.8 MB, free: 12.7 MB / 414.1 MB Notification: Performance of Events: time 0.000718/0.2782, allocations: 0.6326 MB / 0.4887 GB, free: 12.07 MB / 414.1 MB Notification: Performance of Partitioning: time 0.001254/0.2794, allocations: 1.413 MB / 0.49 GB, free: 10.25 MB / 414.1 MB Notification: Performance of Causalize: time 0.00581/0.2853, allocations: 5.487 MB / 0.4954 GB, free: 4.32 MB / 414.1 MB Notification: Performance of After Index Reduction Inline: time 0.00277/0.288, allocations: 2.994 MB / 0.4983 GB, free: 1.281 MB / 414.1 MB Notification: Performance of Inline: time 0.006488/0.2945, allocations: 6.917 MB / 0.5051 GB, free: 10.24 MB / 430.1 MB Notification: Performance of Partitioning: time 0.0001744/0.2947, allocations: 105.9 kB / 0.5052 GB, free: 10.11 MB / 430.1 MB Notification: Performance of Cleanup: time 0.0008239/0.2956, allocations: 1.124 MB / 0.5063 GB, free: 8.984 MB / 430.1 MB Notification: Performance of Causalize: time 0.008005/0.3036, allocations: 6.93 MB / 0.5131 GB, free: 1.91 MB / 430.1 MB Notification: Performance of Tearing: time 0.002753/0.3063, allocations: 2.575 MB / 0.5156 GB, free: 15.24 MB / 446.1 MB Notification: Performance of Initialization: time 5.41e-07/0.3063, allocations: 0 / 0.5156 GB, free: 15.24 MB / 446.1 MB Notification: Performance of Tearing: time 0.002558/0.3089, allocations: 2.45 MB / 0.518 GB, free: 12.69 MB / 446.1 MB Notification: Performance of Categorize: time 4.252e-05/0.309, allocations: 19.88 kB / 0.518 GB, free: 12.67 MB / 446.1 MB Notification: Performance of Solve: time 0.001206/0.3102, allocations: 0.8327 MB / 0.5188 GB, free: 11.82 MB / 446.1 MB Notification: Performance of Jacobian: time 2.935e-06/0.3102, allocations: 0 / 0.5188 GB, free: 11.82 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: 2, nonlinear:0) 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: 2, nonlinear:0) Notification: Performance of backend: time 8.828e-05/0.3103, allocations: 101.7 kB / 0.5189 GB, free: 11.73 MB / 446.1 MB Notification: Performance of SimCode: time 0.168/0.4783, allocations: 12.76 MB / 0.5313 GB, free: 69.24 MB / 446.1 MB Notification: Performance of Templates: time 0.05287/0.5312, allocations: 53.19 MB / 0.5833 GB, free: 42.05 MB / 446.1 MB make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile make -j1 -f Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -Os -march=native -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Modelica_trunk_Modelica_Fluid_Examples_Explanatory_MomentumBalanceFittings -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=4 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.o Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:241:59: error: use of undeclared identifier 'i' tmp24 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:244:134: error: use of undeclared identifier 'i' tmp28 = modelica_real_to_modelica_string((&data->localData[0]->realVars[78] /* rightBoundary2.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:247:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:255:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:412:59: error: use of undeclared identifier 'i' tmp68 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:415:133: error: use of undeclared identifier 'i' tmp72 = modelica_real_to_modelica_string((&data->localData[0]->realVars[64] /* leftBoundary2.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:418:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:426:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:583:60: error: use of undeclared identifier 'i' tmp112 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:586:135: error: use of undeclared identifier 'i' tmp116 = modelica_real_to_modelica_string((&data->localData[0]->realVars[16] /* rightBoundary1.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:589:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:597:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:754:60: error: use of undeclared identifier 'i' tmp156 = modelica_integer_to_modelica_string(i, ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:757:133: error: use of undeclared identifier 'i' tmp160 = modelica_real_to_modelica_string((&data->localData[0]->realVars[2] /* leftBoundary1.medium.X[1] variable */)[i - 1], ((modelica_integer) 6), ((modelica_integer) 0), 1 /* true */); ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:760:22: error: use of undeclared identifier 'i' switch(i) ^ Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.c:768:109: error: use of undeclared identifier 'i' throwStreamPrint(threadData, "Index %ld out of bounds [1..1] for array {\"water\"}", (long) i); ^ 16 errors generated. make: *** [: Modelica_trunk_Modelica.Fluid.Examples.Explanatory.MomentumBalanceFittings.o] Error 1