Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.832/1.832, allocations: 194.9 MB / 208.4 MB, free: 3.258 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.305e-05/3.336e-05, allocations: 4 kB / 255.4 MB, free: 3.086 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08967/0.08973, allocations: 44.51 MB / 300 MB, free: 6.52 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5171/0.6069, allocations: 161.8 MB / 461.8 MB, free: 14.75 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003508/0.6073, allocations: 98.25 kB / 461.9 MB, free: 14.7 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.482/5.089, allocations: 0.8628 GB / 1.314 GB, free: 23.16 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.953e-06/5.09, allocations: 0 / 1.314 GB, free: 23.16 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.002009/5.092, allocations: 484 kB / 1.314 GB, free: 23.09 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5875 * Number of variables: 5875 Notification: Performance of Generate backend data structure: time 0.0979/5.189, allocations: 19.58 MB / 1.333 GB, free: 17.29 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.816e-05/5.19, allocations: 15.28 kB / 1.333 GB, free: 17.29 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01546/5.205, allocations: 2.973 MB / 1.336 GB, free: 16.88 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08698/5.292, allocations: 10.32 MB / 1.346 GB, free: 10.32 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05932/5.351, allocations: 15.83 MB / 1.362 GB, free: 12.94 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00315/5.355, allocations: 1.556 MB / 1.363 GB, free: 11.39 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01193/5.367, allocations: 2.007 MB / 1.365 GB, free: 9.387 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5941/5.961, allocations: 35.51 MB / 1.4 GB, free: 35.52 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001243/5.962, allocations: 31 kB / 1.4 GB, free: 35.52 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009964/5.972, allocations: 0.8647 MB / 1.401 GB, free: 35.52 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002338/5.974, allocations: 1.387 MB / 1.402 GB, free: 35.48 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09906/6.074, allocations: 32.12 MB / 1.434 GB, free: 35.29 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3124/6.386, allocations: 112.3 MB / 1.543 GB, free: 14.05 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.562/6.948, allocations: 44.15 MB / 1.586 GB, free: 61.98 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04254/6.991, allocations: 16.32 MB / 1.602 GB, free: 61.83 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1472/7.138, allocations: 50.39 MB / 1.652 GB, free: 58.59 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001631/7.138, allocations: 175.4 kB / 1.652 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1576): time 2.091e-05/7.138, allocations: 0 / 1.652 GB, free: 58.45 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1588): time 0.1972/7.335, allocations: 57.17 MB / 1.708 GB, free: 32.8 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001455/7.335, allocations: 223 kB / 1.708 GB, free: 32.7 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01625/7.352, allocations: 5.92 MB / 1.714 GB, free: 30.5 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.003596/7.355, allocations: 244.3 kB / 1.714 GB, free: 30.3 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005333/7.361, allocations: 6.918 MB / 1.72 GB, free: 24.96 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.008593/7.369, allocations: 5.202 MB / 1.726 GB, free: 20.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003801/7.373, allocations: 259.3 kB / 1.726 GB, free: 20.7 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001842/7.375, allocations: 0.9075 MB / 1.727 GB, free: 20.13 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02626/7.401, allocations: 10.16 MB / 1.737 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02898/7.43, allocations: 12.37 MB / 1.749 GB, free: 4.02 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.06364/7.494, allocations: 13.93 MB / 1.762 GB, free: 14.5 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000103/7.494, allocations: 16.47 kB / 1.762 GB, free: 14.49 MB / 0.5417 GB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.573/8.067, allocations: 31.03 MB / 1.793 GB, free: 91.04 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 8.334e-05/8.067, allocations: 27.94 kB / 1.793 GB, free: 91.04 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001701/8.068, allocations: 52.56 kB / 1.793 GB, free: 91.04 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04829/8.116, allocations: 14.62 MB / 1.807 GB, free: 90.51 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0176/8.134, allocations: 2.085 MB / 1.809 GB, free: 90.51 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0706/8.204, allocations: 35.62 MB / 1.844 GB, free: 81.23 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01566/8.22, allocations: 0.622 MB / 1.844 GB, free: 81.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004545/8.225, allocations: 0.5281 MB / 1.845 GB, free: 81.23 MB / 0.5417 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 230 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y,booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1058): * Single equations (assignments): 1018 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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: 5 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of prepare postOptimizeDAE: time 0.008201/8.233, allocations: 0.7649 MB / 1.846 GB, free: 81.12 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006034/8.239, allocations: 1.004 MB / 1.847 GB, free: 81.12 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09666/8.336, allocations: 31.93 MB / 1.878 GB, free: 75.17 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0007206/8.336, allocations: 383 kB / 1.878 GB, free: 74.98 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.531e-05/8.336, allocations: 15.2 kB / 1.878 GB, free: 74.98 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003346/8.337, allocations: 73.89 kB / 1.878 GB, free: 74.98 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1692/8.506, allocations: 60.22 MB / 1.937 GB, free: 42.86 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002722/8.506, allocations: 0 / 1.937 GB, free: 42.86 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01469/8.521, allocations: 1.618 MB / 1.939 GB, free: 41.61 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04673/8.568, allocations: 14.81 MB / 1.953 GB, free: 28.78 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.003979/8.572, allocations: 338.9 kB / 1.953 GB, free: 28.49 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5508/9.123, allocations: 39.92 MB / 1.992 GB, free: 85.28 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.969e-06/9.123, allocations: 10.84 kB / 1.992 GB, free: 85.28 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.13/9.253, allocations: 47.39 MB / 2.039 GB, free: 83.35 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0187/9.271, allocations: 3.493 MB / 2.042 GB, free: 83.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00718/9.279, allocations: 242.7 kB / 2.042 GB, free: 83.26 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01886/9.298, allocations: 0.625 MB / 2.043 GB, free: 83.26 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007553/9.305, allocations: 1.167 MB / 2.044 GB, free: 83.25 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004615/9.31, allocations: 422.4 kB / 2.045 GB, free: 83.25 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0172/9.327, allocations: 4.529 MB / 2.049 GB, free: 83 MB / 0.5417 GB Notification: Performance of sort global known variables: time 2.856e-06/9.327, allocations: 0 / 2.049 GB, free: 83 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.02349/9.351, allocations: 3.901 MB / 2.053 GB, free: 83 MB / 0.5417 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 12 (imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStep1QS[1].y,booleanStep1QS[2].y,booleanStep1QS[3].y,booleanStep2QS[1].y,booleanStep2QS[2].y,booleanStep2QS[3].y,booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (820): * Single equations (assignments): 779 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,66 432} Notification: Performance of Backend phase and start with SimCode phase: time 0.1316/9.482, allocations: 49.4 MB / 2.101 GB, free: 63.09 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0715/9.554, allocations: 26.14 MB / 2.127 GB, free: 45.63 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-05/9.554, allocations: 7.719 kB / 2.127 GB, free: 45.62 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.044/9.598, allocations: 14.93 MB / 2.141 GB, free: 32.38 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02734/9.625, allocations: 2.335 MB / 2.143 GB, free: 30.63 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6408/10.27, allocations: 46.32 MB / 2.189 GB, free: 84.65 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03153/10.3, allocations: 13.47 MB / 2.202 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02156/10.32, allocations: 8.002 MB / 2.21 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of SimCode: time 1.332e-06/10.32, allocations: 0 / 2.21 GB, free: 83.54 MB / 0.5417 GB 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_InductionMachines_IMC_TransformerCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = 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_InductionMachines_IMC_TransformerFunctions.cpp:587:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp376 = 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_InductionMachines_IMC_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFMU.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_InductionMachines_IMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o] Error 1