Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(ModelicaTest): time 2.395/2.395, allocations: 270 MB / 282.7 MB, free: 1.754 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.289e-05/3.296e-05, allocations: 7.984 kB / 347 MB, free: 3.125 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3284/0.3284, allocations: 61.87 MB / 408.9 MB, free: 10.77 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 2.05/2.378, allocations: 0.7921 GB / 1.191 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002547/2.379, allocations: 92.55 kB / 1.191 GB, free: 147.1 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.039/5.417, allocations: 0.7036 GB / 1.895 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.049e-06/5.417, allocations: 0 / 1.895 GB, free: 32.45 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 7.163e-05/5.418, allocations: 24 kB / 1.895 GB, free: 32.43 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 276 * Number of variables: 276 Notification: Performance of Generate backend data structure: time 0.005252/5.423, allocations: 1.562 MB / 1.897 GB, free: 30.82 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.265e-05/5.423, allocations: 16.03 kB / 1.897 GB, free: 30.8 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002128/5.425, allocations: 314.2 kB / 1.897 GB, free: 30.5 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/5.427, allocations: 0.8062 MB / 1.898 GB, free: 29.65 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001367/5.427, allocations: 148.9 kB / 1.898 GB, free: 29.5 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002745/5.428, allocations: 104 kB / 1.898 GB, free: 29.39 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003324/5.431, allocations: 1.749 MB / 1.9 GB, free: 27.57 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.238e-05/5.431, allocations: 7.938 kB / 1.9 GB, free: 27.56 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002204/5.431, allocations: 47.98 kB / 1.9 GB, free: 27.51 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/5.431, allocations: 77.97 kB / 1.9 GB, free: 27.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002971/5.434, allocations: 1.585 MB / 1.901 GB, free: 25.85 MB / 0.5261 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01039/5.445, allocations: 6.836 MB / 1.908 GB, free: 18.55 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00129/5.446, allocations: 0.7733 MB / 1.909 GB, free: 17.77 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006923/5.447, allocations: 430.3 kB / 1.909 GB, free: 17.34 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002384/5.447, allocations: 279.8 kB / 1.909 GB, free: 17.02 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.498e-05/5.447, allocations: 47.31 kB / 1.909 GB, free: 16.96 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=60): time 3.664e-06/5.447, allocations: 0 / 1.909 GB, free: 16.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=72): time 0.01121/5.458, allocations: 3.763 MB / 1.913 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.935e-05/5.458, allocations: 115.6 kB / 1.913 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00153/5.46, allocations: 0.9792 MB / 1.914 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.0001564/5.46, allocations: 45.7 kB / 1.914 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002987/5.46, allocations: 0.5169 MB / 1.915 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002167/5.461, allocations: 260.2 kB / 1.915 GB, free: 11.13 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.162e-05/5.461, allocations: 20 kB / 1.915 GB, free: 11.11 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 8.737e-05/5.461, allocations: 358.8 kB / 1.915 GB, free: 10.75 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001/5.462, allocations: 0.5603 MB / 1.916 GB, free: 10.2 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001151/5.463, allocations: 0.8388 MB / 1.917 GB, free: 9.234 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001164/5.464, allocations: 0.6754 MB / 1.917 GB, free: 8.562 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/5.464, allocations: 4 kB / 1.917 GB, free: 8.559 MB / 0.5261 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.003448/5.468, allocations: 1.852 MB / 1.919 GB, free: 6.695 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.466e-05/5.468, allocations: 15.98 kB / 1.919 GB, free: 6.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/5.468, allocations: 11.61 kB / 1.919 GB, free: 6.672 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005403/5.473, allocations: 1.386 MB / 1.921 GB, free: 5.281 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000723/5.474, allocations: 139.8 kB / 1.921 GB, free: 5.145 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002991/5.477, allocations: 1.9 MB / 1.923 GB, free: 3.215 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0015/5.479, allocations: 119.7 kB / 1.923 GB, free: 3.098 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001605/5.479, allocations: 67.98 kB / 1.923 GB, free: 3.031 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 4 (volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (82): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {9 35} Notification: Performance of prepare postOptimizeDAE: time 0.0003254/5.479, allocations: 172.7 kB / 1.923 GB, free: 2.855 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002653/5.479, allocations: 110.8 kB / 1.923 GB, free: 2.746 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002905/5.482, allocations: 1.464 MB / 1.924 GB, free: 1.27 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.025e-05/5.482, allocations: 8 kB / 1.924 GB, free: 1.262 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/5.482, allocations: 4 kB / 1.924 GB, free: 1.258 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.057e-05/5.482, allocations: 3.984 kB / 1.924 GB, free: 1.254 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005469/5.488, allocations: 2.677 MB / 1.927 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.936e-06/5.488, allocations: 0 / 1.927 GB, free: 14.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002298/5.49, allocations: 327.6 kB / 1.927 GB, free: 14.19 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002614/5.49, allocations: 72.72 kB / 1.927 GB, free: 14.12 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001248/5.491, allocations: 39.97 kB / 1.927 GB, free: 14.08 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00326/5.494, allocations: 2.828 MB / 1.93 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.558e-06/5.494, allocations: 7.938 kB / 1.93 GB, free: 10.98 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003976/5.498, allocations: 1.858 MB / 1.932 GB, free: 9.09 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001075/5.499, allocations: 347.6 kB / 1.932 GB, free: 8.73 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002997/5.499, allocations: 31.94 kB / 1.932 GB, free: 8.699 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001301/5.501, allocations: 79.84 kB / 1.932 GB, free: 8.621 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001855/5.501, allocations: 60.7 kB / 1.933 GB, free: 8.562 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001891/5.501, allocations: 71.88 kB / 1.933 GB, free: 8.492 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.001518/5.503, allocations: 0.7739 MB / 1.933 GB, free: 7.703 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.49e-07/5.503, allocations: 0 / 1.933 GB, free: 7.703 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.00244/5.505, allocations: 0.5623 MB / 1.934 GB, free: 7.141 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 8 (volume.medium.p,volume.medium.Xi[1],volume.medium.Xi[2],volume.medium.Xi[3],volume.medium.Xi[4],volume.medium.Xi[5],volume.medium.Xi[6],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 76 * 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: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00399/5.509, allocations: 1.344 MB / 1.935 GB, free: 5.809 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.00348/5.513, allocations: 1.421 MB / 1.937 GB, free: 4.398 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 7.018e-06/5.513, allocations: 0.7812 kB / 1.937 GB, free: 4.398 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.002062/5.515, allocations: 0.8207 MB / 1.937 GB, free: 3.566 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004157/5.519, allocations: 0.7236 MB / 1.938 GB, free: 2.844 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006208/5.525, allocations: 2.47 MB / 1.941 GB, free: 340 kB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.3445/5.87, allocations: 1.191 MB / 1.942 GB, free: 93.04 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007272/5.87, allocations: 123.1 kB / 1.942 GB, free: 93.03 MB / 0.5417 GB Notification: Performance of SimCode: time 1.879e-06/5.87, allocations: 3.312 kB / 1.942 GB, free: 93.03 MB / 0.5417 GB Notification: Performance of Templates: time 0.05395/5.924, allocations: 35.37 MB / 1.976 GB, free: 92.39 MB / 0.5417 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasCalcHelperMain.cpp:25: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasAlgLoopMain.cpp:18: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasAlgloop83.cpp:210:65: error: use of undeclared identifier '_Closure94_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__hX_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure94_Modelica_Fluid_Pipes__omcQuot_537461746963506970652473686F727450697065_Medium_T__hX_f__nonlinear(_functions, /*box double*/_system->_volume_P_ports2_P_h_outflow_, /*box BaseArray*/tmp572, /*box bool*/true, /*box int*/1, /*box double*/0.0), 200.0, 6000.0, 1e-13, tmp573); ^ 1 error generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasCalcHelperMain.o] Error 1