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.84/1.84, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.555e-05/3.573e-05, allocations: 0 / 255.4 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09268/0.09276, allocations: 44.51 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5119/0.6048, allocations: 156.9 MB / 456.9 MB, free: 4.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003633/0.6052, allocations: 97.06 kB / 457 MB, free: 4.199 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.561/4.166, allocations: 0.5736 GB / 1.02 GB, free: 15.65 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.535e-06/4.166, allocations: 0 / 1.02 GB, free: 15.65 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.002177/4.168, allocations: 424 kB / 1.02 GB, free: 15.65 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.08804/4.257, allocations: 17 MB / 1.037 GB, free: 10.63 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.295e-05/4.257, allocations: 9.25 kB / 1.037 GB, free: 10.63 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01509/4.272, allocations: 2.954 MB / 1.04 GB, free: 10.43 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07051/4.342, allocations: 8.474 MB / 1.048 GB, free: 9.398 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05336/4.396, allocations: 14.54 MB / 1.062 GB, free: 7.66 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002385/4.398, allocations: 1.347 MB / 1.064 GB, free: 7.621 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00951/4.408, allocations: 1.738 MB / 1.065 GB, free: 7.609 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1012/4.509, allocations: 30.35 MB / 1.095 GB, free: 5.383 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001221/4.51, allocations: 24.38 kB / 1.095 GB, free: 5.375 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008332/4.519, allocations: 0.7556 MB / 1.096 GB, free: 5.371 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001941/4.521, allocations: 1.195 MB / 1.097 GB, free: 5.328 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0838/4.604, allocations: 27.15 MB / 1.123 GB, free: 420 kB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.7307/5.335, allocations: 99.73 MB / 1.221 GB, free: 35.76 MB / 490.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05566/5.391, allocations: 35.31 MB / 1.255 GB, free: 18.94 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.03468/5.426, allocations: 12.77 MB / 1.268 GB, free: 18.8 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1177/5.543, allocations: 39.31 MB / 1.306 GB, free: 17.36 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001675/5.544, allocations: 145.5 kB / 1.306 GB, free: 17.31 MB / 490.8 MB Notification: Performance of pre-optimization done (n=1269): time 1.831e-05/5.544, allocations: 0 / 1.306 GB, free: 17.31 MB / 490.8 MB Notification: Performance of matching and sorting (n=1277): time 0.1355/5.679, allocations: 45.78 MB / 1.351 GB, free: 15.36 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/5.679, allocations: 191.9 kB / 1.351 GB, free: 15.26 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01383/5.693, allocations: 4.969 MB / 1.356 GB, free: 11.61 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.002982/5.696, allocations: 201.7 kB / 1.356 GB, free: 11.4 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.006662/5.703, allocations: 6.304 MB / 1.362 GB, free: 5.754 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.008185/5.711, allocations: 4.187 MB / 1.366 GB, free: 1.973 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002663/5.714, allocations: 216 kB / 1.367 GB, free: 1.762 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.001461/5.715, allocations: 0.8053 MB / 1.367 GB, free: 1.086 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1156/5.831, allocations: 10.53 MB / 1.378 GB, free: 0 / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.448/6.279, allocations: 10.3 MB / 1.388 GB, free: 69.82 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02696/6.306, allocations: 9.783 MB / 1.397 GB, free: 69.64 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001569/6.306, allocations: 16.34 kB / 1.397 GB, free: 69.64 MB / 0.4949 GB Notification: Performance of matching and sorting (n=1564) (initialization): time 0.0744/6.381, allocations: 24.54 MB / 1.421 GB, free: 69.01 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 9.599e-05/6.381, allocations: 26.94 kB / 1.421 GB, free: 69.01 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001846/6.381, allocations: 56.5 kB / 1.421 GB, free: 69.01 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03078/6.412, allocations: 8.948 MB / 1.43 GB, free: 68.8 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01559/6.428, allocations: 1.866 MB / 1.432 GB, free: 68.8 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05019/6.478, allocations: 30.39 MB / 1.462 GB, free: 57.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0138/6.492, allocations: 0.5545 MB / 1.462 GB, free: 57.2 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003796/6.496, allocations: 466.1 kB / 1.463 GB, free: 57.2 MB / 0.4949 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.005151/6.501, allocations: 0.6765 MB / 1.463 GB, free: 57.1 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00392/6.505, allocations: 0.8569 MB / 1.464 GB, free: 57.09 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0739/6.579, allocations: 25.37 MB / 1.489 GB, free: 46.86 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.05483/6.633, allocations: 20.05 MB / 1.508 GB, free: 38.43 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.345e-05/6.634, allocations: 9.875 kB / 1.508 GB, free: 38.43 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002565/6.634, allocations: 57.95 kB / 1.508 GB, free: 38.43 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1431/6.777, allocations: 48.38 MB / 1.556 GB, free: 14.97 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001884/6.777, allocations: 4 kB / 1.556 GB, free: 14.96 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01325/6.791, allocations: 1.344 MB / 1.557 GB, free: 13.94 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.5118/7.302, allocations: 9.703 MB / 1.566 GB, free: 79.9 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003345/7.306, allocations: 272.6 kB / 1.567 GB, free: 79.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05892/7.365, allocations: 36.51 MB / 1.602 GB, free: 64.41 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.172e-06/7.365, allocations: 4.469 kB / 1.602 GB, free: 64.41 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.09702/7.462, allocations: 37.71 MB / 1.639 GB, free: 62.35 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0111/7.473, allocations: 2.813 MB / 1.642 GB, free: 62.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004756/7.478, allocations: 190.5 kB / 1.642 GB, free: 62.25 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01204/7.49, allocations: 0.5087 MB / 1.643 GB, free: 62.25 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005088/7.495, allocations: 0.966 MB / 1.644 GB, free: 62.24 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002708/7.498, allocations: 337.5 kB / 1.644 GB, free: 62.24 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.01039/7.508, allocations: 3.785 MB / 1.648 GB, free: 62 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.403e-06/7.508, allocations: 1.812 kB / 1.648 GB, free: 62 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.02126/7.529, allocations: 3.249 MB / 1.651 GB, free: 61.99 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.1055/7.635, allocations: 39.69 MB / 1.69 GB, free: 45.36 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.05793/7.693, allocations: 21.08 MB / 1.71 GB, free: 33.24 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-05/7.693, allocations: 4 kB / 1.71 GB, free: 33.24 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.03591/7.729, allocations: 12.17 MB / 1.722 GB, free: 22.34 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01888/7.748, allocations: 1.961 MB / 1.724 GB, free: 20.87 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.577/8.325, allocations: 40.69 MB / 1.764 GB, free: 77.72 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02983/8.355, allocations: 11.57 MB / 1.775 GB, free: 76.67 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01935/8.374, allocations: 6.835 MB / 1.782 GB, free: 76.67 MB / 0.5105 GB Notification: Performance of SimCode: time 2.315e-06/8.374, allocations: 0 / 1.782 GB, free: 76.67 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