Running command: translateModel(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|h1|s1",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T") Notification: Performance of loadModel(Modelica): time 2.408/2.408, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.164e-05/3.166e-05, allocations: 11.98 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1127, allocations: 50.41 MB / 345 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T): time 0.001757/0.1145, allocations: 1.045 MB / 346 MB, free: 7.918 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4918/0.6063, allocations: 121.5 MB / 467.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.12e-05/0.6064, allocations: 0 / 467.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 1.917e-05/0.6064, allocations: 0 / 467.5 MB, free: 15.72 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00075/0.6072, allocations: 177.5 kB / 467.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008385/0.6081, allocations: 232.4 kB / 467.9 MB, free: 15.38 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 6.705e-05/0.6081, allocations: 30.7 kB / 468 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.6082, allocations: 2.344 kB / 468 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.731e-05/0.6082, allocations: 18.11 kB / 468 MB, free: 15.35 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.35e-05/0.6083, allocations: 37.22 kB / 468 MB, free: 15.32 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001383/0.6097, allocations: 479.4 kB / 468.5 MB, free: 15.13 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001348/0.6099, allocations: 23.98 kB / 468.5 MB, free: 15.11 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 2.958e-05/0.6099, allocations: 15.92 kB / 468.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 2.679e-05/0.61, allocations: 4 kB / 468.5 MB, free: 15.09 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007204/0.6107, allocations: 268 kB / 468.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.6107, allocations: 0 / 468.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.6107, allocations: 0 / 468.8 MB, free: 14.83 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.036e-05/0.6108, allocations: 4 kB / 468.8 MB, free: 14.82 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.0005494/0.6113, allocations: 407.1 kB / 469.2 MB, free: 14.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.6114, allocations: 12.03 kB / 469.2 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001713/0.6131, allocations: 88.36 kB / 469.3 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003704/0.6135, allocations: 214.9 kB / 469.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.797e-05/0.6135, allocations: 4 kB / 469.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.048e-05/0.6136, allocations: 4 kB / 469.5 MB, free: 14.02 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003057/0.6139, allocations: 95.27 kB / 469.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.006e-05/0.6139, allocations: 0 / 469.6 MB, free: 13.92 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.26e-05/0.6139, allocations: 7.953 kB / 469.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.6139, allocations: 0 / 469.6 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002808/0.6142, allocations: 43.95 kB / 469.6 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003334/0.6146, allocations: 214.9 kB / 469.9 MB, free: 13.6 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007201/0.6153, allocations: 121.2 kB / 470 MB, free: 13.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007783/0.6161, allocations: 0.974 MB / 470.9 MB, free: 12.27 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.127e-05/0.6162, allocations: 42.56 kB / 471 MB, free: 12.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 2.385e-06/0.6162, allocations: 0 / 471 MB, free: 12.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0007987/0.617, allocations: 137.5 kB / 471.1 MB, free: 12.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/0.6171, allocations: 81.11 kB / 471.2 MB, free: 11.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003665/0.6174, allocations: 168.9 kB / 471.4 MB, free: 11.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.6175, allocations: 25.7 kB / 471.4 MB, free: 11.78 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.15e-05/0.6175, allocations: 154.6 kB / 471.5 MB, free: 11.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.82e-05/0.6176, allocations: 27.64 kB / 471.6 MB, free: 11.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.604e-05/0.6176, allocations: 4 kB / 471.6 MB, free: 11.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001148/0.6178, allocations: 310.8 kB / 471.9 MB, free: 11.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001753/0.6179, allocations: 23.97 kB / 471.9 MB, free: 11.26 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001898/0.6181, allocations: 51.41 kB / 472 MB, free: 11.2 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001962/0.6184, allocations: 31.98 kB / 472 MB, free: 11.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.6184, allocations: 0 / 472 MB, free: 11.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0005148/0.6189, allocations: 113.6 kB / 472.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.554e-05/0.6189, allocations: 11.94 kB / 472.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.619, allocations: 0 / 472.1 MB, free: 11.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.73e-05/0.619, allocations: 3.953 kB / 472.1 MB, free: 11.03 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002438/0.6192, allocations: 32.83 kB / 472.1 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.715e-06/0.6193, allocations: 4.062 kB / 472.1 MB, free: 11 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003187/0.6196, allocations: 8.312 kB / 472.2 MB, free: 10.99 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.617e-05/0.6196, allocations: 11.98 kB / 472.2 MB, free: 10.98 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.0001215/0.6198, allocations: 121.8 kB / 472.3 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.065e-05/0.6198, allocations: 7.906 kB / 472.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008577/0.6207, allocations: 248.1 kB / 472.5 MB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.018e-05/0.6207, allocations: 3.953 kB / 472.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.6207, allocations: 0 / 472.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.6208, allocations: 0 / 472.5 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002762/0.621, allocations: 218.9 kB / 472.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.6211, allocations: 0 / 472.8 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003152/0.6214, allocations: 23.97 kB / 472.8 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.6214, allocations: 7.938 kB / 472.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.806e-05/0.6214, allocations: 0 / 472.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.38e-06/0.6214, allocations: 3.953 kB / 472.8 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.809e-06/0.6215, allocations: 4 kB / 472.8 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006595/0.6221, allocations: 183.6 kB / 473 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001219/0.6223, allocations: 105 kB / 473.1 MB, free: 9.965 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.409e-05/0.6223, allocations: 7.953 kB / 473.1 MB, free: 9.957 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002919/0.6226, allocations: 7.984 kB / 473.1 MB, free: 9.949 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.431e-05/0.6227, allocations: 3.984 kB / 473.1 MB, free: 9.945 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.6227, allocations: 4.875 kB / 473.1 MB, free: 9.941 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003/0.6231, allocations: 147.2 kB / 473.2 MB, free: 9.797 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/0.6231, allocations: 0 / 473.2 MB, free: 9.797 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006007/0.6237, allocations: 119.9 kB / 473.4 MB, free: 9.68 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 (8): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0008492/0.6245, allocations: 280.2 kB / 473.6 MB, free: 9.402 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004386/0.625, allocations: 83.88 kB / 473.7 MB, free: 9.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.625, allocations: 0 / 473.7 MB, free: 9.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001943/0.6252, allocations: 35.98 kB / 473.7 MB, free: 9.285 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.6254, allocations: 12.27 kB / 473.8 MB, free: 9.273 MB / 362.7 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SimCodeUtil.mo:8145:7-8145:116:writable] Error: Internal error Failed to find SimVar list for Var: Medium.data:CONST() = Modelica.Media.IdealGases.Common.DataRecord("Air", 0.0289651159, -4333.833858403446, 298609.6803431054, 1000.0, {10099.5016, -196.827561, 5.00915511, -0.00576101373, 1.06685993e-05, -7.94029797e-09, 2.18523191e-12}, {-176.796731, -3.921504225}, {241521.443, -1257.8746, 5.14455867, -0.000213854179, 7.06522784e-08, -1.07148349e-11, 6.57780015e-16}, {6462.26319, -8.147411905}, 287.0512249529787) "Data record of ideal gas substance" type: Modelica.Media.IdealGases.Common.DataRecord Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009381/0.6264, allocations: 419.5 kB / 474.2 MB, free: 8.836 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002608/0.6267, allocations: 0.6887 MB / 474.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002306/0.6269, allocations: 47.38 kB / 474.9 MB, free: 8.074 MB / 362.7 MB Notification: Performance of SimCode: time 1.022e-06/0.6269, allocations: 0 / 474.9 MB, free: 8.074 MB / 362.7 MB Notification: Performance of Templates: time 0.01011/0.637, allocations: 3.971 MB / 478.9 MB, free: 4.102 MB / 362.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_T.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_TCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TFunctions.h:146:47: error: too many arguments to function call, expected 4, have 5 _functions->f__nonlinear(u, data, p, s, output); ~~~~~~~~~~~~~~~~~~~~~~~~ ^~~~~~ ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TFunctions.h:16:3: note: 'f__nonlinear' declared here void /*f__nonlinearRetType*/ f__nonlinear(double u_, Modelica_Media_IdealGases_Common_DataRecordType& data_, double h_, f__nonlinearRetType& output); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TFunctions.cpp:361:139: error: use of undeclared identifier 'Medium_' Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure0_f__nonlinear(this, /*box Modelica_Media_IdealGases_Common_DataRecordType*/Medium_.data_, /*box double*/h_), 200.0, 6000.0, (100.0 * 1e-15),tmp83); ^ ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TFunctions.cpp:382:139: error: use of undeclared identifier 'Medium_' Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure1_f__nonlinear(this, /*box Modelica_Media_IdealGases_Common_DataRecordType*/Medium_.data_, /*box double*/p_, /*box double*/s_), 200.0, 6000.0, (100.0 * 1e-15),tmp84); ^ 3 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Media.Examples.SolveOneNonlinearEquation.Inverse_sh_TCalcHelperMain.o] Error 1