Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.02/2.02, allocations: 194.9 MB / 208.4 MB, free: 3.254 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.468e-05, allocations: 4 kB / 255.4 MB, free: 3.105 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09324/0.09331, allocations: 44.52 MB / 299.9 MB, free: 6.539 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4709/0.5643, allocations: 130.3 MB / 430.2 MB, free: 14.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5646, allocations: 83.83 kB / 430.3 MB, free: 14.62 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7879/1.353, allocations: 130.5 MB / 0.5476 GB, free: 66.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.677e-06/1.353, allocations: 2.844 kB / 0.5476 GB, free: 66.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006241/1.353, allocations: 135.4 kB / 0.5477 GB, free: 66.8 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.02273/1.376, allocations: 5.395 MB / 0.553 GB, free: 64.77 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.192e-05/1.376, allocations: 11.19 kB / 0.553 GB, free: 64.77 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00331/1.379, allocations: 0.7638 MB / 0.5537 GB, free: 64.7 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00931/1.389, allocations: 1.145 MB / 0.5549 GB, free: 64.35 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01854/1.407, allocations: 4.876 MB / 0.5596 GB, free: 63.56 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005345/1.408, allocations: 426.7 kB / 0.56 GB, free: 63.55 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002456/1.41, allocations: 0.5522 MB / 0.5606 GB, free: 63.54 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02385/1.434, allocations: 7.012 MB / 0.5674 GB, free: 62.87 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003033/1.435, allocations: 19.58 kB / 0.5674 GB, free: 62.86 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002131/1.437, allocations: 242.7 kB / 0.5677 GB, free: 62.86 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003719/1.437, allocations: 253.2 kB / 0.5679 GB, free: 62.85 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01859/1.456, allocations: 5.566 MB / 0.5733 GB, free: 62.8 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05957/1.515, allocations: 23.82 MB / 0.5966 GB, free: 52.73 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01121/1.527, allocations: 8.595 MB / 0.605 GB, free: 45.49 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005405/1.532, allocations: 2.22 MB / 0.6072 GB, free: 44.66 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01945/1.552, allocations: 6.94 MB / 0.6139 GB, free: 40.98 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.853e-05/1.552, allocations: 58.38 kB / 0.614 GB, free: 40.92 MB / 410.7 MB Notification: Performance of pre-optimization done (n=234): time 5.24e-06/1.552, allocations: 0 / 0.614 GB, free: 40.92 MB / 410.7 MB Notification: Performance of matching and sorting (n=285): time 0.047/1.599, allocations: 12.11 MB / 0.6258 GB, free: 35.93 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.126e-05/1.599, allocations: 84.25 kB / 0.6259 GB, free: 35.83 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006918/1.606, allocations: 2.924 MB / 0.6288 GB, free: 33.2 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000613/1.606, allocations: 76.7 kB / 0.6288 GB, free: 33.12 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001919/1.608, allocations: 2.473 MB / 0.6312 GB, free: 30.86 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001388/1.61, allocations: 0.9702 MB / 0.6322 GB, free: 29.98 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004017/1.61, allocations: 72 kB / 0.6323 GB, free: 29.91 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002583/1.61, allocations: 459.4 kB / 0.6327 GB, free: 29.5 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003762/1.614, allocations: 1.464 MB / 0.6341 GB, free: 28.15 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004536/1.619, allocations: 2.632 MB / 0.6367 GB, free: 25.17 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004742/1.624, allocations: 1.948 MB / 0.6386 GB, free: 23.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.22e-05/1.624, allocations: 8 kB / 0.6386 GB, free: 23.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01407/1.638, allocations: 5.155 MB / 0.6436 GB, free: 18.89 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.308e-05/1.638, allocations: 20 kB / 0.6437 GB, free: 18.88 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-05/1.638, allocations: 43.61 kB / 0.6437 GB, free: 18.84 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003619/1.642, allocations: 0.8604 MB / 0.6445 GB, free: 18.11 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006328/1.648, allocations: 0.8571 MB / 0.6454 GB, free: 17.39 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01612/1.664, allocations: 9.776 MB / 0.6549 GB, free: 8.062 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005383/1.67, allocations: 244.3 kB / 0.6552 GB, free: 7.867 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008016/1.67, allocations: 163.4 kB / 0.6553 GB, free: 7.711 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 409 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0008351/1.671, allocations: 335.7 kB / 0.6556 GB, free: 7.375 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001234/1.673, allocations: 387.1 kB / 0.656 GB, free: 6.996 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/1.684, allocations: 4.519 MB / 0.6604 GB, free: 3.043 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.309e-05/1.684, allocations: 28 kB / 0.6604 GB, free: 3.016 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.674e-05/1.685, allocations: 12 kB / 0.6605 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.532e-05/1.685, allocations: 13.78 kB / 0.6605 GB, free: 3.004 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02848/1.713, allocations: 9.953 MB / 0.6702 GB, free: 10.75 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01108/1.724, allocations: 3.796 MB / 0.6739 GB, free: 7.297 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004532/1.729, allocations: 497.8 kB / 0.6744 GB, free: 6.895 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004758/1.734, allocations: 0.9792 MB / 0.6753 GB, free: 6.098 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005898/1.734, allocations: 71.22 kB / 0.6754 GB, free: 6.035 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.327/2.061, allocations: 14.86 MB / 0.6899 GB, free: 69.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/2.061, allocations: 5.281 kB / 0.6899 GB, free: 69.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01811/2.079, allocations: 7.099 MB / 0.6968 GB, free: 68.18 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003093/2.083, allocations: 0.7771 MB / 0.6976 GB, free: 68.08 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001295/2.084, allocations: 66.67 kB / 0.6977 GB, free: 68.08 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004062/2.088, allocations: 182.5 kB / 0.6978 GB, free: 68.08 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008293/2.089, allocations: 216.7 kB / 0.6981 GB, free: 68.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003163/2.089, allocations: 83.42 kB / 0.6981 GB, free: 68.07 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005465/2.095, allocations: 2.207 MB / 0.7003 GB, free: 67.91 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.32e-07/2.095, allocations: 0 / 0.7003 GB, free: 67.91 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006387/2.101, allocations: 1.197 MB / 0.7015 GB, free: 67.91 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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: 6 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01807/2.119, allocations: 8.972 MB / 0.7102 GB, free: 65.14 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01145/2.131, allocations: 4.64 MB / 0.7147 GB, free: 64.37 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/2.131, allocations: 3.656 kB / 0.7147 GB, free: 64.37 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007503/2.138, allocations: 2.964 MB / 0.7176 GB, free: 63.56 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006739/2.145, allocations: 0.8218 MB / 0.7184 GB, free: 63.54 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03118/2.176, allocations: 9.879 MB / 0.7281 GB, free: 61.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006106/2.182, allocations: 3.531 MB / 0.7315 GB, free: 60.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005198/2.188, allocations: 2.245 MB / 0.7337 GB, free: 60.63 MB / 426.7 MB Notification: Performance of SimCode: time 1.092e-06/2.188, allocations: 0 / 0.7337 GB, free: 60.63 MB / 426.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_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:375:34: error: use of undeclared identifier 'D_24tmpVar10_'; did you mean 'D_24tmpVar11_'? D_24tmpVar11_ = std::cos(D_24tmpVar10_); ^~~~~~~~~~~~~ D_24tmpVar11_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:352:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:412:34: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? D_24tmpVar14_ = std::sin(D_24tmpVar13_); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:389:12: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFMU.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_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorCalcHelperMain.o] Error 1