Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.827/1.827, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.821e-05/2.838e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08985/0.0899, allocations: 44.51 MB / 300 MB, free: 6.504 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4687/0.5586, allocations: 126.4 MB / 426.4 MB, free: 1.977 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003268/0.559, allocations: 95.12 kB / 426.5 MB, free: 1.926 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.69/2.249, allocations: 352.9 MB / 0.7612 GB, free: 52.46 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.744e-06/2.249, allocations: 0 / 0.7612 GB, free: 52.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008282/2.25, allocations: 218 kB / 0.7614 GB, free: 52.44 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: 2742 * Number of variables: 2742 Notification: Performance of Generate backend data structure: time 0.0455/2.295, allocations: 9.567 MB / 0.7707 GB, free: 49.46 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.239e-05/2.295, allocations: 7.625 kB / 0.7707 GB, free: 49.46 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007996/2.303, allocations: 1.634 MB / 0.7723 GB, free: 49.32 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04117/2.344, allocations: 4.921 MB / 0.7771 GB, free: 48.76 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02714/2.372, allocations: 8.174 MB / 0.7851 GB, free: 47.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001161/2.373, allocations: 0.7181 MB / 0.7858 GB, free: 46.77 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004872/2.378, allocations: 0.9292 MB / 0.7867 GB, free: 46.46 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05358/2.431, allocations: 16.84 MB / 0.8032 GB, free: 37.11 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005036/2.432, allocations: 15.8 kB / 0.8032 GB, free: 37.1 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004212/2.436, allocations: 410.1 kB / 0.8036 GB, free: 36.71 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001061/2.437, allocations: 0.7025 MB / 0.8042 GB, free: 36.08 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04583/2.483, allocations: 15.44 MB / 0.8193 GB, free: 22.06 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4876/2.971, allocations: 55.38 MB / 0.8734 GB, free: 33.64 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03383/3.005, allocations: 19.12 MB / 0.8921 GB, free: 41.35 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01817/3.023, allocations: 7.538 MB / 0.8994 GB, free: 41.25 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06852/3.091, allocations: 24.89 MB / 0.9237 GB, free: 35.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001062/3.092, allocations: 101 kB / 0.9238 GB, free: 34.97 MB / 442.7 MB Notification: Performance of pre-optimization done (n=749): time 1.135e-05/3.092, allocations: 0 / 0.9238 GB, free: 34.97 MB / 442.7 MB Notification: Performance of matching and sorting (n=754): time 0.07315/3.165, allocations: 25.13 MB / 0.9484 GB, free: 23.82 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001089/3.165, allocations: 119.1 kB / 0.9485 GB, free: 23.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007351/3.172, allocations: 3.173 MB / 0.9516 GB, free: 22.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001876/3.174, allocations: 124 kB / 0.9517 GB, free: 22.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002628/3.177, allocations: 3.44 MB / 0.9551 GB, free: 19.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.004207/3.181, allocations: 2.478 MB / 0.9575 GB, free: 17.99 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009602/3.182, allocations: 130.6 kB / 0.9576 GB, free: 17.89 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007897/3.183, allocations: 0.6103 MB / 0.9582 GB, free: 17.45 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01247/3.195, allocations: 5.016 MB / 0.9631 GB, free: 15.31 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01453/3.21, allocations: 6.219 MB / 0.9692 GB, free: 11.87 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01561/3.226, allocations: 6.084 MB / 0.9751 GB, free: 9.289 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.157e-05/3.226, allocations: 7.938 kB / 0.9751 GB, free: 9.289 MB / 442.7 MB Notification: Performance of matching and sorting (n=942) (initialization): time 0.04276/3.268, allocations: 14.19 MB / 0.989 GB, free: 15.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.584e-05/3.269, allocations: 49.59 kB / 0.989 GB, free: 15.45 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001076/3.269, allocations: 32 kB / 0.9891 GB, free: 15.42 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01459/3.283, allocations: 4.006 MB / 0.993 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01085/3.294, allocations: 1.183 MB / 0.9941 GB, free: 11.25 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3657/3.66, allocations: 12.54 MB / 1.006 GB, free: 79.51 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00817/3.668, allocations: 363 kB / 1.007 GB, free: 79.51 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002258/3.67, allocations: 284.1 kB / 1.007 GB, free: 79.51 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 141 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (637): * Single equations (assignments): 560 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of prepare postOptimizeDAE: time 0.002124/3.673, allocations: 453.8 kB / 1.007 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002224/3.675, allocations: 493.5 kB / 1.008 GB, free: 79.41 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04237/3.717, allocations: 14.17 MB / 1.022 GB, free: 79.07 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.03246/3.75, allocations: 12.67 MB / 1.034 GB, free: 78.78 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.898e-05/3.75, allocations: 0 / 1.034 GB, free: 78.78 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001408/3.75, allocations: 30.28 kB / 1.034 GB, free: 78.78 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07595/3.826, allocations: 28.05 MB / 1.062 GB, free: 74.41 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.299e-05/3.826, allocations: 0 / 1.062 GB, free: 74.41 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008397/3.834, allocations: 0.8824 MB / 1.062 GB, free: 74.39 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01299/3.848, allocations: 3.932 MB / 1.066 GB, free: 73.22 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001929/3.849, allocations: 163.4 kB / 1.066 GB, free: 73.13 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01905/3.869, allocations: 12.41 MB / 1.079 GB, free: 65.25 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/3.869, allocations: 0 / 1.079 GB, free: 65.25 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05229/3.921, allocations: 21.44 MB / 1.099 GB, free: 55.74 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006448/3.927, allocations: 1.737 MB / 1.101 GB, free: 54.8 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002222/3.93, allocations: 109.9 kB / 1.101 GB, free: 54.72 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007003/3.937, allocations: 298 kB / 1.102 GB, free: 54.64 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002793/3.94, allocations: 0.5533 MB / 1.102 GB, free: 54.52 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001222/3.941, allocations: 204.6 kB / 1.102 GB, free: 54.47 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00574/3.947, allocations: 2.406 MB / 1.105 GB, free: 53.58 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.62e-07/3.947, allocations: 3.469 kB / 1.105 GB, free: 53.58 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01229/3.959, allocations: 1.824 MB / 1.106 GB, free: 53.38 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * 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 (480): * Single equations (assignments): 404 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 69 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 86} Notification: Performance of Backend phase and start with SimCode phase: time 0.05528/4.014, allocations: 22.96 MB / 1.129 GB, free: 34.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03248/4.047, allocations: 12.23 MB / 1.141 GB, free: 23.64 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.184e-06/4.047, allocations: 2.812 kB / 1.141 GB, free: 23.64 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01871/4.066, allocations: 6.365 MB / 1.147 GB, free: 17.98 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008786/4.074, allocations: 0.8966 MB / 1.148 GB, free: 17.29 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06774/4.142, allocations: 22.18 MB / 1.17 GB, free: 14.02 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01501/4.157, allocations: 6.654 MB / 1.176 GB, free: 8.906 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.3508/4.508, allocations: 4.021 MB / 1.18 GB, free: 90.88 MB / 474.7 MB Notification: Performance of SimCode: time 1.994e-06/4.508, allocations: 0.8125 kB / 1.18 GB, free: 90.88 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_IMC_withLossesCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesFunctions.cpp:559:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesFunctions.cpp:559:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp363 = 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_withLossesCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_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 2 errors generated. : recipe for target 'OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLossesCalcHelperMain.o] Error 1