Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.811/1.811, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.231e-05/3.248e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09056/0.09062, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.466/0.5567, allocations: 125.8 MB / 425.8 MB, free: 2.715 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003428/0.5571, allocations: 100.2 kB / 425.9 MB, free: 2.699 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.774/2.331, allocations: 381.2 MB / 0.7882 GB, free: 47.37 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.435e-06/2.331, allocations: 0 / 0.7882 GB, free: 47.37 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007471/2.332, allocations: 240.2 kB / 0.7884 GB, free: 47.33 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: 3092 * Number of variables: 3092 Notification: Performance of Generate backend data structure: time 0.04809/2.38, allocations: 10.27 MB / 0.7984 GB, free: 43.06 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/2.38, allocations: 14.59 kB / 0.7984 GB, free: 43.05 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008356/2.389, allocations: 1.807 MB / 0.8002 GB, free: 42.21 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0748/2.463, allocations: 6.287 MB / 0.8063 GB, free: 37.91 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03022/2.494, allocations: 8.751 MB / 0.8149 GB, free: 29.18 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001242/2.495, allocations: 0.7935 MB / 0.8157 GB, free: 28.4 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005083/2.5, allocations: 1.029 MB / 0.8167 GB, free: 27.39 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06018/2.56, allocations: 19.03 MB / 0.8352 GB, free: 8.039 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005176/2.561, allocations: 19.36 kB / 0.8353 GB, free: 8.023 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004668/2.565, allocations: 455.5 kB / 0.8357 GB, free: 7.594 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001548/2.567, allocations: 0.815 MB / 0.8365 GB, free: 6.777 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4071/2.974, allocations: 17.83 MB / 0.8539 GB, free: 44.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1593/3.134, allocations: 61.29 MB / 0.9138 GB, free: 31.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0389/3.172, allocations: 24.98 MB / 0.9381 GB, free: 14.28 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01973/3.192, allocations: 8.322 MB / 0.9463 GB, free: 10.68 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07919/3.272, allocations: 26.68 MB / 0.9723 GB, free: 14.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00013/3.272, allocations: 102.6 kB / 0.9724 GB, free: 14.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=832): time 1.306e-05/3.272, allocations: 3.781 kB / 0.9724 GB, free: 14.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=838): time 0.0892/3.361, allocations: 27.88 MB / 0.9997 GB, free: 8.047 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001267/3.361, allocations: 126.3 kB / 0.9998 GB, free: 7.914 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00725/3.368, allocations: 2.674 MB / 1.002 GB, free: 5.527 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001909/3.37, allocations: 137.7 kB / 1.003 GB, free: 5.387 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003807/3.374, allocations: 3.714 MB / 1.006 GB, free: 2.066 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.3538/3.728, allocations: 2.744 MB / 1.009 GB, free: 76.34 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00201/3.73, allocations: 144.9 kB / 1.009 GB, free: 76.34 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.001011/3.731, allocations: 0.6454 MB / 1.01 GB, free: 76.02 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01591/3.747, allocations: 5.486 MB / 1.015 GB, free: 76 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01796/3.765, allocations: 6.957 MB / 1.022 GB, free: 74.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01751/3.783, allocations: 6.644 MB / 1.028 GB, free: 74.43 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001164/3.783, allocations: 13.38 kB / 1.028 GB, free: 74.43 MB / 458.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.04692/3.83, allocations: 15.91 MB / 1.044 GB, free: 74.17 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.986e-05/3.83, allocations: 21.48 kB / 1.044 GB, free: 74.17 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001229/3.83, allocations: 43.09 kB / 1.044 GB, free: 74.17 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01648/3.846, allocations: 4.99 MB / 1.049 GB, free: 74.08 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01135/3.858, allocations: 1.339 MB / 1.05 GB, free: 74.08 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02179/3.88, allocations: 12.34 MB / 1.062 GB, free: 70.93 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008895/3.889, allocations: 426.7 kB / 1.062 GB, free: 70.92 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002701/3.891, allocations: 321 kB / 1.063 GB, free: 70.92 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 172 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (704): * Single equations (assignments): 638 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * 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,18 115} Notification: Performance of prepare postOptimizeDAE: time 0.004504/3.896, allocations: 493.7 kB / 1.063 GB, free: 70.82 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002985/3.899, allocations: 0.489 MB / 1.064 GB, free: 70.82 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04884/3.948, allocations: 15.91 MB / 1.079 GB, free: 67.18 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03919/3.987, allocations: 14.12 MB / 1.093 GB, free: 61.3 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.399e-05/3.987, allocations: 4.219 kB / 1.093 GB, free: 61.3 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001889/3.987, allocations: 35.39 kB / 1.093 GB, free: 61.3 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08312/4.07, allocations: 30.63 MB / 1.123 GB, free: 42.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001046/4.071, allocations: 2.938 kB / 1.123 GB, free: 42.45 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00961/4.08, allocations: 1.016 MB / 1.124 GB, free: 41.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01657/4.097, allocations: 4.796 MB / 1.129 GB, free: 37.71 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00244/4.099, allocations: 175.2 kB / 1.129 GB, free: 37.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02981/4.129, allocations: 12.15 MB / 1.141 GB, free: 26.53 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-06/4.129, allocations: 0 / 1.141 GB, free: 26.53 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07644/4.206, allocations: 23.55 MB / 1.164 GB, free: 5.656 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006886/4.213, allocations: 1.8 MB / 1.165 GB, free: 4.031 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002769/4.215, allocations: 118.4 kB / 1.166 GB, free: 3.918 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007483/4.223, allocations: 375.1 kB / 1.166 GB, free: 3.656 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003069/4.226, allocations: 0.5957 MB / 1.167 GB, free: 3.273 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001807/4.228, allocations: 224.8 kB / 1.167 GB, free: 3.074 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004736/4.233, allocations: 2.018 MB / 1.169 GB, free: 1.277 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.012e-06/4.233, allocations: 0 / 1.169 GB, free: 1.277 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01675/4.249, allocations: 2.332 MB / 1.171 GB, free: 0 / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (speed.phi,resistor.resistor[1].pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (538): * Single equations (assignments): 472 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 60 * 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,17 116} Notification: Performance of Backend phase and start with SimCode phase: time 0.4149/4.664, allocations: 24.7 MB / 1.195 GB, free: 73.38 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03658/4.701, allocations: 13.41 MB / 1.208 GB, free: 73.07 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/4.701, allocations: 3.375 kB / 1.208 GB, free: 73.07 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02097/4.722, allocations: 6.986 MB / 1.215 GB, free: 72.9 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00953/4.732, allocations: 0.9733 MB / 1.216 GB, free: 72.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.076/4.808, allocations: 23.7 MB / 1.239 GB, free: 68.05 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01529/4.823, allocations: 7.17 MB / 1.246 GB, free: 65.57 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01094/4.834, allocations: 3.95 MB / 1.25 GB, free: 62.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.533e-06/4.834, allocations: 0 / 1.25 GB, free: 62.25 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_IMS_CharacteristicsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsFunctions.cpp:516:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp356 = 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_IMS_CharacteristicsFunctions.cpp:516:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp356 = 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_IMS_CharacteristicsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_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_IMS_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_CharacteristicsCalcHelperMain.o] Error 1