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 1.878/1.878, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.502e-05/2.513e-05, allocations: 4 kB / 255.5 MB, free: 3.078 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08818/0.08822, allocations: 44.51 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4694/0.5577, allocations: 130.3 MB / 430.2 MB, free: 14.6 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002913/0.558, allocations: 83.64 kB / 430.3 MB, free: 14.56 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7886/1.347, allocations: 130.5 MB / 0.5476 GB, free: 66.9 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.214e-06/1.347, allocations: 0 / 0.5476 GB, free: 66.9 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0005531/1.347, allocations: 142.1 kB / 0.5478 GB, free: 66.88 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.0213/1.369, allocations: 5.384 MB / 0.553 GB, free: 64.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.128e-05/1.369, allocations: 10.78 kB / 0.553 GB, free: 64.86 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002922/1.372, allocations: 0.7677 MB / 0.5538 GB, free: 64.79 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009057/1.381, allocations: 1.151 MB / 0.5549 GB, free: 64.44 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01733/1.398, allocations: 4.866 MB / 0.5597 GB, free: 63.66 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004785/1.399, allocations: 434.2 kB / 0.5601 GB, free: 63.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002207/1.401, allocations: 0.5555 MB / 0.5606 GB, free: 63.63 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02098/1.422, allocations: 6.947 MB / 0.5674 GB, free: 62.99 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002394/1.422, allocations: 11.09 kB / 0.5674 GB, free: 62.98 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001188/1.423, allocations: 238 kB / 0.5676 GB, free: 62.98 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002873/1.424, allocations: 256.2 kB / 0.5679 GB, free: 62.96 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01726/1.441, allocations: 5.493 MB / 0.5732 GB, free: 62.94 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06108/1.502, allocations: 23.82 MB / 0.5965 GB, free: 52.77 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01173/1.514, allocations: 8.559 MB / 0.6049 GB, free: 45.54 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005686/1.519, allocations: 2.224 MB / 0.607 GB, free: 44.71 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02009/1.54, allocations: 6.934 MB / 0.6138 GB, free: 41.04 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.322e-05/1.54, allocations: 63.92 kB / 0.6139 GB, free: 40.97 MB / 410.7 MB Notification: Performance of pre-optimization done (n=234): time 5.21e-06/1.54, allocations: 0 / 0.6139 GB, free: 40.97 MB / 410.7 MB Notification: Performance of matching and sorting (n=285): time 0.05327/1.593, allocations: 12.11 MB / 0.6257 GB, free: 36.13 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.451e-05/1.593, allocations: 81.62 kB / 0.6258 GB, free: 36.04 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006608/1.6, allocations: 2.923 MB / 0.6286 GB, free: 33.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006131/1.6, allocations: 73.7 kB / 0.6287 GB, free: 33.32 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/1.602, allocations: 2.471 MB / 0.6311 GB, free: 31.07 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001207/1.603, allocations: 0.974 MB / 0.6321 GB, free: 30.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003395/1.604, allocations: 76 kB / 0.6321 GB, free: 30.11 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002154/1.604, allocations: 455.5 kB / 0.6326 GB, free: 29.7 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003414/1.607, allocations: 1.46 MB / 0.634 GB, free: 28.35 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004031/1.611, allocations: 2.622 MB / 0.6365 GB, free: 25.39 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004462/1.616, allocations: 1.937 MB / 0.6384 GB, free: 23.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.145e-05/1.616, allocations: 12 kB / 0.6384 GB, free: 23.69 MB / 410.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01275/1.629, allocations: 5.045 MB / 0.6434 GB, free: 19.23 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.985e-05/1.629, allocations: 20 kB / 0.6434 GB, free: 19.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.064e-05/1.629, allocations: 47.83 kB / 0.6434 GB, free: 19.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003412/1.632, allocations: 0.867 MB / 0.6443 GB, free: 18.44 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006244/1.639, allocations: 0.8506 MB / 0.6451 GB, free: 17.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01584/1.654, allocations: 9.782 MB / 0.6547 GB, free: 8.395 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005391/1.66, allocations: 244.8 kB / 0.6549 GB, free: 8.199 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008123/1.661, allocations: 167.4 kB / 0.6551 GB, free: 8.039 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.0008208/1.662, allocations: 331.7 kB / 0.6554 GB, free: 7.707 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001201/1.663, allocations: 387.3 kB / 0.6557 GB, free: 7.324 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01242/1.675, allocations: 4.516 MB / 0.6602 GB, free: 3.383 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.763e-05/1.675, allocations: 28 kB / 0.6602 GB, free: 3.355 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.103e-05/1.675, allocations: 12 kB / 0.6602 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.788e-05/1.675, allocations: 16.59 kB / 0.6602 GB, free: 3.344 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03069/1.706, allocations: 9.943 MB / 0.6699 GB, free: 11.11 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0113/1.718, allocations: 3.793 MB / 0.6736 GB, free: 7.652 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00448/1.722, allocations: 497.7 kB / 0.6741 GB, free: 7.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004584/1.727, allocations: 0.9795 MB / 0.6751 GB, free: 6.453 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006226/1.727, allocations: 66.61 kB / 0.6751 GB, free: 6.395 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3253/2.053, allocations: 14.76 MB / 0.6895 GB, free: 69.76 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.093e-05/2.053, allocations: 5.344 kB / 0.6895 GB, free: 69.76 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01898/2.072, allocations: 7.098 MB / 0.6965 GB, free: 68.34 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003186/2.075, allocations: 0.7758 MB / 0.6972 GB, free: 68.24 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001511/2.076, allocations: 63.22 kB / 0.6973 GB, free: 68.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004757/2.081, allocations: 183.3 kB / 0.6975 GB, free: 68.24 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001082/2.082, allocations: 215.7 kB / 0.6977 GB, free: 68.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003383/2.083, allocations: 82.98 kB / 0.6977 GB, free: 68.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.00633/2.089, allocations: 2.205 MB / 0.6999 GB, free: 68.07 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.052e-06/2.089, allocations: 0 / 0.6999 GB, free: 68.07 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007223/2.096, allocations: 1.198 MB / 0.7011 GB, free: 68.07 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.01795/2.114, allocations: 8.98 MB / 0.7098 GB, free: 65.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01127/2.126, allocations: 4.534 MB / 0.7143 GB, free: 64.57 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.098e-05/2.126, allocations: 0 / 0.7143 GB, free: 64.57 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007422/2.133, allocations: 2.902 MB / 0.7171 GB, free: 63.81 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006859/2.14, allocations: 0.8243 MB / 0.7179 GB, free: 63.79 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03017/2.17, allocations: 9.858 MB / 0.7275 GB, free: 61.75 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006344/2.177, allocations: 3.527 MB / 0.731 GB, free: 60.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005199/2.182, allocations: 2.245 MB / 0.7332 GB, free: 60.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.723e-06/2.182, allocations: 0 / 0.7332 GB, free: 60.9 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:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:352:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:412:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_GeneratorFunctions.cpp:389:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 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