Running command: translateModel(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.p",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition") Notification: Performance of loadModel(ModelicaTest): time 2.445/2.445, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.809e-05/2.813e-05, allocations: 0 / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1295, allocations: 61.89 MB / 410.9 MB, free: 12.89 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition): time 0.6158/0.7454, allocations: 139.1 MB / 0.5372 GB, free: 13.39 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.7582, allocations: 6.196 MB / 0.5432 GB, free: 7.18 MB / 458.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001063/0.7594, allocations: 23.81 kB / 0.5432 GB, free: 7.156 MB / 458.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001242/0.7606, allocations: 302.4 kB / 0.5435 GB, free: 6.859 MB / 458.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004465/0.7651, allocations: 1.133 MB / 0.5446 GB, free: 5.723 MB / 458.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004336/0.7695, allocations: 0.9935 MB / 0.5456 GB, free: 4.727 MB / 458.7 MB Notification: Performance of NFFlatten.flatten: time 0.002313/0.7718, allocations: 0.9427 MB / 0.5465 GB, free: 3.777 MB / 458.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008366/0.7727, allocations: 395.2 kB / 0.5469 GB, free: 3.391 MB / 458.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003711/0.7764, allocations: 1.201 MB / 0.5481 GB, free: 2.188 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003974/0.7804, allocations: 1.298 MB / 0.5493 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/0.7841, allocations: 0.9793 MB / 0.5503 GB, free: 15.91 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005483/0.7847, allocations: 56 kB / 0.5504 GB, free: 15.85 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005795/0.7852, allocations: 371.1 kB / 0.5507 GB, free: 15.49 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004803/0.7857, allocations: 120 kB / 0.5508 GB, free: 15.37 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003057/0.7888, allocations: 1.47 MB / 0.5523 GB, free: 13.9 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.7889, allocations: 4 kB / 0.5523 GB, free: 13.9 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.7889, allocations: 3.938 kB / 0.5523 GB, free: 13.89 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.342e-05/0.7889, allocations: 4 kB / 0.5523 GB, free: 13.89 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: 192 * Number of variables: 192 Notification: Performance of Generate backend data structure: time 0.003795/0.7927, allocations: 1.162 MB / 0.5534 GB, free: 12.68 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/0.7928, allocations: 8.031 kB / 0.5534 GB, free: 12.67 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002419/0.7952, allocations: 310.6 kB / 0.5537 GB, free: 12.36 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001552/0.7968, allocations: 0.5822 MB / 0.5543 GB, free: 11.74 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001528/0.7969, allocations: 116.7 kB / 0.5544 GB, free: 11.62 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000191/0.7972, allocations: 63.98 kB / 0.5545 GB, free: 11.55 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003061/0.8002, allocations: 1.256 MB / 0.5557 GB, free: 10.23 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.108e-05/0.8003, allocations: 4 kB / 0.5557 GB, free: 10.23 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000175/0.8005, allocations: 32 kB / 0.5557 GB, free: 10.2 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001603/0.8006, allocations: 81.2 kB / 0.5558 GB, free: 10.11 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002924/0.8036, allocations: 1.063 MB / 0.5568 GB, free: 9.051 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.01382/0.8174, allocations: 4.84 MB / 0.5616 GB, free: 3.914 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008078/0.8183, allocations: 275.2 kB / 0.5618 GB, free: 3.637 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000148/0.8185, allocations: 101 kB / 0.5619 GB, free: 3.52 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.8185, allocations: 34.56 kB / 0.5619 GB, free: 3.477 MB / 474.7 MB Notification: Performance of pre-optimization done (n=28): time 2.995e-06/0.8185, allocations: 0 / 0.5619 GB, free: 3.477 MB / 474.7 MB Notification: Performance of matching and sorting (n=33): time 0.01083/0.8294, allocations: 1.753 MB / 0.5637 GB, free: 1.625 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.97e-05/0.8295, allocations: 132.5 kB / 0.5638 GB, free: 1.465 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001687/0.8312, allocations: 0.8287 MB / 0.5646 GB, free: 0.6133 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 8.251e-05/0.8313, allocations: 33.7 kB / 0.5646 GB, free: 0.5742 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00055/0.8319, allocations: 0.5814 MB / 0.5652 GB, free: 15.98 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001745/0.832, allocations: 134.3 kB / 0.5653 GB, free: 15.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.391e-05/0.8321, allocations: 28 kB / 0.5653 GB, free: 15.82 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.8323, allocations: 350.8 kB / 0.5657 GB, free: 15.47 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007807/0.8331, allocations: 266.5 kB / 0.5659 GB, free: 15.21 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001248/0.8344, allocations: 0.86 MB / 0.5668 GB, free: 14.07 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/0.8355, allocations: 455.4 kB / 0.5672 GB, free: 13.62 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.205e-05/0.8356, allocations: 4 kB / 0.5672 GB, free: 13.62 MB / 490.7 MB Notification: Performance of matching and sorting (n=130) (initialization): time 0.003068/0.8386, allocations: 1.193 MB / 0.5684 GB, free: 12.41 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.397e-05/0.8387, allocations: 16 kB / 0.5684 GB, free: 12.4 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.971e-05/0.8388, allocations: 20 kB / 0.5684 GB, free: 12.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002092/0.8409, allocations: 288.6 kB / 0.5687 GB, free: 12.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/0.842, allocations: 203.6 kB / 0.5689 GB, free: 11.89 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001639/0.8437, allocations: 0.9253 MB / 0.5698 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001293/0.845, allocations: 51.98 kB / 0.5698 GB, free: 10.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.8452, allocations: 71.98 kB / 0.5699 GB, free: 10.82 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 90 * 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 (112): * Single equations (assignments): 111 * 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 {2 17} Notification: Performance of prepare postOptimizeDAE: time 0.0006548/0.8458, allocations: 341.2 kB / 0.5702 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000207/0.846, allocations: 90.92 kB / 0.5703 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00166/0.8477, allocations: 0.522 MB / 0.5708 GB, free: 9.859 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.8477, allocations: 4 kB / 0.5708 GB, free: 9.855 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.8478, allocations: 3.938 kB / 0.5708 GB, free: 9.852 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.067e-05/0.8478, allocations: 8.016 kB / 0.5708 GB, free: 9.844 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002672/0.8505, allocations: 1.125 MB / 0.5719 GB, free: 8.656 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.8505, allocations: 0 / 0.5719 GB, free: 8.656 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001925/0.8524, allocations: 183.8 kB / 0.5721 GB, free: 8.477 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001291/0.8526, allocations: 24.84 kB / 0.5721 GB, free: 8.449 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.497e-05/0.8526, allocations: 8 kB / 0.5721 GB, free: 8.441 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002898/0.8555, allocations: 2.688 MB / 0.5748 GB, free: 5.488 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.077e-06/0.8556, allocations: 7.984 kB / 0.5748 GB, free: 5.48 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001894/0.8575, allocations: 0.7052 MB / 0.5755 GB, free: 4.746 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005397/0.8581, allocations: 207.9 kB / 0.5757 GB, free: 4.523 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002301/0.8583, allocations: 11.98 kB / 0.5757 GB, free: 4.512 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000845/0.8592, allocations: 19.98 kB / 0.5757 GB, free: 4.492 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.8593, allocations: 31.97 kB / 0.5757 GB, free: 4.461 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.849e-05/0.8594, allocations: 23.98 kB / 0.5757 GB, free: 4.438 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001305/0.8607, allocations: 0.6087 MB / 0.5763 GB, free: 3.816 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.8607, allocations: 0 / 0.5763 GB, free: 3.816 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001841/0.8626, allocations: 371.9 kB / 0.5767 GB, free: 3.453 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * 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.002513/0.8651, allocations: 0.5087 MB / 0.5772 GB, free: 2.938 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002268/0.8674, allocations: 0.6631 MB / 0.5778 GB, free: 2.277 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/0.8674, allocations: 4.062 kB / 0.5778 GB, free: 2.273 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001474/0.8689, allocations: 354.3 kB / 0.5782 GB, free: 1.914 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003308/0.8722, allocations: 410.3 kB / 0.5786 GB, free: 1.516 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00419/0.8764, allocations: 1.937 MB / 0.5805 GB, free: 15.54 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009969/0.8775, allocations: 1.044 MB / 0.5815 GB, free: 14.46 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004786/0.878, allocations: 91.41 kB / 0.5816 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of SimCode: time 1.072e-06/0.878, allocations: 0 / 0.5816 GB, free: 14.38 MB / 0.4948 GB Notification: Performance of Templates: time 0.04993/0.9279, allocations: 21.87 MB / 0.6029 GB, free: 8.602 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedComposition.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.SimpleNaturalGasFixedCompositionCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedCompositionCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedCompositionCalcHelperMain.cpp:26: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedCompositionAlgLoopMain.cpp:18: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedCompositionAlgloop71.cpp:88: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*//*t4*/tmp295, /*box bool*/true, /*box int*/1, /*box double*/0.0), 200.0, 6000.0, 1e-13, tmp296); ^ 1 error generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedCompositionCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestsWithFluid.MediaTestModels.IdealGases.SimpleNaturalGasFixedCompositionCalcHelperMain.o] Error 1