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.837/1.837, allocations: 194.9 MB / 208.4 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.322e-05/3.287e-05, allocations: 0 / 255.5 MB, free: 3.055 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09478/0.09484, allocations: 44.49 MB / 300 MB, free: 6.496 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4641/0.559, allocations: 125.8 MB / 425.8 MB, free: 2.312 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003437/0.5594, allocations: 97.66 kB / 425.9 MB, free: 2.297 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.729/2.288, allocations: 381.2 MB / 0.7882 GB, free: 47.24 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.308e-06/2.288, allocations: 3.328 kB / 0.7882 GB, free: 47.24 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0007148/2.289, allocations: 237.9 kB / 0.7884 GB, free: 47.21 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.04763/2.337, allocations: 10.27 MB / 0.7985 GB, free: 42.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/2.337, allocations: 10.97 kB / 0.7985 GB, free: 42.93 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008495/2.345, allocations: 1.814 MB / 0.8002 GB, free: 42.09 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05656/2.402, allocations: 6.279 MB / 0.8064 GB, free: 37.64 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04108/2.443, allocations: 8.748 MB / 0.8149 GB, free: 28.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001282/2.444, allocations: 0.792 MB / 0.8157 GB, free: 28.13 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005347/2.45, allocations: 1.032 MB / 0.8167 GB, free: 27.12 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06158/2.511, allocations: 18.9 MB / 0.8351 GB, free: 7.906 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000571/2.512, allocations: 27.8 kB / 0.8352 GB, free: 7.879 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00476/2.517, allocations: 450.4 kB / 0.8356 GB, free: 7.453 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001547/2.518, allocations: 0.8189 MB / 0.8364 GB, free: 6.633 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3887/2.907, allocations: 17.69 MB / 0.8537 GB, free: 44.37 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1548/3.062, allocations: 61.28 MB / 0.9135 GB, free: 31.42 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03678/3.099, allocations: 24.91 MB / 0.9379 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.02011/3.119, allocations: 8.327 MB / 0.946 GB, free: 10.51 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07782/3.197, allocations: 26.72 MB / 0.9721 GB, free: 14.72 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001211/3.197, allocations: 106.5 kB / 0.9722 GB, free: 14.63 MB / 442.7 MB Notification: Performance of pre-optimization done (n=832): time 1.293e-05/3.197, allocations: 0.6562 kB / 0.9722 GB, free: 14.63 MB / 442.7 MB Notification: Performance of matching and sorting (n=838): time 0.08836/3.285, allocations: 27.88 MB / 0.9994 GB, free: 8.145 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/3.285, allocations: 124.5 kB / 0.9995 GB, free: 8.012 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007062/3.292, allocations: 2.677 MB / 1.002 GB, free: 5.621 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001971/3.294, allocations: 133.7 kB / 1.002 GB, free: 5.484 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003889/3.298, allocations: 3.712 MB / 1.006 GB, free: 2.164 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.3788/3.677, allocations: 2.751 MB / 1.009 GB, free: 76.03 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009913/3.678, allocations: 138.9 kB / 1.009 GB, free: 76.03 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008394/3.679, allocations: 0.6469 MB / 1.009 GB, free: 75.7 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01433/3.693, allocations: 5.488 MB / 1.015 GB, free: 75.68 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01689/3.71, allocations: 6.913 MB / 1.021 GB, free: 74.23 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01689/3.727, allocations: 6.645 MB / 1.028 GB, free: 74.13 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/3.728, allocations: 11.09 kB / 1.028 GB, free: 74.13 MB / 458.7 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.04314/3.771, allocations: 15.79 MB / 1.043 GB, free: 73.88 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.346e-05/3.771, allocations: 27.86 kB / 1.043 GB, free: 73.88 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001118/3.771, allocations: 36.25 kB / 1.043 GB, free: 73.88 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01543/3.786, allocations: 4.99 MB / 1.048 GB, free: 73.79 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01109/3.798, allocations: 1.344 MB / 1.05 GB, free: 73.79 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02078/3.818, allocations: 12.33 MB / 1.062 GB, free: 70.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008663/3.827, allocations: 430.4 kB / 1.062 GB, free: 70.62 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002423/3.83, allocations: 320.8 kB / 1.062 GB, free: 70.62 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.004189/3.834, allocations: 489.8 kB / 1.063 GB, free: 70.52 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003015/3.837, allocations: 0.4931 MB / 1.063 GB, free: 70.52 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04488/3.882, allocations: 15.91 MB / 1.079 GB, free: 66.93 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03774/3.92, allocations: 14.12 MB / 1.093 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.299e-05/3.92, allocations: 0 / 1.093 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001924/3.92, allocations: 36.83 kB / 1.093 GB, free: 61.07 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08372/4.004, allocations: 30.63 MB / 1.123 GB, free: 42.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000124/4.004, allocations: 2.344 kB / 1.123 GB, free: 42.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009332/4.013, allocations: 1.023 MB / 1.124 GB, free: 41.63 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01525/4.028, allocations: 4.79 MB / 1.128 GB, free: 37.68 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002136/4.031, allocations: 178.8 kB / 1.128 GB, free: 37.53 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02017/4.051, allocations: 12.15 MB / 1.14 GB, free: 26.5 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/4.051, allocations: 0 / 1.14 GB, free: 26.5 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05824/4.109, allocations: 23.53 MB / 1.163 GB, free: 5.68 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006634/4.116, allocations: 1.805 MB / 1.165 GB, free: 4.055 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002842/4.119, allocations: 124 kB / 1.165 GB, free: 3.934 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007483/4.126, allocations: 364.8 kB / 1.166 GB, free: 3.68 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00305/4.129, allocations: 0.6084 MB / 1.166 GB, free: 3.293 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002129/4.131, allocations: 218.3 kB / 1.166 GB, free: 3.098 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.004922/4.136, allocations: 2.019 MB / 1.168 GB, free: 1.301 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.092e-06/4.136, allocations: 0 / 1.168 GB, free: 1.301 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01856/4.155, allocations: 2.318 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.4357/4.591, allocations: 26.44 MB / 1.196 GB, free: 87.01 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03684/4.628, allocations: 13.3 MB / 1.209 GB, free: 86.73 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/4.628, allocations: 1.312 kB / 1.209 GB, free: 86.73 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0211/4.649, allocations: 6.954 MB / 1.216 GB, free: 86.57 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009837/4.659, allocations: 0.9816 MB / 1.217 GB, free: 86.55 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07619/4.735, allocations: 23.65 MB / 1.24 GB, free: 83.51 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01584/4.751, allocations: 7.17 MB / 1.247 GB, free: 82.6 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01122/4.762, allocations: 3.947 MB / 1.251 GB, free: 81.12 MB / 474.7 MB Notification: Performance of SimCode: time 1.814e-06/4.762, allocations: 0 / 1.251 GB, free: 81.12 MB / 474.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