Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX") Notification: Performance of loadModel(Modelica): time 2.116/2.116, allocations: 224.7 MB / 241.1 MB, free: 1.691 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.82e-05/3.835e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 50.41 MB / 345 MB, free: 8.949 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX): time 0.00179/0.1158, allocations: 1.053 MB / 346 MB, free: 7.887 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4995/0.6153, allocations: 121.8 MB / 467.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.749e-05/0.6155, allocations: 0 / 467.8 MB, free: 15.62 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 5.251e-05/0.6155, allocations: 7.922 kB / 467.8 MB, free: 15.61 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001053/0.6166, allocations: 234 kB / 468 MB, free: 15.41 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.6178, allocations: 302.6 kB / 468.3 MB, free: 15.17 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 9.035e-05/0.6179, allocations: 33.27 kB / 468.3 MB, free: 15.15 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.765e-05/0.6179, allocations: 3.984 kB / 468.4 MB, free: 15.15 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.372e-05/0.618, allocations: 28.11 kB / 468.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.206e-05/0.6181, allocations: 31.97 kB / 468.4 MB, free: 15.12 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002301/0.6204, allocations: 0.7149 MB / 469.1 MB, free: 14.54 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001794/0.6206, allocations: 28 kB / 469.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 4.542e-05/0.6207, allocations: 8 kB / 469.2 MB, free: 14.51 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.6208, allocations: 8 kB / 469.2 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001253/0.622, allocations: 387.8 kB / 469.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.6221, allocations: 0 / 469.5 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.508e-06/0.6221, allocations: 3.938 kB / 469.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.517e-05/0.6221, allocations: 3.938 kB / 469.6 MB, free: 14.12 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0006823/0.6228, allocations: 431 kB / 470 MB, free: 13.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.699e-05/0.6228, allocations: 19.97 kB / 470 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006381/0.6235, allocations: 59.92 kB / 470.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002486/0.6238, allocations: 194.9 kB / 470.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.949e-05/0.6238, allocations: 3.984 kB / 470.2 MB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.864e-05/0.6238, allocations: 8 kB / 470.3 MB, free: 13.33 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002214/0.6241, allocations: 69.58 kB / 470.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.548e-06/0.6241, allocations: 0 / 470.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.6241, allocations: 0 / 470.3 MB, free: 13.25 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.083e-06/0.6241, allocations: 7.953 kB / 470.3 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001698/0.6243, allocations: 47.91 kB / 470.4 MB, free: 13.2 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002746/0.6246, allocations: 194.6 kB / 470.6 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004694/0.6251, allocations: 109.2 kB / 470.7 MB, free: 12.83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008059/0.6259, allocations: 141.2 kB / 470.8 MB, free: 12.67 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.6259, allocations: 34.56 kB / 470.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 2.164e-06/0.626, allocations: 0 / 470.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0005324/0.6265, allocations: 121.5 kB / 471 MB, free: 12.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.6266, allocations: 77.11 kB / 471 MB, free: 12.41 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001799/0.6268, allocations: 141.5 kB / 471.2 MB, free: 12.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.066e-05/0.6268, allocations: 29.7 kB / 471.2 MB, free: 12.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.684e-05/0.6269, allocations: 154.6 kB / 471.4 MB, free: 12.08 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.697e-05/0.6269, allocations: 19.64 kB / 471.4 MB, free: 12.06 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.122e-05/0.627, allocations: 8 kB / 471.4 MB, free: 12.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001364/0.6271, allocations: 310.8 kB / 471.7 MB, free: 11.74 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.6272, allocations: 27.98 kB / 471.7 MB, free: 11.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.6274, allocations: 55.33 kB / 471.8 MB, free: 11.64 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001246/0.6275, allocations: 27.98 kB / 471.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.6275, allocations: 0 / 471.8 MB, free: 11.62 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0003676/0.6279, allocations: 105.6 kB / 471.9 MB, free: 11.51 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.628, allocations: 8 kB / 471.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.628, allocations: 0 / 471.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.628, allocations: 480 / 471.9 MB, free: 11.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001364/0.6281, allocations: 19.92 kB / 471.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.644e-06/0.6282, allocations: 4 kB / 471.9 MB, free: 11.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.963e-05/0.6283, allocations: 7.906 kB / 471.9 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.6283, allocations: 7.891 kB / 471.9 MB, free: 11.46 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001069/0.6284, allocations: 117.8 kB / 472.1 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.243e-05/0.6285, allocations: 8 kB / 472.1 MB, free: 11.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004188/0.6289, allocations: 121.4 kB / 472.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.6289, allocations: 0 / 472.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.629, allocations: 0 / 472.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.629, allocations: 0 / 472.2 MB, free: 11.21 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000207/0.6292, allocations: 185.6 kB / 472.4 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.6292, allocations: 4.812 kB / 472.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001461/0.6294, allocations: 11.98 kB / 472.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.563e-06/0.6294, allocations: 4 kB / 472.4 MB, free: 10.96 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.244e-05/0.6294, allocations: 4 kB / 472.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.6294, allocations: 0 / 472.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.6294, allocations: 3.938 kB / 472.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005181/0.6299, allocations: 172.3 kB / 472.6 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.524e-05/0.63, allocations: 93.11 kB / 472.7 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.875e-05/0.6301, allocations: 4.062 kB / 472.7 MB, free: 10.64 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.087e-05/0.6302, allocations: 8.062 kB / 472.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.596e-05/0.6302, allocations: 3.984 kB / 472.7 MB, free: 10.63 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.068e-05/0.6303, allocations: 4 kB / 472.7 MB, free: 10.62 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001194/0.6304, allocations: 111.3 kB / 472.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.7e-07/0.6304, allocations: 0 / 472.8 MB, free: 10.52 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006695/0.6311, allocations: 155.8 kB / 472.9 MB, free: 10.36 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (s1,h1) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001267/0.6324, allocations: 363.6 kB / 473.3 MB, free: 10.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003085/0.6327, allocations: 59.95 kB / 473.4 MB, free: 9.949 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.6327, allocations: 0 / 473.4 MB, free: 9.949 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001426/0.6329, allocations: 31.92 kB / 473.4 MB, free: 9.918 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.6332, allocations: 24.11 kB / 473.4 MB, free: 9.895 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007944/0.634, allocations: 393.8 kB / 473.8 MB, free: 9.473 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.6343, allocations: 0.6926 MB / 474.5 MB, free: 8.754 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.192e-05/0.6344, allocations: 15.44 kB / 474.5 MB, free: 8.738 MB / 362.7 MB Notification: Performance of SimCode: time 8.01e-07/0.6344, allocations: 0 / 474.5 MB, free: 8.738 MB / 362.7 MB Notification: Performance of Templates: time 0.01072/0.6451, allocations: 4.068 MB / 478.6 MB, free: 4.668 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TX.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 OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXFunctions.h:188:50: error: too few arguments to function call, expected 7, have 5 _functions->f__nonlinear(u, p, s, X, output); ~~~~~~~~~~~~~~~~~~~~~~~~ ^ ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXFunctions.h:16:3: note: 'f__nonlinear' declared here void /*f__nonlinearRetType*/ f__nonlinear(double u_, double h_, BaseArray& X_, bool exclEnthForm_, int refChoice_, double h_off_, f__nonlinearRetType& output); ^ 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TXCalcHelperMain.o] Error 1