Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.X.1.|volume.medium.X.2.|volume.medium.X.3.|volume.medium.X.4.|volume.medium.X.5.|volume.medium.X.6.|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas") Notification: Performance of loadModel(ModelicaTest): time 2.355/2.355, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.009e-05/3.021e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1396/0.1396, allocations: 61.89 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGas): time 0.6462/0.7859, allocations: 139 MB / 0.537 GB, free: 13.53 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.0129/0.7989, allocations: 6.191 MB / 0.5431 GB, free: 7.324 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001013/0.8, allocations: 27.75 kB / 0.5431 GB, free: 7.297 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001178/0.8011, allocations: 314.5 kB / 0.5434 GB, free: 6.988 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004362/0.8055, allocations: 1.141 MB / 0.5445 GB, free: 5.844 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003916/0.8095, allocations: 1.029 MB / 0.5455 GB, free: 4.812 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.00251/0.812, allocations: 1.025 MB / 0.5465 GB, free: 3.781 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001395/0.8134, allocations: 0.5786 MB / 0.5471 GB, free: 3.203 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003961/0.8174, allocations: 1.248 MB / 0.5483 GB, free: 1.953 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004385/0.8219, allocations: 1.403 MB / 0.5497 GB, free: 0.5469 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003604/0.8255, allocations: 0.9949 MB / 0.5507 GB, free: 15.55 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007151/0.8263, allocations: 76 kB / 0.5507 GB, free: 15.48 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009872/0.8273, allocations: 0.6003 MB / 0.5513 GB, free: 14.88 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000706/0.828, allocations: 160 kB / 0.5515 GB, free: 14.72 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004128/0.8321, allocations: 1.895 MB / 0.5533 GB, free: 12.82 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.8322, allocations: 3.938 kB / 0.5533 GB, free: 12.82 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.8322, allocations: 0 / 0.5533 GB, free: 12.82 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.718e-05/0.8323, allocations: 4 kB / 0.5533 GB, free: 12.82 MB / 474.7 MB 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.004949/0.8372, allocations: 1.346 MB / 0.5546 GB, free: 11.42 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.987e-05/0.8373, allocations: 15.97 kB / 0.5547 GB, free: 11.41 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00268/0.84, allocations: 346.1 kB / 0.555 GB, free: 11.07 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002064/0.8421, allocations: 0.7069 MB / 0.5557 GB, free: 10.32 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000193/0.8423, allocations: 141.3 kB / 0.5558 GB, free: 10.17 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003165/0.8426, allocations: 108 kB / 0.5559 GB, free: 10.06 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004942/0.8476, allocations: 1.845 MB / 0.5577 GB, free: 8.148 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.472e-05/0.8477, allocations: 7.844 kB / 0.5577 GB, free: 8.141 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002684/0.848, allocations: 48 kB / 0.5578 GB, free: 8.094 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001778/0.8482, allocations: 85.95 kB / 0.5578 GB, free: 8.012 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005164/0.8533, allocations: 1.71 MB / 0.5595 GB, free: 6.297 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.0163/0.8697, allocations: 6.877 MB / 0.5662 GB, free: 14.94 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002269/0.872, allocations: 0.7908 MB / 0.567 GB, free: 14.14 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001925/0.8722, allocations: 101.7 kB / 0.5671 GB, free: 14.03 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.769e-05/0.8723, allocations: 47.12 kB / 0.5671 GB, free: 13.97 MB / 490.7 MB Notification: Performance of pre-optimization done (n=60): time 5.76e-06/0.8723, allocations: 0 / 0.5671 GB, free: 13.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=72): time 0.01949/0.8918, allocations: 4.199 MB / 0.5713 GB, free: 9.688 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.553e-05/0.892, allocations: 119.4 kB / 0.5714 GB, free: 9.547 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002176/0.8942, allocations: 0.9945 MB / 0.5723 GB, free: 8.531 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002716/0.8945, allocations: 41.7 kB / 0.5724 GB, free: 8.484 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005349/0.895, allocations: 0.5169 MB / 0.5729 GB, free: 7.961 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000381/0.8954, allocations: 264.3 kB / 0.5731 GB, free: 7.699 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001221/0.8955, allocations: 20 kB / 0.5732 GB, free: 7.68 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001737/0.8957, allocations: 354.8 kB / 0.5735 GB, free: 7.324 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001687/0.8974, allocations: 0.5914 MB / 0.5741 GB, free: 6.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001954/0.8994, allocations: 0.8721 MB / 0.5749 GB, free: 5.738 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001964/0.9014, allocations: 0.7134 MB / 0.5756 GB, free: 5.027 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.9014, allocations: 0 / 0.5756 GB, free: 5.027 MB / 490.7 MB Notification: Performance of matching and sorting (n=125) (initialization): time 0.005686/0.9071, allocations: 1.962 MB / 0.5775 GB, free: 3.055 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.356e-05/0.9072, allocations: 8 kB / 0.5775 GB, free: 3.047 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.278e-05/0.9072, allocations: 8 kB / 0.5775 GB, free: 3.039 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00878/0.916, allocations: 1.433 MB / 0.5789 GB, free: 1.602 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/0.9173, allocations: 135.8 kB / 0.5791 GB, free: 1.469 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005107/0.9224, allocations: 1.943 MB / 0.581 GB, free: 15.49 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002081/0.9245, allocations: 115.8 kB / 0.5811 GB, free: 15.38 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002279/0.9248, allocations: 67.98 kB / 0.5811 GB, free: 15.31 MB / 0.4948 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.001036/0.9258, allocations: 389.6 kB / 0.5815 GB, free: 14.92 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003744/0.9262, allocations: 118.7 kB / 0.5816 GB, free: 14.8 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004439/0.9307, allocations: 1.519 MB / 0.5831 GB, free: 13.27 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.9307, allocations: 12 kB / 0.5831 GB, free: 13.26 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.022e-05/0.9308, allocations: 4 kB / 0.5831 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.9308, allocations: 3.984 kB / 0.5831 GB, free: 13.25 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007227/0.938, allocations: 2.711 MB / 0.5858 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.9381, allocations: 0 / 0.5858 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003623/0.9417, allocations: 327.6 kB / 0.5861 GB, free: 10.16 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003081/0.942, allocations: 68.83 kB / 0.5862 GB, free: 10.09 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/0.9422, allocations: 35.97 kB / 0.5862 GB, free: 10.05 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003302/0.9455, allocations: 2.852 MB / 0.589 GB, free: 6.938 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.9456, allocations: 0 / 0.589 GB, free: 6.938 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005247/0.9508, allocations: 1.939 MB / 0.5909 GB, free: 4.965 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001152/0.952, allocations: 343.7 kB / 0.5912 GB, free: 4.609 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004297/0.9525, allocations: 32.12 kB / 0.5912 GB, free: 4.578 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001921/0.9544, allocations: 91.81 kB / 0.5913 GB, free: 4.488 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002208/0.9547, allocations: 56.58 kB / 0.5914 GB, free: 4.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002334/0.9549, allocations: 63.89 kB / 0.5914 GB, free: 4.367 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001755/0.9567, allocations: 0.793 MB / 0.5922 GB, free: 3.562 MB / 0.4948 GB Notification: Performance of sort global known variables: time 5.21e-07/0.9567, allocations: 0 / 0.5922 GB, free: 3.562 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.002282/0.959, allocations: 463.9 kB / 0.5927 GB, free: 3.109 MB / 0.4948 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.002821/0.9618, allocations: 0.544 MB / 0.5932 GB, free: 2.562 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004802/0.9667, allocations: 1.474 MB / 0.5946 GB, free: 1.09 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/0.9667, allocations: 16.84 kB / 0.5946 GB, free: 1.074 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002924/0.9697, allocations: 0.8457 MB / 0.5955 GB, free: 224 kB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006367/0.9761, allocations: 0.7121 MB / 0.5962 GB, free: 15.51 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009536/0.9857, allocations: 3.434 MB / 0.5995 GB, free: 12.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001299/0.987, allocations: 1.199 MB / 0.6007 GB, free: 10.82 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008699/0.9879, allocations: 123.4 kB / 0.6008 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of SimCode: time 1.163e-06/0.9879, allocations: 0 / 0.6008 GB, free: 10.7 MB / 0.5105 GB Notification: Performance of Templates: time 0.4449/1.433, allocations: 30.81 MB / 0.6309 GB, free: 172.2 MB / 0.5105 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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -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:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasAlgLoopMain.cpp:18: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasAlgloop85.cpp:210:65: error: use of undeclared identifier '_Closure4_f__nonlinear' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure4_f__nonlinear(_functions, /*box double*/_system->_volume_P_ports2_P_h_outflow_, /*box BaseArray*/tmp447, /*box bool*/true, /*box int*/1, /*box double*/0.0), 200.0, 6000.0, 1e-13, tmp448); ^ 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