Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMEE_DOL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.967/1.967, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.432e-05/4.441e-05, allocations: 8 kB / 292.2 MB, free: 8.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1113/0.1114, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4903/0.6018, allocations: 115.3 MB / 457.9 MB, free: 11.4 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003023/0.6021, allocations: 87.56 kB / 458 MB, free: 11.36 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6622/1.264, allocations: 86.32 MB / 0.5316 GB, free: 105.9 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.325e-06/1.264, allocations: 0 / 0.5316 GB, free: 105.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000388/1.265, allocations: 75.8 kB / 0.5316 GB, free: 105.9 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: 701 * Number of variables: 701 Notification: Performance of Generate backend data structure: time 0.01137/1.276, allocations: 2.808 MB / 0.5344 GB, free: 104.8 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/1.276, allocations: 15.53 kB / 0.5344 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001691/1.278, allocations: 382.3 kB / 0.5348 GB, free: 104.8 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002984/1.281, allocations: 441.8 kB / 0.5352 GB, free: 104.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007161/1.288, allocations: 1.958 MB / 0.5371 GB, free: 104.1 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003317/1.289, allocations: 206.1 kB / 0.5373 GB, free: 104.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001224/1.29, allocations: 262.9 kB / 0.5375 GB, free: 104.1 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01161/1.301, allocations: 3.371 MB / 0.5408 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001317/1.302, allocations: 10.62 kB / 0.5408 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000458/1.302, allocations: 114.3 kB / 0.541 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001775/1.302, allocations: 114.3 kB / 0.5411 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01177/1.314, allocations: 2.658 MB / 0.5437 GB, free: 103.7 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03856/1.353, allocations: 11.23 MB / 0.5546 GB, free: 100.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005254/1.358, allocations: 2.243 MB / 0.5568 GB, free: 99.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003009/1.361, allocations: 0.9798 MB / 0.5578 GB, free: 99.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000574/1.362, allocations: 230.7 kB / 0.558 GB, free: 99.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.016e-05/1.362, allocations: 47.78 kB / 0.558 GB, free: 99.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=134): time 6.121e-06/1.362, allocations: 0 / 0.558 GB, free: 99.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=158): time 0.03336/1.395, allocations: 7.192 MB / 0.5651 GB, free: 97.51 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/1.395, allocations: 71.06 kB / 0.5651 GB, free: 97.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003723/1.399, allocations: 1.726 MB / 0.5668 GB, free: 96.73 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003745/1.399, allocations: 48.3 kB / 0.5669 GB, free: 96.68 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008475/1.4, allocations: 1.223 MB / 0.5681 GB, free: 95.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006933/1.401, allocations: 0.5361 MB / 0.5686 GB, free: 95.26 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001788/1.401, allocations: 37.31 kB / 0.5686 GB, free: 95.23 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001404/1.401, allocations: 380.8 kB / 0.569 GB, free: 94.89 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002019/1.403, allocations: 0.8794 MB / 0.5698 GB, free: 94.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002341/1.406, allocations: 1.327 MB / 0.5711 GB, free: 93.7 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002315/1.408, allocations: 1.09 MB / 0.5722 GB, free: 93.31 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.294e-05/1.408, allocations: 6.781 kB / 0.5722 GB, free: 93.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.007224/1.415, allocations: 2.862 MB / 0.575 GB, free: 92.36 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.675e-05/1.415, allocations: 15 kB / 0.575 GB, free: 92.36 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.874e-05/1.415, allocations: 15.06 kB / 0.575 GB, free: 92.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002626/1.418, allocations: 0.6265 MB / 0.5756 GB, free: 92.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003315/1.421, allocations: 438.4 kB / 0.5761 GB, free: 92.19 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01125/1.433, allocations: 5.718 MB / 0.5816 GB, free: 89.06 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00309/1.436, allocations: 139.1 kB / 0.5818 GB, free: 89.03 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003214/1.436, allocations: 77.61 kB / 0.5818 GB, free: 89.01 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 62 * Number of states: 0 () * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (197): * Single equations (assignments): 193 * 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%) 27} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004912/1.437, allocations: 205.6 kB / 0.582 GB, free: 88.82 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006163/1.437, allocations: 208.2 kB / 0.5822 GB, free: 88.72 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006956/1.444, allocations: 2.721 MB / 0.5849 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.201e-05/1.444, allocations: 14.31 kB / 0.5849 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/1.444, allocations: 11 kB / 0.5849 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.541e-05/1.444, allocations: 7.875 kB / 0.5849 GB, free: 87.68 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01492/1.459, allocations: 5.762 MB / 0.5906 GB, free: 85.38 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.072e-05/1.46, allocations: 10.28 kB / 0.5906 GB, free: 85.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002365/1.462, allocations: 282.6 kB / 0.5908 GB, free: 85.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003136/1.465, allocations: 0.6862 MB / 0.5915 GB, free: 85.18 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003083/1.465, allocations: 42.3 kB / 0.5915 GB, free: 85.16 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01291/1.478, allocations: 7.418 MB / 0.5988 GB, free: 80.56 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.323e-06/1.478, allocations: 7.891 kB / 0.5988 GB, free: 80.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009554/1.488, allocations: 4.138 MB / 0.6028 GB, free: 78.48 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001903/1.49, allocations: 0.4913 MB / 0.6033 GB, free: 78.03 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006612/1.491, allocations: 43.7 kB / 0.6034 GB, free: 77.99 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002548/1.493, allocations: 114.3 kB / 0.6035 GB, free: 77.91 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004619/1.494, allocations: 125 kB / 0.6036 GB, free: 77.83 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/1.494, allocations: 47.89 kB / 0.6036 GB, free: 77.79 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002799/1.497, allocations: 1.32 MB / 0.6049 GB, free: 76.56 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.497, allocations: 0 / 0.6049 GB, free: 76.56 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003387/1.5, allocations: 0.6794 MB / 0.6056 GB, free: 75.89 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smee.inertiaRotor.w,smee.idq_sr[1],smee.idq_sr[2],smee.idq_rr[1],smee.idq_rr[2],smee.idq_dr[1],mechanicalMultiSensor.flange_a.phi) * Number of discrete variables: 1 (booleanReplicator.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (122): * Single equations (assignments): 118 * 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%) 27,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009992/1.51, allocations: 5.59 MB / 0.611 GB, free: 70.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.006166/1.516, allocations: 2.606 MB / 0.6136 GB, free: 68.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/1.516, allocations: 0 / 0.6136 GB, free: 68.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004241/1.521, allocations: 1.647 MB / 0.6152 GB, free: 66.85 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003673/1.524, allocations: 464.8 kB / 0.6156 GB, free: 66.48 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01474/1.539, allocations: 5.382 MB / 0.6209 GB, free: 61.77 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00241/1.542, allocations: 2.176 MB / 0.623 GB, free: 60.05 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00252/1.544, allocations: 1.076 MB / 0.6241 GB, free: 59.06 MB / 442.7 MB Notification: Performance of SimCode: time 1.854e-06/1.544, allocations: 4 kB / 0.6241 GB, free: 59.06 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_DOLCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOLCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOLCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOLFunctions.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_DOLFunctions.cpp:255:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOLFunctions.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_DOLFunctions.cpp:292:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOLCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOLFMU.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_DOLCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMEE_DOLCalcHelperMain.o] Error 1