Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.067/2.067, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.9e-05/3.91e-05, allocations: 6.5 kB / 292.3 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.1119, allocations: 50.4 MB / 342.7 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5447/0.6567, allocations: 133.7 MB / 476.3 MB, free: 9.09 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003904/0.6572, allocations: 102.2 kB / 476.4 MB, free: 9.035 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.696/2.353, allocations: 351.8 MB / 0.8088 GB, free: 54 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.435e-06/2.353, allocations: 0 / 0.8088 GB, free: 54 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0008265/2.354, allocations: 219.2 kB / 0.809 GB, free: 53.96 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.0463/2.4, allocations: 9.464 MB / 0.8182 GB, free: 47.44 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.4e-05/2.4, allocations: 8.031 kB / 0.8182 GB, free: 47.43 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008001/2.408, allocations: 1.6 MB / 0.8198 GB, free: 45.83 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03624/2.444, allocations: 4.277 MB / 0.824 GB, free: 41.57 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02903/2.473, allocations: 8.405 MB / 0.8322 GB, free: 33.2 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009074/2.474, allocations: 0.6903 MB / 0.8329 GB, free: 32.52 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004512/2.479, allocations: 0.9073 MB / 0.8338 GB, free: 31.62 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04985/2.529, allocations: 15.69 MB / 0.8491 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005572/2.53, allocations: 11.86 kB / 0.8491 GB, free: 15.64 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004104/2.534, allocations: 402.2 kB / 0.8495 GB, free: 15.26 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001448/2.535, allocations: 0.7505 MB / 0.8502 GB, free: 14.51 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04749/2.583, allocations: 13.68 MB / 0.8636 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.511/3.094, allocations: 52.57 MB / 0.9149 GB, free: 40.85 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03113/3.125, allocations: 19.96 MB / 0.9344 GB, free: 26.83 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009098/3.134, allocations: 3.569 MB / 0.9379 GB, free: 25.43 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008186/3.135, allocations: 180.2 kB / 0.9381 GB, free: 25.32 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.299e-05/3.135, allocations: 81.91 kB / 0.9381 GB, free: 25.25 MB / 458.7 MB Notification: Performance of pre-optimization done (n=453): time 8.546e-06/3.135, allocations: 0 / 0.9381 GB, free: 25.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=458): time 0.04088/3.176, allocations: 13.77 MB / 0.9516 GB, free: 19.37 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.287e-05/3.176, allocations: 105.4 kB / 0.9517 GB, free: 19.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01069/3.187, allocations: 3.928 MB / 0.9555 GB, free: 17.86 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001012/3.188, allocations: 102.1 kB / 0.9556 GB, free: 17.77 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003343/3.191, allocations: 4.019 MB / 0.9595 GB, free: 14.71 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002334/3.194, allocations: 1.556 MB / 0.9611 GB, free: 13.52 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008683/3.194, allocations: 125.8 kB / 0.9612 GB, free: 13.42 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000618/3.195, allocations: 0.5578 MB / 0.9617 GB, free: 13 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008151/3.203, allocations: 2.978 MB / 0.9646 GB, free: 11.81 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009955/3.213, allocations: 5.079 MB / 0.9696 GB, free: 7.965 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01035/3.224, allocations: 4.201 MB / 0.9737 GB, free: 6.289 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001034/3.224, allocations: 20.88 kB / 0.9737 GB, free: 6.289 MB / 458.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02898/3.253, allocations: 9.286 MB / 0.9828 GB, free: 3.141 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.267e-05/3.253, allocations: 37.73 kB / 0.9828 GB, free: 3.141 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001562/3.253, allocations: 69.81 kB / 0.9829 GB, free: 3.141 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006617/3.26, allocations: 1.37 MB / 0.9842 GB, free: 2.875 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01043/3.27, allocations: 1.376 MB / 0.9856 GB, free: 2.832 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02696/3.297, allocations: 11.59 MB / 0.9969 GB, free: 12.06 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007878/3.305, allocations: 363.6 kB / 0.9972 GB, free: 11.94 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001822/3.307, allocations: 302.8 kB / 0.9975 GB, free: 11.89 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002655/3.31, allocations: 489.8 kB / 0.998 GB, free: 11.57 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001692/3.311, allocations: 459.2 kB / 0.9984 GB, free: 11.33 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02563/3.337, allocations: 8.425 MB / 1.007 GB, free: 8.004 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02039/3.358, allocations: 6.138 MB / 1.013 GB, free: 3.547 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.743e-05/3.358, allocations: 15.94 kB / 1.013 GB, free: 3.535 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001431/3.358, allocations: 25.83 kB / 1.013 GB, free: 3.531 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06048/3.418, allocations: 17.81 MB / 1.03 GB, free: 4.828 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.27e-05/3.418, allocations: 8 kB / 1.03 GB, free: 4.82 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007438/3.426, allocations: 0.8038 MB / 1.031 GB, free: 4.152 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006461/3.432, allocations: 1.245 MB / 1.032 GB, free: 3.18 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001129/3.434, allocations: 105.3 kB / 1.032 GB, free: 3.086 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03482/3.468, allocations: 10.53 MB / 1.042 GB, free: 9.539 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.172e-05/3.469, allocations: 15.89 kB / 1.042 GB, free: 9.523 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4538/3.922, allocations: 12.45 MB / 1.055 GB, free: 90.87 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005254/3.928, allocations: 1.134 MB / 1.056 GB, free: 90.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002484/3.93, allocations: 92.19 kB / 1.056 GB, free: 90.78 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00638/3.937, allocations: 242.1 kB / 1.056 GB, free: 90.78 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002023/3.939, allocations: 326.7 kB / 1.056 GB, free: 90.77 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001371/3.94, allocations: 140.2 kB / 1.057 GB, free: 90.77 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.01048/3.951, allocations: 2.996 MB / 1.059 GB, free: 90.57 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.242e-06/3.951, allocations: 0.9844 kB / 1.059 GB, free: 90.57 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01195/3.963, allocations: 1.794 MB / 1.061 GB, free: 90.57 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0395/4.002, allocations: 15.1 MB / 1.076 GB, free: 86.58 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02228/4.025, allocations: 7.638 MB / 1.083 GB, free: 86.21 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-05/4.025, allocations: 7.031 kB / 1.083 GB, free: 86.21 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01226/4.037, allocations: 3.811 MB / 1.087 GB, free: 85.92 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008807/4.046, allocations: 0.9347 MB / 1.088 GB, free: 85.88 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06839/4.114, allocations: 18.28 MB / 1.106 GB, free: 82.87 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0154/4.13, allocations: 6.499 MB / 1.112 GB, free: 81.98 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01071/4.14, allocations: 3.609 MB / 1.116 GB, free: 81.97 MB / 0.4948 GB Notification: Performance of SimCode: time 1.703e-06/4.141, allocations: 0 / 1.116 GB, free: 81.97 MB / 0.4948 GB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:316:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp134.getData(), table_.getDim(1), table_.getDim(2), ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:269:23: note: candidate function not viable: 6th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTable1D_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:667:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp167 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:667:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp167 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 3 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o] Error 1