Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.841/1.841, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.184e-05/3.202e-05, allocations: 7.984 kB / 255.5 MB, free: 3.062 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09811/0.09816, allocations: 44.51 MB / 300 MB, free: 6.5 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4805/0.5787, allocations: 121.2 MB / 421.2 MB, free: 4.434 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003609/0.5792, allocations: 95.88 kB / 421.3 MB, free: 4.418 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.666/2.245, allocations: 339.5 MB / 0.743 GB, free: 52.36 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.245e-06/2.246, allocations: 0 / 0.743 GB, free: 52.36 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008628/2.246, allocations: 218.5 kB / 0.7432 GB, free: 52.34 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.04485/2.291, allocations: 9.041 MB / 0.752 GB, free: 49.62 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/2.291, allocations: 7.469 kB / 0.752 GB, free: 49.62 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008265/2.3, allocations: 1.574 MB / 0.7535 GB, free: 49.49 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04043/2.34, allocations: 4.861 MB / 0.7583 GB, free: 48.97 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02683/2.367, allocations: 7.875 MB / 0.766 GB, free: 48.05 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001149/2.368, allocations: 0.698 MB / 0.7667 GB, free: 48.03 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004897/2.373, allocations: 0.8915 MB / 0.7675 GB, free: 48.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05361/2.427, allocations: 16.52 MB / 0.7837 GB, free: 42.89 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005729/2.427, allocations: 11.5 kB / 0.7837 GB, free: 42.89 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004641/2.432, allocations: 395.1 kB / 0.7841 GB, free: 42.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001085/2.433, allocations: 0.6971 MB / 0.7847 GB, free: 42.43 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04438/2.478, allocations: 15.2 MB / 0.7996 GB, free: 33.98 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.493/2.971, allocations: 54.08 MB / 0.8524 GB, free: 36.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03107/3.002, allocations: 18.77 MB / 0.8707 GB, free: 27.64 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01721/3.019, allocations: 6.977 MB / 0.8775 GB, free: 27.54 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06551/3.085, allocations: 22.68 MB / 0.8997 GB, free: 26.81 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.644e-05/3.085, allocations: 95.11 kB / 0.8998 GB, free: 26.76 MB / 426.7 MB Notification: Performance of pre-optimization done (n=684): time 1.355e-05/3.085, allocations: 3.844 kB / 0.8998 GB, free: 26.76 MB / 426.7 MB Notification: Performance of matching and sorting (n=690): time 0.07082/3.156, allocations: 23.38 MB / 0.9226 GB, free: 21.91 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.829e-05/3.156, allocations: 109.1 kB / 0.9227 GB, free: 21.84 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006338/3.162, allocations: 2.439 MB / 0.9251 GB, free: 20.89 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001617/3.164, allocations: 117.5 kB / 0.9252 GB, free: 20.79 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002691/3.166, allocations: 3.309 MB / 0.9284 GB, free: 18.31 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004233/3.171, allocations: 2.271 MB / 0.9307 GB, free: 16.55 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001881/3.173, allocations: 117.5 kB / 0.9308 GB, free: 16.45 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0009217/3.174, allocations: 0.5939 MB / 0.9313 GB, free: 16.02 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01223/3.186, allocations: 4.632 MB / 0.9359 GB, free: 14.05 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01381/3.2, allocations: 5.952 MB / 0.9417 GB, free: 10.61 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01467/3.214, allocations: 5.645 MB / 0.9472 GB, free: 8.25 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.693e-05/3.215, allocations: 10.78 kB / 0.9472 GB, free: 8.25 MB / 426.7 MB Notification: Performance of matching and sorting (n=883) (initialization): time 0.03979/3.254, allocations: 13.29 MB / 0.9602 GB, free: 2.871 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.109e-05/3.254, allocations: 20.94 kB / 0.9602 GB, free: 2.871 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000114/3.255, allocations: 37.16 kB / 0.9602 GB, free: 2.871 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01292/3.268, allocations: 3.837 MB / 0.964 GB, free: 1.742 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009106/3.277, allocations: 1.126 MB / 0.9651 GB, free: 1.707 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02373/3.3, allocations: 10.87 MB / 0.9757 GB, free: 9.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007714/3.308, allocations: 345 kB / 0.976 GB, free: 9.477 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002221/3.311, allocations: 273.2 kB / 0.9763 GB, free: 9.23 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (601): * Single equations (assignments): 533 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.003605/3.314, allocations: 436.2 kB / 0.9767 GB, free: 8.871 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002625/3.317, allocations: 430.3 kB / 0.9771 GB, free: 8.449 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04956/3.366, allocations: 13.44 MB / 0.9902 GB, free: 13.89 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03692/3.403, allocations: 11.73 MB / 1.002 GB, free: 3.5 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.745e-05/3.404, allocations: 0 / 1.002 GB, free: 3.5 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001486/3.404, allocations: 31.02 kB / 1.002 GB, free: 3.5 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4327/3.836, allocations: 26.71 MB / 1.028 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.074e-05/3.836, allocations: 6.5 kB / 1.028 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007277/3.844, allocations: 0.8065 MB / 1.029 GB, free: 77.43 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01253/3.856, allocations: 3.788 MB / 1.032 GB, free: 77.36 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001773/3.858, allocations: 143.8 kB / 1.032 GB, free: 77.36 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01768/3.876, allocations: 10.54 MB / 1.043 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.107e-06/3.876, allocations: 0 / 1.043 GB, free: 74.23 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04974/3.926, allocations: 19.66 MB / 1.062 GB, free: 73.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005792/3.932, allocations: 1.548 MB / 1.063 GB, free: 73.47 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002535/3.934, allocations: 94.19 kB / 1.064 GB, free: 73.39 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006196/3.94, allocations: 288.8 kB / 1.064 GB, free: 73.32 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002553/3.943, allocations: 0.4956 MB / 1.064 GB, free: 73.21 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001646/3.945, allocations: 189.1 kB / 1.064 GB, free: 73.16 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004791/3.949, allocations: 1.84 MB / 1.066 GB, free: 72.43 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.01e-07/3.95, allocations: 0 / 1.066 GB, free: 72.43 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01076/3.96, allocations: 1.68 MB / 1.068 GB, free: 72.25 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (436): * Single equations (assignments): 368 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.05245/4.013, allocations: 20.74 MB / 1.088 GB, free: 62.89 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0301/4.043, allocations: 11.33 MB / 1.099 GB, free: 58.38 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/4.043, allocations: 0 / 1.099 GB, free: 58.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01731/4.06, allocations: 5.852 MB / 1.105 GB, free: 56 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008177/4.069, allocations: 0.8346 MB / 1.106 GB, free: 55.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06414/4.133, allocations: 20.37 MB / 1.126 GB, free: 41.17 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01242/4.145, allocations: 6.33 MB / 1.132 GB, free: 36.33 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009125/4.154, allocations: 3.31 MB / 1.135 GB, free: 33.26 MB / 458.7 MB Notification: Performance of SimCode: time 1.563e-06/4.154, allocations: 0 / 1.135 GB, free: 33.26 MB / 458.7 MB 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"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp325 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsFMU.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 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_CharacteristicsCalcHelperMain.o] Error 1