Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.992/1.992, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.315e-05/4.332e-05, allocations: 3.984 kB / 255.4 MB, free: 3.102 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.101, allocations: 44.51 MB / 299.9 MB, free: 6.527 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4645/0.5656, allocations: 109 MB / 408.9 MB, free: 14.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002981/0.5659, allocations: 85.61 kB / 409 MB, free: 14.19 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3476/0.9136, allocations: 82.81 MB / 491.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.344e-06/0.9136, allocations: 4 kB / 491.8 MB, free: 12.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003251/0.914, allocations: 63.94 kB / 491.9 MB, free: 12.48 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 653 * Number of variables: 653 Notification: Performance of Generate backend data structure: time 0.01014/0.9241, allocations: 2.613 MB / 494.5 MB, free: 9.812 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.9242, allocations: 8.031 kB / 494.5 MB, free: 9.805 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001451/0.9257, allocations: 362.6 kB / 494.9 MB, free: 9.441 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002613/0.9283, allocations: 412.1 kB / 495.3 MB, free: 9.035 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006637/0.935, allocations: 1.827 MB / 497.1 MB, free: 7.152 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003149/0.9353, allocations: 189 kB / 497.3 MB, free: 6.965 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001065/0.9364, allocations: 251.8 kB / 497.5 MB, free: 6.719 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01056/0.947, allocations: 3.137 MB / 0.4889 GB, free: 3.438 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001376/0.9472, allocations: 0 / 0.4889 GB, free: 3.438 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005514/0.9478, allocations: 108 kB / 0.489 GB, free: 3.332 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001829/0.948, allocations: 112.9 kB / 0.4891 GB, free: 3.219 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008664/0.9566, allocations: 2.448 MB / 0.4915 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0301/0.9868, allocations: 10.42 MB / 0.5017 GB, free: 5.996 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003705/0.9906, allocations: 1.762 MB / 0.5034 GB, free: 4.109 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002115/0.9927, allocations: 0.8583 MB / 0.5043 GB, free: 3.254 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005335/0.9933, allocations: 227.1 kB / 0.5045 GB, free: 2.992 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.263e-05/0.9933, allocations: 47.52 kB / 0.5045 GB, free: 2.938 MB / 394.7 MB Notification: Performance of pre-optimization done (n=117): time 4.469e-06/0.9934, allocations: 0 / 0.5045 GB, free: 2.938 MB / 394.7 MB Notification: Performance of matching and sorting (n=142): time 0.2872/1.281, allocations: 6.863 MB / 0.5112 GB, free: 82.25 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/1.281, allocations: 74.33 kB / 0.5113 GB, free: 82.18 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005076/1.286, allocations: 1.617 MB / 0.5129 GB, free: 82.02 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004085/1.286, allocations: 53.45 kB / 0.5129 GB, free: 81.98 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001332/1.288, allocations: 1.174 MB / 0.5141 GB, free: 81.51 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007974/1.288, allocations: 492.1 kB / 0.5146 GB, free: 81.27 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001802/1.289, allocations: 34.16 kB / 0.5146 GB, free: 81.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001646/1.289, allocations: 380 kB / 0.515 GB, free: 80.95 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002192/1.291, allocations: 0.7993 MB / 0.5157 GB, free: 80.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002657/1.294, allocations: 1.294 MB / 0.517 GB, free: 80.39 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002832/1.297, allocations: 1.012 MB / 0.518 GB, free: 80.38 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.882e-05/1.297, allocations: 5.719 kB / 0.518 GB, free: 80.38 MB / 394.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.008338/1.305, allocations: 2.715 MB / 0.5206 GB, free: 80.25 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.837e-05/1.305, allocations: 11 kB / 0.5207 GB, free: 80.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.143e-05/1.305, allocations: 19.78 kB / 0.5207 GB, free: 80.25 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002528/1.308, allocations: 0.5853 MB / 0.5212 GB, free: 80.22 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002978/1.311, allocations: 410.5 kB / 0.5216 GB, free: 80.22 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0108/1.322, allocations: 5.431 MB / 0.5269 GB, free: 78.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003037/1.325, allocations: 138 kB / 0.5271 GB, free: 78.82 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004533/1.325, allocations: 76.42 kB / 0.5271 GB, free: 78.82 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 182 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 1 {(6,72.2%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004974/1.326, allocations: 201.8 kB / 0.5273 GB, free: 78.71 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007699/1.327, allocations: 199.2 kB / 0.5275 GB, free: 78.61 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006684/1.333, allocations: 2.505 MB / 0.53 GB, free: 78.48 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-05/1.333, allocations: 11.72 kB / 0.53 GB, free: 78.48 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.514e-05/1.333, allocations: 7.531 kB / 0.53 GB, free: 78.48 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.663e-05/1.333, allocations: 6.422 kB / 0.53 GB, free: 78.48 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01515/1.349, allocations: 5.378 MB / 0.5352 GB, free: 77.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.955e-05/1.349, allocations: 5.656 kB / 0.5353 GB, free: 77.93 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002031/1.351, allocations: 242.2 kB / 0.5355 GB, free: 77.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002943/1.354, allocations: 0.6526 MB / 0.5361 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000287/1.354, allocations: 40.56 kB / 0.5362 GB, free: 77.91 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01243/1.366, allocations: 7.123 MB / 0.5431 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.321e-06/1.366, allocations: 7.562 kB / 0.5431 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008811/1.375, allocations: 3.908 MB / 0.5469 GB, free: 72.43 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001729/1.377, allocations: 469.7 kB / 0.5474 GB, free: 72.13 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007195/1.378, allocations: 31.56 kB / 0.5474 GB, free: 72.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002511/1.38, allocations: 117.5 kB / 0.5475 GB, free: 72.09 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000545/1.381, allocations: 122.6 kB / 0.5476 GB, free: 72.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.381, allocations: 41.78 kB / 0.5477 GB, free: 72.06 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002932/1.384, allocations: 1.238 MB / 0.5489 GB, free: 71.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.072e-06/1.384, allocations: 0 / 0.5489 GB, free: 71.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003503/1.388, allocations: 0.6407 MB / 0.5495 GB, free: 71.51 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 5 (smee.phiMechanical,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[2],smee.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (110): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(6,75.0%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01033/1.398, allocations: 5.589 MB / 0.555 GB, free: 68.25 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006233/1.404, allocations: 2.463 MB / 0.5574 GB, free: 67.24 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.071e-05/1.404, allocations: 0 / 0.5574 GB, free: 67.24 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004177/1.409, allocations: 1.571 MB / 0.5589 GB, free: 66.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003463/1.412, allocations: 406.9 kB / 0.5593 GB, free: 66.41 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01418/1.426, allocations: 4.855 MB / 0.564 GB, free: 64.55 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002201/1.429, allocations: 2.047 MB / 0.566 GB, free: 63.63 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002181/1.431, allocations: 1.004 MB / 0.567 GB, free: 62.83 MB / 394.7 MB Notification: Performance of SimCode: time 1.522e-06/1.431, allocations: 0 / 0.567 GB, free: 62.83 MB / 394.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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:278: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:255:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:315: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:292:12: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorCalcHelperMain.o] Error 1