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.921/1.921, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.382e-05/3.39e-05, allocations: 0 / 255.5 MB, free: 3.066 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09379/0.09387, allocations: 44.5 MB / 300 MB, free: 6.508 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4494/0.5433, allocations: 109 MB / 409 MB, free: 9.723 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002992/0.5437, allocations: 87.06 kB / 409.1 MB, free: 9.707 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4009/0.9445, allocations: 82.81 MB / 491.9 MB, free: 8.676 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.315e-06/0.9446, allocations: 0 / 491.9 MB, free: 8.676 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0003432/0.945, allocations: 67.94 kB / 491.9 MB, free: 8.609 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.0105/0.9555, allocations: 2.605 MB / 494.5 MB, free: 5.945 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.385e-05/0.9555, allocations: 8.031 kB / 494.6 MB, free: 5.938 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001616/0.9572, allocations: 366.6 kB / 494.9 MB, free: 5.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002935/0.9602, allocations: 420 kB / 495.3 MB, free: 5.156 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007057/0.9673, allocations: 1.811 MB / 497.1 MB, free: 3.289 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003171/0.9676, allocations: 197 kB / 497.3 MB, free: 3.094 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001209/0.9689, allocations: 243.9 kB / 497.6 MB, free: 2.855 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01165/0.9805, allocations: 3.111 MB / 0.4889 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001854/0.9808, allocations: 7.938 kB / 0.4889 GB, free: 15.6 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000949/0.9817, allocations: 104 kB / 0.489 GB, free: 15.5 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001881/0.982, allocations: 104.9 kB / 0.4891 GB, free: 15.39 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009061/0.991, allocations: 2.415 MB / 0.4915 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0327/1.024, allocations: 10.43 MB / 0.5017 GB, free: 2.199 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004111/1.028, allocations: 1.742 MB / 0.5034 GB, free: 344 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002525/1.031, allocations: 0.8623 MB / 0.5042 GB, free: 15.47 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000583/1.031, allocations: 223.1 kB / 0.5044 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.296e-05/1.031, allocations: 47.52 kB / 0.5045 GB, free: 15.16 MB / 410.7 MB Notification: Performance of pre-optimization done (n=117): time 4.097e-06/1.031, allocations: 0 / 0.5045 GB, free: 15.16 MB / 410.7 MB Notification: Performance of matching and sorting (n=142): time 0.03089/1.062, allocations: 6.88 MB / 0.5112 GB, free: 8.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.999e-05/1.062, allocations: 72.67 kB / 0.5113 GB, free: 8.145 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004791/1.067, allocations: 1.621 MB / 0.5129 GB, free: 6.527 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003789/1.068, allocations: 49.7 kB / 0.5129 GB, free: 6.473 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001387/1.069, allocations: 1.163 MB / 0.514 GB, free: 5.297 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008832/1.07, allocations: 496.9 kB / 0.5145 GB, free: 4.805 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002036/1.07, allocations: 36 kB / 0.5146 GB, free: 4.77 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002379/1.07, allocations: 378.8 kB / 0.5149 GB, free: 4.391 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002423/1.073, allocations: 0.8044 MB / 0.5157 GB, free: 3.586 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002933/1.076, allocations: 1.284 MB / 0.517 GB, free: 2.094 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002967/1.079, allocations: 1.008 MB / 0.5179 GB, free: 1.086 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.136e-05/1.079, allocations: 4 kB / 0.5179 GB, free: 1.082 MB / 410.7 MB Notification: Performance of matching and sorting (n=217) (initialization): time 0.2851/1.364, allocations: 2.66 MB / 0.5205 GB, free: 94.95 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.727e-05/1.364, allocations: 12.03 kB / 0.5205 GB, free: 94.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/1.364, allocations: 16.12 kB / 0.5206 GB, free: 94.95 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004069/1.368, allocations: 0.5977 MB / 0.5211 GB, free: 94.92 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00425/1.373, allocations: 403.1 kB / 0.5215 GB, free: 94.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01895/1.392, allocations: 5.437 MB / 0.5268 GB, free: 93.58 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004505/1.396, allocations: 132.8 kB / 0.527 GB, free: 93.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007351/1.397, allocations: 76.28 kB / 0.527 GB, free: 93.58 MB / 410.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.001059/1.398, allocations: 201.9 kB / 0.5272 GB, free: 93.47 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001335/1.399, allocations: 199.9 kB / 0.5274 GB, free: 93.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008608/1.408, allocations: 2.495 MB / 0.5299 GB, free: 93.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.706e-05/1.408, allocations: 13.34 kB / 0.5299 GB, free: 93.35 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.553e-05/1.408, allocations: 7.453 kB / 0.5299 GB, free: 93.35 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.625e-05/1.408, allocations: 6.188 kB / 0.5299 GB, free: 93.35 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01652/1.425, allocations: 5.375 MB / 0.5351 GB, free: 92.82 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.794e-05/1.425, allocations: 7.469 kB / 0.5351 GB, free: 92.82 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002131/1.427, allocations: 248.1 kB / 0.5354 GB, free: 92.82 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003141/1.43, allocations: 0.657 MB / 0.536 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003523/1.431, allocations: 34.81 kB / 0.5361 GB, free: 92.8 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01302/1.444, allocations: 7.131 MB / 0.543 GB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.005e-06/1.444, allocations: 6.156 kB / 0.543 GB, free: 90.21 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0095/1.453, allocations: 3.916 MB / 0.5468 GB, free: 89.44 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/1.455, allocations: 464.5 kB / 0.5473 GB, free: 89.24 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007794/1.456, allocations: 41.95 kB / 0.5473 GB, free: 89.24 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002789/1.459, allocations: 115.6 kB / 0.5474 GB, free: 89.24 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006456/1.46, allocations: 113.5 kB / 0.5476 GB, free: 89.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001873/1.46, allocations: 45.91 kB / 0.5476 GB, free: 89.23 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003303/1.463, allocations: 1.242 MB / 0.5488 GB, free: 89.11 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.02e-07/1.463, allocations: 4.719 kB / 0.5488 GB, free: 89.11 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003893/1.467, allocations: 0.6342 MB / 0.5494 GB, free: 89.11 MB / 410.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.01111/1.478, allocations: 5.582 MB / 0.5549 GB, free: 86.99 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006652/1.485, allocations: 2.409 MB / 0.5572 GB, free: 86.16 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.283e-05/1.485, allocations: 0 / 0.5572 GB, free: 86.16 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004463/1.489, allocations: 1.535 MB / 0.5587 GB, free: 85.46 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003827/1.493, allocations: 407.1 kB / 0.5591 GB, free: 85.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01613/1.51, allocations: 4.85 MB / 0.5639 GB, free: 83.49 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003186/1.513, allocations: 2.045 MB / 0.5659 GB, free: 82.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002549/1.515, allocations: 1.005 MB / 0.5668 GB, free: 81.77 MB / 410.7 MB Notification: Performance of SimCode: time 1.714e-06/1.515, allocations: 2.188 kB / 0.5668 GB, free: 81.77 MB / 410.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: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:255:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:315: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_Electrical_Machines_Examples_SynchronousInductionMachines_SMEE_GeneratorFunctions.cpp:292:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 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