Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.017/2.017, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.443e-05/3.465e-05, allocations: 4 kB / 292.3 MB, free: 8.695 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1087, allocations: 50.41 MB / 342.7 MB, free: 6.266 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5888/0.6975, allocations: 167.4 MB / 0.4981 GB, free: 7.816 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003753/0.698, allocations: 102 kB / 0.4982 GB, free: 7.762 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.814/5.512, allocations: 0.8621 GB / 1.36 GB, free: 34.04 MB / 0.5105 GB Notification: Performance of FrontEnd: time 5.059e-06/5.512, allocations: 1.781 kB / 1.36 GB, free: 34.04 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 0.003056/5.515, allocations: 480.4 kB / 1.361 GB, free: 33.96 MB / 0.5105 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5818 * Number of variables: 5818 Notification: Performance of Generate backend data structure: time 0.1084/5.624, allocations: 19.5 MB / 1.38 GB, free: 28.21 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.861e-05/5.624, allocations: 11.53 kB / 1.38 GB, free: 28.21 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01554/5.639, allocations: 2.947 MB / 1.383 GB, free: 28.02 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08128/5.721, allocations: 9.679 MB / 1.392 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.05868/5.78, allocations: 16.21 MB / 1.408 GB, free: 15.35 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002698/5.782, allocations: 1.515 MB / 1.409 GB, free: 13.86 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01216/5.795, allocations: 1.999 MB / 1.411 GB, free: 11.88 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.6465/6.441, allocations: 33.84 MB / 1.444 GB, free: 31.73 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.001421/6.443, allocations: 25.11 kB / 1.445 GB, free: 31.73 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.009942/6.452, allocations: 0.859 MB / 1.445 GB, free: 31.73 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002987/6.456, allocations: 1.481 MB / 1.447 GB, free: 31.68 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09608/6.552, allocations: 29.28 MB / 1.475 GB, free: 31.59 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2942/6.846, allocations: 107.4 MB / 1.58 GB, free: 0.8711 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07918/6.925, allocations: 50.84 MB / 1.63 GB, free: 8.605 MB / 0.573 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02678/6.952, allocations: 9.563 MB / 1.639 GB, free: 0 / 0.573 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5792/7.531, allocations: 22.62 MB / 1.661 GB, free: 101.2 MB / 0.573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001716/7.532, allocations: 132.8 kB / 1.662 GB, free: 101.1 MB / 0.573 GB Notification: Performance of pre-optimization done (n=892): time 1.374e-05/7.532, allocations: 0 / 1.662 GB, free: 101.1 MB / 0.573 GB Notification: Performance of matching and sorting (n=904): time 0.1014/7.633, allocations: 32.66 MB / 1.693 GB, free: 95.33 MB / 0.573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001188/7.633, allocations: 170.5 kB / 1.694 GB, free: 95.23 MB / 0.573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02144/7.655, allocations: 7.342 MB / 1.701 GB, free: 94.62 MB / 0.573 GB Notification: Performance of collectPreVariables (initialization): time 0.002142/7.657, allocations: 174.2 kB / 1.701 GB, free: 94.59 MB / 0.573 GB Notification: Performance of collectInitialEqns (initialization): time 0.007071/7.664, allocations: 8.225 MB / 1.709 GB, free: 90.11 MB / 0.573 GB Notification: Performance of collectInitialBindings (initialization): time 0.005183/7.669, allocations: 3.043 MB / 1.712 GB, free: 88.18 MB / 0.573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002977/7.672, allocations: 227.8 kB / 1.712 GB, free: 88.18 MB / 0.573 GB Notification: Performance of setup shared object (initialization): time 0.001451/7.674, allocations: 0.7738 MB / 1.713 GB, free: 87.84 MB / 0.573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0167/7.69, allocations: 6.01 MB / 1.719 GB, free: 87.82 MB / 0.573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01987/7.71, allocations: 9.532 MB / 1.728 GB, free: 83.64 MB / 0.573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02024/7.731, allocations: 8.093 MB / 1.736 GB, free: 82.85 MB / 0.573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002488/7.731, allocations: 31.69 kB / 1.736 GB, free: 82.85 MB / 0.573 GB Notification: Performance of matching and sorting (n=1468) (initialization): time 0.05903/7.79, allocations: 18.97 MB / 1.755 GB, free: 76.22 MB / 0.573 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001306/7.79, allocations: 54.44 kB / 1.755 GB, free: 76.22 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002594/7.79, allocations: 113.8 kB / 1.755 GB, free: 76.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01878/7.809, allocations: 3.814 MB / 1.758 GB, free: 75.26 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01912/7.828, allocations: 2.374 MB / 1.761 GB, free: 75.18 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08299/7.911, allocations: 37.74 MB / 1.798 GB, free: 48.48 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01546/7.927, allocations: 0.6064 MB / 1.798 GB, free: 47.99 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00341/7.93, allocations: 0.5068 MB / 1.799 GB, free: 47.5 MB / 0.573 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 517 * 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 (1214): * Single equations (assignments): 1207 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 6 * 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: 6 {(1,100.0%) 1,(1,100.0%) 8,(3,88.9%) 25,(1,100.0%) 13,(1,100.0%) 1,(28,26.3%) 176} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006055/7.936, allocations: 0.7964 MB / 1.799 GB, free: 46.86 MB / 0.573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00459/7.941, allocations: 0.907 MB / 1.8 GB, free: 45.95 MB / 0.573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05442/7.996, allocations: 16.68 MB / 1.817 GB, free: 32.1 MB / 0.573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.123e-05/7.996, allocations: 92 kB / 1.817 GB, free: 32.01 MB / 0.573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.641e-05/7.996, allocations: 40 kB / 1.817 GB, free: 31.97 MB / 0.573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002502/7.996, allocations: 46.27 kB / 1.817 GB, free: 31.97 MB / 0.573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.6595/8.656, allocations: 35.58 MB / 1.852 GB, free: 85.22 MB / 0.573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001314/8.656, allocations: 5.984 kB / 1.852 GB, free: 85.22 MB / 0.573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01428/8.67, allocations: 1.412 MB / 1.853 GB, free: 85.22 MB / 0.573 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01942/8.69, allocations: 3.808 MB / 1.857 GB, free: 85.11 MB / 0.573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002482/8.692, allocations: 203.3 kB / 1.857 GB, free: 85.11 MB / 0.573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1061/8.798, allocations: 39.49 MB / 1.895 GB, free: 74.48 MB / 0.573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.054e-05/8.798, allocations: 9.281 kB / 1.895 GB, free: 74.48 MB / 0.573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06956/8.868, allocations: 25.38 MB / 1.92 GB, free: 71.83 MB / 0.573 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009518/8.877, allocations: 2.247 MB / 1.922 GB, free: 71.73 MB / 0.573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004764/8.882, allocations: 176.5 kB / 1.923 GB, free: 71.73 MB / 0.573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0124/8.895, allocations: 0.509 MB / 1.923 GB, free: 71.73 MB / 0.573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003866/8.899, allocations: 0.6988 MB / 1.924 GB, free: 71.72 MB / 0.573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00237/8.901, allocations: 259.2 kB / 1.924 GB, free: 71.72 MB / 0.573 GB Notification: Performance of sorting global known variables: time 0.01583/8.917, allocations: 5.546 MB / 1.929 GB, free: 71.43 MB / 0.573 GB Notification: Performance of sort global known variables: time 9.62e-07/8.917, allocations: 0 / 1.929 GB, free: 71.43 MB / 0.573 GB Notification: Performance of remove unused functions: time 0.02329/8.94, allocations: 3.845 MB / 1.933 GB, free: 71.43 MB / 0.573 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * 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 (701): * Single equations (assignments): 693 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(1,100.0%) 1,(28,26.3%) 176,(1,100.0%) 8,(2,100.0%) 26,(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 13,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.07291/9.013, allocations: 27.71 MB / 1.96 GB, free: 62.15 MB / 0.573 GB Notification: Performance of simCode: created initialization part: time 0.04346/9.057, allocations: 16.3 MB / 1.976 GB, free: 55.71 MB / 0.573 GB Notification: Performance of simCode: created event and clocks part: time 1.542e-05/9.057, allocations: 3.438 kB / 1.976 GB, free: 55.71 MB / 0.573 GB Notification: Performance of simCode: created simulation system equations: time 0.02676/9.084, allocations: 9.373 MB / 1.985 GB, free: 49.82 MB / 0.573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02147/9.105, allocations: 2.328 MB / 1.988 GB, free: 48.01 MB / 0.573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1303/9.235, allocations: 37.96 MB / 2.025 GB, free: 14.89 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.03061/9.266, allocations: 13.15 MB / 2.037 GB, free: 5.086 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02924/9.295, allocations: 8.251 MB / 2.046 GB, free: 15.41 MB / 0.5886 GB Notification: Performance of SimCode: time 3.066e-06/9.296, allocations: 7.656 kB / 2.046 GB, free: 15.41 MB / 0.5886 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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFunctions.cpp:587:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp259 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerFunctions.cpp:587:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp259 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ In file included from OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_TransformerCalcHelperMain.o] Error 1