Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD") Notification: Performance of loadModel(Modelica): time 1.829/1.829, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.543e-05/3.557e-05, allocations: 6.625 kB / 255.4 MB, free: 3.148 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07999/0.08005, allocations: 44.5 MB / 299.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.411/0.4911, allocations: 147.7 MB / 447.6 MB, free: 400 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002746/0.4915, allocations: 97.19 kB / 447.7 MB, free: 348 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114/2.605, allocations: 468.1 MB / 0.8943 GB, free: 32.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.266e-06/2.605, allocations: 0 / 0.8943 GB, free: 32.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.000997/2.606, allocations: 331.9 kB / 0.8946 GB, free: 32.07 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: 3951 * Number of variables: 3951 Notification: Performance of Generate backend data structure: time 0.05641/2.663, allocations: 13.56 MB / 0.9079 GB, free: 27.99 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/2.663, allocations: 13.94 kB / 0.9079 GB, free: 27.98 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05412/2.717, allocations: 6.713 MB / 0.9145 GB, free: 27.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03355/2.75, allocations: 11.46 MB / 0.9257 GB, free: 25.62 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001419/2.752, allocations: 1.047 MB / 0.9267 GB, free: 25.59 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005968/2.758, allocations: 1.356 MB / 0.928 GB, free: 25.57 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.07093/2.829, allocations: 23.64 MB / 0.9511 GB, free: 5.715 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006187/2.829, allocations: 27.69 kB / 0.9511 GB, free: 5.691 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005735/2.835, allocations: 0.5864 MB / 0.9517 GB, free: 5.125 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001523/2.837, allocations: 0.9408 MB / 0.9526 GB, free: 4.273 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06175/2.899, allocations: 21.48 MB / 0.9736 GB, free: 0.9141 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4754/3.374, allocations: 77.39 MB / 1.049 GB, free: 27.5 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03762/3.412, allocations: 30.47 MB / 1.079 GB, free: 5.566 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0218/3.434, allocations: 10.65 MB / 1.089 GB, free: 1.02 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08839/3.522, allocations: 33.75 MB / 1.122 GB, free: 2.371 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001278/3.522, allocations: 124.1 kB / 1.122 GB, free: 2.266 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1011): time 1.634e-05/3.522, allocations: 0 / 1.122 GB, free: 2.266 MB / 458.7 MB Notification: Performance of matching and sorting (n=1019): time 0.4368/3.959, allocations: 37.6 MB / 1.159 GB, free: 75.35 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001559/3.959, allocations: 168.4 kB / 1.159 GB, free: 75.25 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0173/3.976, allocations: 4.284 MB / 1.163 GB, free: 74.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.003241/3.98, allocations: 167.2 kB / 1.164 GB, free: 74.88 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.005893/3.986, allocations: 4.913 MB / 1.168 GB, free: 72.71 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006432/3.992, allocations: 3.343 MB / 1.172 GB, free: 70.54 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00275/3.995, allocations: 171.8 kB / 1.172 GB, free: 70.54 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001515/3.997, allocations: 0.7067 MB / 1.173 GB, free: 70.2 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.02202/4.019, allocations: 6.657 MB / 1.179 GB, free: 70.18 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02745/4.046, allocations: 8.323 MB / 1.187 GB, free: 68.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0203/4.067, allocations: 7.958 MB / 1.195 GB, free: 68.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.125e-05/4.067, allocations: 16.34 kB / 1.195 GB, free: 68.39 MB / 474.7 MB Notification: Performance of matching and sorting (n=1251) (initialization): time 0.05057/4.117, allocations: 20.51 MB / 1.215 GB, free: 64.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.438e-05/4.117, allocations: 23.97 kB / 1.215 GB, free: 64.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001088/4.118, allocations: 42.41 kB / 1.215 GB, free: 64.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02715/4.145, allocations: 8.433 MB / 1.223 GB, free: 62.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01353/4.158, allocations: 1.397 MB / 1.225 GB, free: 62.26 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.07294/4.231, allocations: 27.77 MB / 1.252 GB, free: 45.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01347/4.245, allocations: 430.3 kB / 1.252 GB, free: 45.24 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003584/4.248, allocations: 375.2 kB / 1.253 GB, free: 45.16 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 12 (booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (727): * Single equations (assignments): 698 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 8 * 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,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 1} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of prepare postOptimizeDAE: time 0.005665/4.254, allocations: 0.5581 MB / 1.253 GB, free: 44.77 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004515/4.259, allocations: 0.6994 MB / 1.254 GB, free: 44.4 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.06323/4.322, allocations: 21 MB / 1.274 GB, free: 31.33 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003338/4.322, allocations: 248.6 kB / 1.274 GB, free: 31.11 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.842e-05/4.322, allocations: 8 kB / 1.275 GB, free: 31.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001653/4.323, allocations: 53.14 kB / 1.275 GB, free: 31.1 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1023/4.425, allocations: 40 MB / 1.314 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000133/4.425, allocations: 7.922 kB / 1.314 GB, free: 13.91 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006753/4.432, allocations: 0.9707 MB / 1.315 GB, free: 13.16 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.3626/4.795, allocations: 8.549 MB / 1.323 GB, free: 90.13 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002328/4.797, allocations: 221.9 kB / 1.323 GB, free: 90.13 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05174/4.849, allocations: 32.01 MB / 1.354 GB, free: 79.4 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.265e-06/4.849, allocations: 4.531 kB / 1.354 GB, free: 79.4 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07161/4.92, allocations: 31.29 MB / 1.385 GB, free: 76.37 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.007898/4.928, allocations: 2.356 MB / 1.387 GB, free: 75.43 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003886/4.932, allocations: 160.6 kB / 1.387 GB, free: 75.31 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007845/4.94, allocations: 391.1 kB / 1.388 GB, free: 75.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003512/4.944, allocations: 0.787 MB / 1.389 GB, free: 75.04 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.002572/4.946, allocations: 273.6 kB / 1.389 GB, free: 74.97 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.008754/4.955, allocations: 3.258 MB / 1.392 GB, free: 73.73 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.4e-06/4.955, allocations: 0 / 1.392 GB, free: 73.73 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01503/4.97, allocations: 2.648 MB / 1.395 GB, free: 73.46 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (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,loadInertia.w,quadraticLoadTorque.phi) * Number of discrete variables: 12 (booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y,booleanStepYDQS[1].y,booleanStepYDQS[2].y,booleanStepYDQS[3].y,booleanStep[1].y,booleanStep[2].y,booleanStep[3].y,booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (510): * Single equations (assignments): 480 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 20 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * 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%) 1,(1,100.0%) 8,(9,33.3%) 19,(1,100.0%) 13,(1,100.0%) 8,(2,100.0%) 12} * Non-linear torn systems: 3 {6 9,6 9,46 263} Notification: Performance of Backend phase and start with SimCode phase: time 0.002943/4.973, allocations: 0.7348 MB / 1.395 GB, free: 73.18 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.03957/5.013, allocations: 17.23 MB / 1.412 GB, free: 66.12 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/5.013, allocations: 0.8438 kB / 1.412 GB, free: 66.12 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02518/5.038, allocations: 10.02 MB / 1.422 GB, free: 61.09 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01136/5.049, allocations: 1.581 MB / 1.423 GB, free: 59.91 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0745/5.124, allocations: 26.77 MB / 1.45 GB, free: 36.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02242/5.146, allocations: 9.226 MB / 1.459 GB, free: 29.14 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004181/5.151, allocations: 0.4951 MB / 1.459 GB, free: 28.68 MB / 490.7 MB Notification: Performance of SimCode: time 2.565e-06/5.151, allocations: 0 / 1.459 GB, free: 28.68 MB / 490.7 MB Notification: Performance of Templates: time 3.291/8.442, allocations: 1.043 GB / 2.502 GB, free: 68.5 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDFunctions.cpp:417:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = 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_YDFunctions.cpp:417:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp250 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YDCalcHelperMain.o] Error 1