Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.957/1.957, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.094e-05/4.11e-05, allocations: 4 kB / 292.2 MB, free: 8.719 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1196, allocations: 50.41 MB / 342.6 MB, free: 6.285 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5021/0.6217, allocations: 114.4 MB / 457 MB, free: 11.94 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003001/0.6221, allocations: 86.58 kB / 457.1 MB, free: 11.9 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6806/1.303, allocations: 83.25 MB / 0.5277 GB, free: 105 MB / 442.7 MB Notification: Performance of FrontEnd: time 3.667e-06/1.303, allocations: 1 kB / 0.5277 GB, free: 105 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003253/1.303, allocations: 72.5 kB / 0.5278 GB, free: 105 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 656 * Number of variables: 656 Notification: Performance of Generate backend data structure: time 0.01086/1.314, allocations: 2.629 MB / 0.5303 GB, free: 104.1 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.317e-05/1.314, allocations: 10.14 kB / 0.5303 GB, free: 104.1 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001555/1.316, allocations: 362.1 kB / 0.5307 GB, free: 104 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002732/1.318, allocations: 423.5 kB / 0.5311 GB, free: 103.9 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007118/1.326, allocations: 1.844 MB / 0.5329 GB, free: 103.4 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002884/1.326, allocations: 189.8 kB / 0.5331 GB, free: 103.4 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001114/1.327, allocations: 257.1 kB / 0.5333 GB, free: 103.4 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01058/1.338, allocations: 3.108 MB / 0.5364 GB, free: 103.1 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001202/1.338, allocations: 7.328 kB / 0.5364 GB, free: 103 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000429/1.338, allocations: 108.2 kB / 0.5365 GB, free: 103 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001787/1.338, allocations: 109.5 kB / 0.5366 GB, free: 103 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008726/1.347, allocations: 2.421 MB / 0.5389 GB, free: 103 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02966/1.377, allocations: 10.47 MB / 0.5492 GB, free: 100.4 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003357/1.38, allocations: 1.752 MB / 0.5509 GB, free: 99.81 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001917/1.382, allocations: 0.8621 MB / 0.5517 GB, free: 99.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004476/1.383, allocations: 222.6 kB / 0.5519 GB, free: 99.61 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/1.383, allocations: 42.19 kB / 0.552 GB, free: 99.57 MB / 442.7 MB Notification: Performance of pre-optimization done (n=118): time 3.847e-06/1.383, allocations: 0 / 0.552 GB, free: 99.57 MB / 442.7 MB Notification: Performance of matching and sorting (n=144): time 0.02646/1.409, allocations: 6.941 MB / 0.5587 GB, free: 98.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.303e-05/1.409, allocations: 77.48 kB / 0.5588 GB, free: 98.6 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003601/1.413, allocations: 1.624 MB / 0.5604 GB, free: 98.27 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003711/1.413, allocations: 49.48 kB / 0.5604 GB, free: 98.22 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008212/1.414, allocations: 1.167 MB / 0.5616 GB, free: 97.25 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006427/1.415, allocations: 0.4913 MB / 0.5621 GB, free: 96.88 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001633/1.415, allocations: 38.94 kB / 0.5621 GB, free: 96.85 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001312/1.415, allocations: 376.2 kB / 0.5625 GB, free: 96.51 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001868/1.417, allocations: 0.8131 MB / 0.5633 GB, free: 96.21 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002224/1.419, allocations: 1.281 MB / 0.5645 GB, free: 95.32 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002337/1.422, allocations: 1.015 MB / 0.5655 GB, free: 94.96 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-05/1.422, allocations: 3.969 kB / 0.5655 GB, free: 94.96 MB / 442.7 MB Notification: Performance of matching and sorting (n=219) (initialization): time 0.007065/1.429, allocations: 2.685 MB / 0.5681 GB, free: 94.08 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.882e-05/1.429, allocations: 11.53 kB / 0.5681 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.806e-05/1.429, allocations: 16.53 kB / 0.5681 GB, free: 94.08 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002413/1.431, allocations: 0.5895 MB / 0.5687 GB, free: 93.93 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003029/1.434, allocations: 415.3 kB / 0.5691 GB, free: 93.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0104/1.445, allocations: 5.464 MB / 0.5745 GB, free: 90.93 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003007/1.448, allocations: 138.4 kB / 0.5746 GB, free: 90.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002603/1.448, allocations: 70.28 kB / 0.5747 GB, free: 90.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (188): * Single equations (assignments): 184 * 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.0004293/1.449, allocations: 209.4 kB / 0.5749 GB, free: 90.72 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005528/1.449, allocations: 202.6 kB / 0.575 GB, free: 90.62 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00665/1.456, allocations: 2.513 MB / 0.5775 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-05/1.456, allocations: 22.67 kB / 0.5775 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.384e-05/1.456, allocations: 7.406 kB / 0.5775 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.455e-05/1.456, allocations: 10.23 kB / 0.5775 GB, free: 89.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01449/1.471, allocations: 5.417 MB / 0.5828 GB, free: 87.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.661e-05/1.471, allocations: 3.719 kB / 0.5828 GB, free: 87.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002173/1.473, allocations: 251.9 kB / 0.5831 GB, free: 87.48 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003071/1.476, allocations: 0.6563 MB / 0.5837 GB, free: 87.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003152/1.476, allocations: 37.78 kB / 0.5837 GB, free: 87.29 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01262/1.489, allocations: 7.132 MB / 0.5907 GB, free: 82.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.652e-06/1.489, allocations: 3.594 kB / 0.5907 GB, free: 82.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008868/1.498, allocations: 3.96 MB / 0.5946 GB, free: 80.83 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001802/1.5, allocations: 470 kB / 0.595 GB, free: 80.53 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005869/1.5, allocations: 35.08 kB / 0.5951 GB, free: 80.51 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002531/1.503, allocations: 115.4 kB / 0.5952 GB, free: 80.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004676/1.503, allocations: 122.7 kB / 0.5953 GB, free: 80.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001545/1.504, allocations: 44.03 kB / 0.5953 GB, free: 80.45 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002826/1.506, allocations: 1.252 MB / 0.5966 GB, free: 79.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 8.81e-07/1.506, allocations: 4 kB / 0.5966 GB, free: 79.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003839/1.51, allocations: 0.6328 MB / 0.5972 GB, free: 79.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (112): * Single equations (assignments): 108 * 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,72.2%) 23,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01004/1.52, allocations: 5.704 MB / 0.6027 GB, free: 76.43 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005937/1.526, allocations: 2.429 MB / 0.6051 GB, free: 74.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.677e-06/1.526, allocations: 4 kB / 0.6051 GB, free: 74.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004056/1.53, allocations: 1.537 MB / 0.6066 GB, free: 73.03 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003746/1.534, allocations: 412.2 kB / 0.607 GB, free: 72.71 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01461/1.549, allocations: 4.88 MB / 0.6118 GB, free: 68.39 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00239/1.551, allocations: 2.06 MB / 0.6138 GB, free: 66.75 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00242/1.554, allocations: 1.025 MB / 0.6148 GB, free: 65.81 MB / 442.7 MB Notification: Performance of SimCode: time 1.673e-06/1.554, allocations: 0 / 0.6148 GB, free: 65.81 MB / 442.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_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_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_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorFunctions.cpp:255:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_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_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorFunctions.cpp:292:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_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_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_GeneratorCalcHelperMain.o] Error 1