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.809/1.809, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.094e-05/3.112e-05, allocations: 4 kB / 255.5 MB, free: 3.074 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09335, allocations: 44.5 MB / 300 MB, free: 6.512 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5332/0.6266, allocations: 161.8 MB / 461.8 MB, free: 15.03 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004534/0.6271, allocations: 102.4 kB / 461.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.386/5.013, allocations: 0.8628 GB / 1.314 GB, free: 23.19 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.953e-06/5.013, allocations: 0 / 1.314 GB, free: 23.19 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.001781/5.015, allocations: 477.7 kB / 1.314 GB, free: 23.11 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.09819/5.113, allocations: 19.58 MB / 1.333 GB, free: 17.31 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/5.113, allocations: 14.84 kB / 1.333 GB, free: 17.3 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01578/5.129, allocations: 2.977 MB / 1.336 GB, free: 17.12 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08947/5.219, allocations: 10.32 MB / 1.346 GB, free: 10.68 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.5181/5.737, allocations: 15.82 MB / 1.362 GB, free: 24.5 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00364/5.74, allocations: 1.544 MB / 1.363 GB, free: 24.46 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0125/5.753, allocations: 2.012 MB / 1.365 GB, free: 24.46 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1248/5.878, allocations: 35.27 MB / 1.4 GB, free: 22.18 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001244/5.879, allocations: 33.33 kB / 1.4 GB, free: 22.18 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009896/5.889, allocations: 0.8638 MB / 1.401 GB, free: 22.18 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002352/5.891, allocations: 1.389 MB / 1.402 GB, free: 22.14 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09862/5.99, allocations: 31.86 MB / 1.433 GB, free: 18.73 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3246/6.315, allocations: 112.6 MB / 1.543 GB, free: 2.344 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.5505/6.865, allocations: 43.92 MB / 1.586 GB, free: 60.2 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.04226/6.908, allocations: 16.32 MB / 1.602 GB, free: 60.05 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1491/7.057, allocations: 50.38 MB / 1.651 GB, free: 56.98 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000171/7.057, allocations: 184.6 kB / 1.651 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=1576): time 2.303e-05/7.057, allocations: 0 / 1.651 GB, free: 56.84 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1588): time 0.1734/7.23, allocations: 57.17 MB / 1.707 GB, free: 31.18 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001487/7.231, allocations: 216.3 kB / 1.707 GB, free: 31.07 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01678/7.247, allocations: 5.919 MB / 1.713 GB, free: 28.89 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 0.003748/7.251, allocations: 244.9 kB / 1.713 GB, free: 28.69 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.005303/7.257, allocations: 6.915 MB / 1.72 GB, free: 23.35 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.008895/7.266, allocations: 5.208 MB / 1.725 GB, free: 19.28 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003996/7.27, allocations: 257.8 kB / 1.725 GB, free: 19.08 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.001885/7.272, allocations: 0.9018 MB / 1.726 GB, free: 18.51 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02625/7.298, allocations: 10.17 MB / 1.736 GB, free: 14.26 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02873/7.327, allocations: 12.29 MB / 1.748 GB, free: 3.145 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5355/7.862, allocations: 14.12 MB / 1.762 GB, free: 79.73 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001015/7.862, allocations: 15.69 kB / 1.762 GB, free: 79.73 MB / 0.5261 GB Notification: Performance of matching and sorting (n=1865) (initialization): time 0.09377/7.956, allocations: 30.68 MB / 1.792 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 7.776e-05/7.956, allocations: 29.19 kB / 1.792 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000172/7.956, allocations: 50.06 kB / 1.792 GB, free: 79.2 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.04899/8.005, allocations: 14.62 MB / 1.806 GB, free: 78.67 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01803/8.024, allocations: 2.085 MB / 1.808 GB, free: 78.67 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07188/8.095, allocations: 35.62 MB / 1.843 GB, free: 69.32 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01614/8.112, allocations: 0.6256 MB / 1.844 GB, free: 69.12 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004498/8.116, allocations: 0.5261 MB / 1.844 GB, free: 69 MB / 0.5261 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.008/8.124, allocations: 0.767 MB / 1.845 GB, free: 68.51 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.006124/8.13, allocations: 1.011 MB / 1.846 GB, free: 68.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.09614/8.227, allocations: 31.92 MB / 1.877 GB, free: 55.06 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0006247/8.227, allocations: 380.7 kB / 1.878 GB, free: 54.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.77e-05/8.227, allocations: 17.06 kB / 1.878 GB, free: 54.87 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003454/8.228, allocations: 68.84 kB / 1.878 GB, free: 54.87 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1691/8.397, allocations: 60.21 MB / 1.937 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002722/8.397, allocations: 4 kB / 1.937 GB, free: 10.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01507/8.412, allocations: 1.618 MB / 1.938 GB, free: 9.73 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0497/8.462, allocations: 14.85 MB / 1.953 GB, free: 13 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.004184/8.466, allocations: 343.2 kB / 1.953 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5715/9.038, allocations: 39.87 MB / 1.992 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.836e-06/9.038, allocations: 12.3 kB / 1.992 GB, free: 83.54 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1287/9.167, allocations: 47.39 MB / 2.038 GB, free: 79.29 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 0.01395/9.181, allocations: 3.487 MB / 2.042 GB, free: 77.93 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006596/9.187, allocations: 243.7 kB / 2.042 GB, free: 77.75 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01502/9.202, allocations: 0.6304 MB / 2.042 GB, free: 77.57 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005882/9.208, allocations: 1.162 MB / 2.044 GB, free: 77.34 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0041/9.212, allocations: 419.1 kB / 2.044 GB, free: 77.23 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0126/9.225, allocations: 4.536 MB / 2.048 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of sort global known variables: time 9.32e-07/9.225, allocations: 0 / 2.048 GB, free: 75.53 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0236/9.249, allocations: 3.898 MB / 2.052 GB, free: 75.12 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.1317/9.38, allocations: 49.41 MB / 2.1 GB, free: 49.87 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0709/9.451, allocations: 25.91 MB / 2.126 GB, free: 26.81 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.373e-05/9.451, allocations: 6.672 kB / 2.126 GB, free: 26.8 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.04477/9.496, allocations: 14.82 MB / 2.14 GB, free: 13.67 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0222/9.518, allocations: 2.336 MB / 2.142 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7129/10.23, allocations: 48.42 MB / 2.19 GB, free: 84.07 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03248/10.26, allocations: 13.47 MB / 2.203 GB, free: 82.76 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02337/10.29, allocations: 8.003 MB / 2.211 GB, free: 82.76 MB / 0.5417 GB Notification: Performance of SimCode: time 1.723e-06/10.29, allocations: 0 / 2.211 GB, free: 82.76 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