Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.839/1.839, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.975e-05, allocations: 4 kB / 255.5 MB, free: 3.059 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09403/0.09408, allocations: 44.49 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5176/0.6117, allocations: 156.9 MB / 456.9 MB, free: 4.27 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003643/0.6121, allocations: 96.19 kB / 457 MB, free: 4.219 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.415/4.027, allocations: 0.5736 GB / 1.02 GB, free: 15.46 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.104e-06/4.027, allocations: 0.6875 kB / 1.02 GB, free: 15.46 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.002159/4.029, allocations: 424.3 kB / 1.02 GB, free: 15.46 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.08632/4.115, allocations: 17 MB / 1.037 GB, free: 10.46 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.301e-05/4.115, allocations: 11.41 kB / 1.037 GB, free: 10.46 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01466/4.13, allocations: 2.954 MB / 1.04 GB, free: 10.25 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06975/4.2, allocations: 8.474 MB / 1.048 GB, free: 9.223 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05262/4.252, allocations: 14.54 MB / 1.062 GB, free: 7.48 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002443/4.255, allocations: 1.343 MB / 1.064 GB, free: 7.441 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009589/4.265, allocations: 1.745 MB / 1.065 GB, free: 7.43 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1009/4.366, allocations: 30.14 MB / 1.095 GB, free: 5.281 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001171/4.367, allocations: 21.78 kB / 1.095 GB, free: 5.273 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008367/4.375, allocations: 0.7584 MB / 1.095 GB, free: 5.273 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00196/4.377, allocations: 1.194 MB / 1.097 GB, free: 5.227 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.08137/4.459, allocations: 26.91 MB / 1.123 GB, free: 0.5 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7141/5.173, allocations: 98.81 MB / 1.219 GB, free: 36.25 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05355/5.226, allocations: 35.2 MB / 1.254 GB, free: 19.45 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03159/5.258, allocations: 12.77 MB / 1.266 GB, free: 19.32 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.112/5.37, allocations: 39.31 MB / 1.305 GB, free: 17.88 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001378/5.37, allocations: 148.8 kB / 1.305 GB, free: 17.83 MB / 490.8 MB Notification: Performance of pre-optimization done (n=1269): time 1.831e-05/5.37, allocations: 0 / 1.305 GB, free: 17.83 MB / 490.8 MB Notification: Performance of matching and sorting (n=1277): time 0.1633/5.534, allocations: 45.79 MB / 1.35 GB, free: 14.41 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002821/5.534, allocations: 186.2 kB / 1.35 GB, free: 14.2 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0198/5.554, allocations: 4.977 MB / 1.355 GB, free: 9.766 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.003083/5.557, allocations: 197.7 kB / 1.355 GB, free: 9.566 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.007174/5.564, allocations: 6.294 MB / 1.361 GB, free: 3.926 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.008476/5.573, allocations: 4.19 MB / 1.365 GB, free: 144 kB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003799/5.577, allocations: 234 kB / 1.365 GB, free: 0 / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001829/5.578, allocations: 0.8158 MB / 1.366 GB, free: 15.32 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02424/5.603, allocations: 8.145 MB / 1.374 GB, free: 8.055 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.4957/6.099, allocations: 10.23 MB / 1.384 GB, free: 81.85 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02976/6.128, allocations: 9.777 MB / 1.393 GB, free: 81.69 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001628/6.129, allocations: 15.88 kB / 1.393 GB, free: 81.69 MB / 0.5105 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.07437/6.203, allocations: 24.39 MB / 1.417 GB, free: 81.05 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.8e-05/6.203, allocations: 32.12 kB / 1.417 GB, free: 81.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001759/6.203, allocations: 53.22 kB / 1.417 GB, free: 81.05 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03001/6.233, allocations: 8.942 MB / 1.426 GB, free: 80.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01569/6.249, allocations: 1.865 MB / 1.428 GB, free: 80.84 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05175/6.301, allocations: 30.38 MB / 1.458 GB, free: 69.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01393/6.315, allocations: 0.5506 MB / 1.458 GB, free: 69.25 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00388/6.319, allocations: 465.2 kB / 1.459 GB, free: 69.25 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 248 * Number of states: 0 () * Number of discrete variables: 12 (rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (982): * Single equations (assignments): 918 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of prepare postOptimizeDAE: time 0.007328/6.326, allocations: 0.6824 MB / 1.459 GB, free: 69.14 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.005127/6.331, allocations: 0.857 MB / 1.46 GB, free: 69.14 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.07796/6.409, allocations: 25.36 MB / 1.485 GB, free: 62.42 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0563/6.466, allocations: 20.04 MB / 1.504 GB, free: 54 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.094e-05/6.466, allocations: 9.188 kB / 1.504 GB, free: 54 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002977/6.466, allocations: 61.56 kB / 1.505 GB, free: 53.99 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1392/6.605, allocations: 48.21 MB / 1.552 GB, free: 21.81 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001894/6.606, allocations: 4 kB / 1.552 GB, free: 21.8 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01253/6.618, allocations: 1.344 MB / 1.553 GB, free: 20.78 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03039/6.649, allocations: 9.062 MB / 1.562 GB, free: 13.23 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003438/6.652, allocations: 269.4 kB / 1.562 GB, free: 13 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5365/7.189, allocations: 37.3 MB / 1.598 GB, free: 66.94 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.192e-06/7.189, allocations: 3.688 kB / 1.598 GB, free: 66.94 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1031/7.292, allocations: 37.71 MB / 1.635 GB, free: 64.88 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01161/7.303, allocations: 2.813 MB / 1.638 GB, free: 64.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.005463/7.309, allocations: 192 kB / 1.638 GB, free: 64.79 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01276/7.322, allocations: 0.5092 MB / 1.639 GB, free: 64.79 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005339/7.327, allocations: 0.9705 MB / 1.64 GB, free: 64.77 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003662/7.331, allocations: 337.8 kB / 1.64 GB, free: 64.77 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01076/7.342, allocations: 3.784 MB / 1.644 GB, free: 64.53 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.323e-06/7.342, allocations: 0 / 1.644 GB, free: 64.53 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02179/7.364, allocations: 3.24 MB / 1.647 GB, free: 64.53 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.stator.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,ims.rotor.zeroInductor.i0,loadInertia.w,quadraticLoadTorque.phi,imsQS.rotor.resistor.plug_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (716): * Single equations (assignments): 650 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 51 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 15 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 5,(2,100.0%) 4,(2,100.0%) 4,(2,100.0%) 4,(1,100.0%) 8,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,42 268} Notification: Performance of Backend phase and start with SimCode phase: time 0.1088/7.473, allocations: 39.72 MB / 1.686 GB, free: 49.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.06935/7.542, allocations: 20.85 MB / 1.706 GB, free: 41 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/7.542, allocations: 4 kB / 1.706 GB, free: 41 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.04189/7.584, allocations: 12.05 MB / 1.718 GB, free: 30.24 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01831/7.602, allocations: 1.974 MB / 1.72 GB, free: 28.77 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.5488/8.151, allocations: 39.07 MB / 1.758 GB, free: 79.44 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02639/8.178, allocations: 11.57 MB / 1.769 GB, free: 78.39 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01706/8.195, allocations: 6.838 MB / 1.776 GB, free: 78.39 MB / 0.5105 GB Notification: Performance of SimCode: time 1.302e-06/8.195, allocations: 0 / 1.776 GB, free: 78.39 MB / 0.5105 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"." -DUSE_LOGGER -c -o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFunctions.cpp:588:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_StartFunctions.cpp:588:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp405 = 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_StartCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartFMU.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_StartCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_StartCalcHelperMain.o] Error 1