Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.915/1.915, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.352e-05/3.372e-05, allocations: 5.406 kB / 255.5 MB, free: 3.082 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09039/0.09044, allocations: 44.5 MB / 300 MB, free: 6.523 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.509/0.5995, allocations: 151.8 MB / 451.8 MB, free: 8.801 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000433/0.6, allocations: 105.6 kB / 451.9 MB, free: 8.742 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.824/2.424, allocations: 389.6 MB / 0.8218 GB, free: 25.09 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.134e-06/2.424, allocations: 3.938 kB / 0.8218 GB, free: 25.09 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000968/2.425, allocations: 279.7 kB / 0.8221 GB, free: 24.82 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.05315/2.479, allocations: 11.23 MB / 0.833 GB, free: 13.48 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.035e-05/2.479, allocations: 8.031 kB / 0.833 GB, free: 13.47 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01013/2.489, allocations: 1.951 MB / 0.8349 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04626/2.535, allocations: 5.209 MB / 0.84 GB, free: 6.277 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.7128/3.248, allocations: 9.615 MB / 0.8494 GB, free: 25.09 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001669/3.25, allocations: 0.9045 MB / 0.8503 GB, free: 25.06 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006331/3.256, allocations: 1.169 MB / 0.8514 GB, free: 25.06 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06476/3.321, allocations: 19.19 MB / 0.8702 GB, free: 23.66 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006187/3.321, allocations: 22.75 kB / 0.8702 GB, free: 23.66 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004529/3.326, allocations: 0.5025 MB / 0.8707 GB, free: 23.66 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001181/3.327, allocations: 0.768 MB / 0.8715 GB, free: 23.63 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04872/3.376, allocations: 16.91 MB / 0.888 GB, free: 23.58 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1596/3.536, allocations: 63.27 MB / 0.9498 GB, free: 14.88 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03984/3.576, allocations: 22.16 MB / 0.9714 GB, free: 15.01 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01897/3.595, allocations: 7.302 MB / 0.9785 GB, free: 11.92 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0872/3.682, allocations: 23.84 MB / 1.002 GB, free: 13.14 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/3.682, allocations: 109.6 kB / 1.002 GB, free: 13.04 MB / 474.8 MB Notification: Performance of pre-optimization done (n=746): time 1.205e-05/3.682, allocations: 0 / 1.002 GB, free: 13.04 MB / 474.8 MB Notification: Performance of matching and sorting (n=756): time 0.4503/4.132, allocations: 26.01 MB / 1.027 GB, free: 67.66 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/4.132, allocations: 145.5 kB / 1.027 GB, free: 67.56 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01112/4.144, allocations: 3.865 MB / 1.031 GB, free: 67.23 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.00169/4.145, allocations: 130.2 kB / 1.031 GB, free: 67.2 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.003812/4.149, allocations: 4.517 MB / 1.036 GB, free: 64.93 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004042/4.153, allocations: 2.511 MB / 1.038 GB, free: 63.31 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001397/4.155, allocations: 145.8 kB / 1.038 GB, free: 63.31 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0008179/4.155, allocations: 0.6369 MB / 1.039 GB, free: 62.98 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01204/4.168, allocations: 4.715 MB / 1.044 GB, free: 62.96 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01418/4.182, allocations: 6.535 MB / 1.05 GB, free: 60.96 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01485/4.197, allocations: 5.876 MB / 1.056 GB, free: 60.84 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.926e-05/4.197, allocations: 15.31 kB / 1.056 GB, free: 60.84 MB / 474.8 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.03813/4.235, allocations: 13.79 MB / 1.069 GB, free: 60.25 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.786e-05/4.235, allocations: 31.28 kB / 1.069 GB, free: 60.25 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000127/4.235, allocations: 52.41 kB / 1.069 GB, free: 60.25 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01104/4.246, allocations: 3.345 MB / 1.073 GB, free: 60.16 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01164/4.258, allocations: 1.477 MB / 1.074 GB, free: 60.16 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0183/4.276, allocations: 13.83 MB / 1.087 GB, free: 53.12 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009416/4.286, allocations: 400 kB / 1.088 GB, free: 53.11 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002238/4.288, allocations: 341.3 kB / 1.088 GB, free: 53.11 MB / 474.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (785): * Single equations (assignments): 720 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.003006/4.291, allocations: 0.5154 MB / 1.089 GB, free: 52.97 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002385/4.293, allocations: 0.59 MB / 1.089 GB, free: 52.66 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03738/4.331, allocations: 13.47 MB / 1.102 GB, free: 50.72 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02675/4.358, allocations: 10.3 MB / 1.112 GB, free: 46.36 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.845e-05/4.358, allocations: 3.844 kB / 1.112 GB, free: 46.36 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001682/4.358, allocations: 29.95 kB / 1.113 GB, free: 46.36 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07311/4.431, allocations: 27.9 MB / 1.14 GB, free: 34.06 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.176e-05/4.431, allocations: 3.75 kB / 1.14 GB, free: 34.06 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008588/4.44, allocations: 0.945 MB / 1.141 GB, free: 34.03 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01144/4.451, allocations: 3.444 MB / 1.144 GB, free: 32.5 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001781/4.453, allocations: 167.4 kB / 1.144 GB, free: 32.36 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02327/4.476, allocations: 18.2 MB / 1.162 GB, free: 14.64 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.774e-06/4.476, allocations: 13.75 kB / 1.162 GB, free: 14.63 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4338/4.91, allocations: 22.09 MB / 1.184 GB, free: 63.49 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006829/4.917, allocations: 1.727 MB / 1.185 GB, free: 63.4 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003045/4.92, allocations: 120.1 kB / 1.185 GB, free: 63.4 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007917/4.928, allocations: 312 kB / 1.186 GB, free: 63.4 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00291/4.931, allocations: 0.5486 MB / 1.186 GB, free: 63.39 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001925/4.933, allocations: 206.5 kB / 1.186 GB, free: 63.39 MB / 474.8 MB Notification: Performance of sorting global known variables: time 0.008716/4.942, allocations: 2.9 MB / 1.189 GB, free: 63.19 MB / 474.8 MB Notification: Performance of sort global known variables: time 1.994e-06/4.942, allocations: 1.312 kB / 1.189 GB, free: 63.19 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01419/4.956, allocations: 2.153 MB / 1.191 GB, free: 63.19 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (504): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.05306/5.009, allocations: 22.93 MB / 1.214 GB, free: 60.09 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.03051/5.04, allocations: 11.82 MB / 1.225 GB, free: 59.43 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/5.04, allocations: 0 / 1.225 GB, free: 59.43 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01783/5.057, allocations: 6.501 MB / 1.232 GB, free: 58.77 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01232/5.07, allocations: 1.307 MB / 1.233 GB, free: 58.74 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07768/5.148, allocations: 24.16 MB / 1.257 GB, free: 55.02 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01579/5.163, allocations: 7.532 MB / 1.264 GB, free: 54 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0114/5.175, allocations: 4.491 MB / 1.268 GB, free: 51.61 MB / 474.8 MB Notification: Performance of SimCode: time 1.503e-06/5.175, allocations: 0 / 1.268 GB, free: 51.61 MB / 474.8 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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFunctions.cpp:637:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsFMU.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_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_MainsCalcHelperMain.o] Error 1