Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,tolerance=1e-06,outputFormat="empty",numberOfIntervals=300000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize") Notification: Performance of loadModel(Modelica): time 1.938/1.938, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.37e-05/3.378e-05, allocations: 0 / 255.4 MB, free: 3.16 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08036/0.08042, allocations: 44.5 MB / 299.9 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4107/0.4911, allocations: 141 MB / 440.9 MB, free: 7.121 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.4915, allocations: 104.5 kB / 441 MB, free: 7.062 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.518/2.01, allocations: 351.8 MB / 0.7742 GB, free: 31.46 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.077e-06/2.01, allocations: 0 / 0.7742 GB, free: 31.46 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0008329/2.011, allocations: 247.8 kB / 0.7744 GB, free: 31.22 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.04272/2.053, allocations: 10.28 MB / 0.7844 GB, free: 20.86 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.721e-05/2.053, allocations: 8.031 kB / 0.7844 GB, free: 20.85 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0409/2.094, allocations: 5.375 MB / 0.7897 GB, free: 15.45 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03254/2.127, allocations: 9.381 MB / 0.7989 GB, free: 6.012 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001431/2.128, allocations: 0.7944 MB / 0.7996 GB, free: 5.215 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005452/2.134, allocations: 1.043 MB / 0.8006 GB, free: 4.172 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05977/2.194, allocations: 17.59 MB / 0.8178 GB, free: 2.246 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005241/2.194, allocations: 19.84 kB / 0.8178 GB, free: 2.227 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004638/2.199, allocations: 459.9 kB / 0.8183 GB, free: 1.777 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001242/2.2, allocations: 0.7288 MB / 0.819 GB, free: 1.043 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.7306/2.931, allocations: 16.29 MB / 0.8349 GB, free: 45.86 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1255/3.056, allocations: 58.33 MB / 0.8919 GB, free: 30.39 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02729/3.084, allocations: 23.24 MB / 0.9146 GB, free: 12.48 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01409/3.098, allocations: 6.944 MB / 0.9213 GB, free: 9.527 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05426/3.152, allocations: 22 MB / 0.9428 GB, free: 14.87 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001155/3.152, allocations: 97.83 kB / 0.9429 GB, free: 14.79 MB / 442.8 MB Notification: Performance of pre-optimization done (n=662): time 1.168e-05/3.152, allocations: 4.688 kB / 0.9429 GB, free: 14.79 MB / 442.8 MB Notification: Performance of matching and sorting (n=687): time 0.09087/3.243, allocations: 26.07 MB / 0.9684 GB, free: 14.15 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001305/3.243, allocations: 142.1 kB / 0.9685 GB, free: 13.99 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0101/3.253, allocations: 3.566 MB / 0.972 GB, free: 10.77 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001478/3.255, allocations: 128.3 kB / 0.9721 GB, free: 10.64 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004353/3.259, allocations: 4.008 MB / 0.976 GB, free: 7.035 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.004404/3.264, allocations: 2.287 MB / 0.9783 GB, free: 4.973 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001609/3.265, allocations: 128 kB / 0.9784 GB, free: 4.848 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001004/3.267, allocations: 0.6023 MB / 0.979 GB, free: 4.324 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01167/3.278, allocations: 4.436 MB / 0.9833 GB, free: 332 kB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3332/3.611, allocations: 6.502 MB / 0.9897 GB, free: 72.96 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01333/3.625, allocations: 5.467 MB / 0.995 GB, free: 72.85 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000113/3.625, allocations: 12.75 kB / 0.995 GB, free: 72.85 MB / 458.8 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.03378/3.659, allocations: 13.23 MB / 1.008 GB, free: 72.57 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.338e-05/3.659, allocations: 25.53 kB / 1.008 GB, free: 72.57 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.471e-05/3.659, allocations: 41.72 kB / 1.008 GB, free: 72.57 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01153/3.671, allocations: 3.977 MB / 1.012 GB, free: 72.48 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007884/3.679, allocations: 1.296 MB / 1.013 GB, free: 72.48 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02294/3.702, allocations: 16.72 MB / 1.029 GB, free: 66.03 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006949/3.708, allocations: 354 kB / 1.03 GB, free: 66.03 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001941/3.71, allocations: 294.9 kB / 1.03 GB, free: 66.03 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 199 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (667): * Single equations (assignments): 628 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * 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: 3 {(1,100.0%) 1,(8,56.2%) 27,(1,100.0%) 1} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.003155/3.714, allocations: 481.1 kB / 1.031 GB, free: 65.92 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002389/3.716, allocations: 0.5274 MB / 1.031 GB, free: 65.92 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03244/3.749, allocations: 13.15 MB / 1.044 GB, free: 65.32 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002209/3.749, allocations: 149.6 kB / 1.044 GB, free: 65.32 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-05/3.749, allocations: 7.875 kB / 1.044 GB, free: 65.32 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001242/3.749, allocations: 28.88 kB / 1.044 GB, free: 65.32 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06193/3.811, allocations: 26.51 MB / 1.07 GB, free: 54.86 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001116/3.811, allocations: 3.844 kB / 1.07 GB, free: 54.86 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005869/3.817, allocations: 0.8538 MB / 1.071 GB, free: 54.84 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01111/3.828, allocations: 3.926 MB / 1.075 GB, free: 53.66 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001512/3.83, allocations: 157 kB / 1.075 GB, free: 53.58 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02458/3.854, allocations: 20.66 MB / 1.095 GB, free: 38.36 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.373e-06/3.854, allocations: 3.594 kB / 1.095 GB, free: 38.36 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0434/3.898, allocations: 19.81 MB / 1.114 GB, free: 23.23 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00544/3.903, allocations: 1.638 MB / 1.116 GB, free: 21.75 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002678/3.906, allocations: 112 kB / 1.116 GB, free: 21.64 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00584/3.912, allocations: 307.2 kB / 1.116 GB, free: 21.42 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002265/3.914, allocations: 0.5056 MB / 1.117 GB, free: 21.09 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001795/3.916, allocations: 185.3 kB / 1.117 GB, free: 20.93 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.007166/3.923, allocations: 2.691 MB / 1.12 GB, free: 18.5 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.268e-06/3.923, allocations: 0 / 1.12 GB, free: 18.5 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01193/3.935, allocations: 1.983 MB / 1.122 GB, free: 16.53 MB / 458.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 10 (imcQS.inertiaRotor.phi,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.w,imc.inertiaRotor.phi,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.strayReluctance.Phi.re,imc.stator.strayReluctance.Phi.im,imc.stator.zeroInductor.i0,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 403 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 31 * 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: 6 {(1,100.0%) 1,(2,100.0%) 12,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(1,100.0%) 12} * Non-linear torn systems: 5 {6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.002425/3.938, allocations: 0.6683 MB / 1.122 GB, free: 16.01 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02606/3.964, allocations: 11.4 MB / 1.133 GB, free: 5.742 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/3.964, allocations: 3.906 kB / 1.133 GB, free: 5.738 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01532/3.979, allocations: 6.467 MB / 1.14 GB, free: 15.88 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008779/3.988, allocations: 1.175 MB / 1.141 GB, free: 14.96 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3656/4.354, allocations: 19.36 MB / 1.16 GB, free: 89.11 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01765/4.371, allocations: 6.913 MB / 1.166 GB, free: 88.24 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003297/4.375, allocations: 431 kB / 1.167 GB, free: 88.24 MB / 474.8 MB Notification: Performance of SimCode: time 1.907e-06/4.375, allocations: 0 / 1.167 GB, free: 88.24 MB / 474.8 MB Notification: Performance of Templates: time 2.667/7.042, allocations: 0.8928 GB / 2.06 GB, free: 100.2 MB / 490.8 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.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_InitializeCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeFunctions.cpp:418:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeFunctions.cpp:418:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp234 = 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_InitializeCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_InitializeCalcHelperMain.o] Error 1