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.887/1.887, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.786e-05/2.804e-05, allocations: 4 kB / 255.4 MB, free: 3.152 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08155/0.0816, allocations: 44.5 MB / 299.9 MB, free: 6.59 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4133/0.4949, allocations: 141 MB / 440.8 MB, free: 7.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003257/0.4953, allocations: 99.19 kB / 440.9 MB, free: 7.035 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.527/2.022, allocations: 351.8 MB / 0.7741 GB, free: 31.44 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.686e-06/2.022, allocations: 0 / 0.7741 GB, free: 31.44 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007666/2.023, allocations: 243.8 kB / 0.7744 GB, free: 31.2 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.04164/2.065, allocations: 10.28 MB / 0.7844 GB, free: 20.83 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/2.065, allocations: 15.91 kB / 0.7844 GB, free: 20.82 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04/2.105, allocations: 5.375 MB / 0.7897 GB, free: 15.42 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03249/2.137, allocations: 9.376 MB / 0.7988 GB, free: 5.992 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001439/2.139, allocations: 0.7944 MB / 0.7996 GB, free: 5.195 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005444/2.144, allocations: 1.043 MB / 0.8006 GB, free: 4.152 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0628/2.207, allocations: 17.72 MB / 0.8179 GB, free: 2.09 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006762/2.208, allocations: 15.84 kB / 0.8179 GB, free: 2.074 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004832/2.213, allocations: 452 kB / 0.8184 GB, free: 1.633 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001246/2.214, allocations: 0.7327 MB / 0.8191 GB, free: 0.8945 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.6958/2.91, allocations: 16.42 MB / 0.8351 GB, free: 45.84 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1748/3.085, allocations: 58.33 MB / 0.8921 GB, free: 30.19 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02818/3.113, allocations: 23.32 MB / 0.9149 GB, free: 12.25 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01398/3.127, allocations: 6.939 MB / 0.9216 GB, free: 9.297 MB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0516/3.179, allocations: 21.92 MB / 0.943 GB, free: 14.34 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001087/3.179, allocations: 98.64 kB / 0.9431 GB, free: 14.26 MB / 442.8 MB Notification: Performance of pre-optimization done (n=662): time 1.164e-05/3.179, allocations: 0 / 0.9431 GB, free: 14.26 MB / 442.8 MB Notification: Performance of matching and sorting (n=687): time 0.0699/3.249, allocations: 25.01 MB / 0.9675 GB, free: 10.62 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/3.249, allocations: 147.2 kB / 0.9677 GB, free: 10.46 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009918/3.259, allocations: 3.568 MB / 0.9712 GB, free: 7.234 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.001404/3.26, allocations: 121.7 kB / 0.9713 GB, free: 7.109 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004188/3.264, allocations: 4.012 MB / 0.9752 GB, free: 3.504 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.003955/3.268, allocations: 2.283 MB / 0.9774 GB, free: 1.441 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001477/3.27, allocations: 128 kB / 0.9776 GB, free: 1.316 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.001026/3.271, allocations: 0.6078 MB / 0.9782 GB, free: 0.7891 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.03274/3.304, allocations: 5.664 MB / 0.9837 GB, free: 0 / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3433/3.647, allocations: 6.002 MB / 0.9895 GB, free: 73.11 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01289/3.66, allocations: 5.471 MB / 0.9949 GB, free: 73 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001032/3.66, allocations: 15.16 kB / 0.9949 GB, free: 73 MB / 458.8 MB Notification: Performance of matching and sorting (n=931) (initialization): time 0.03455/3.695, allocations: 13.35 MB / 1.008 GB, free: 72.71 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 7.634e-05/3.695, allocations: 27.09 kB / 1.008 GB, free: 72.71 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001053/3.695, allocations: 49.28 kB / 1.008 GB, free: 72.71 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0122/3.707, allocations: 3.974 MB / 1.012 GB, free: 72.62 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007424/3.715, allocations: 1.303 MB / 1.013 GB, free: 72.62 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02468/3.739, allocations: 16.73 MB / 1.029 GB, free: 66.17 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007273/3.747, allocations: 355.7 kB / 1.03 GB, free: 66.17 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001838/3.749, allocations: 294.5 kB / 1.03 GB, free: 66.17 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.002495/3.751, allocations: 476.8 kB / 1.031 GB, free: 66.07 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00196/3.753, allocations: 0.5308 MB / 1.031 GB, free: 66.07 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03298/3.786, allocations: 13.14 MB / 1.044 GB, free: 65.46 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000211/3.786, allocations: 154.3 kB / 1.044 GB, free: 65.46 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.014e-05/3.786, allocations: 6.344 kB / 1.044 GB, free: 65.46 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001273/3.787, allocations: 30.17 kB / 1.044 GB, free: 65.46 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06311/3.85, allocations: 26.51 MB / 1.07 GB, free: 54.02 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001013/3.85, allocations: 3.344 kB / 1.07 GB, free: 54.02 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005886/3.856, allocations: 0.8616 MB / 1.071 GB, free: 53.99 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01149/3.867, allocations: 3.93 MB / 1.075 GB, free: 52.81 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001551/3.869, allocations: 154.4 kB / 1.075 GB, free: 52.73 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02502/3.894, allocations: 20.67 MB / 1.095 GB, free: 37.5 MB / 458.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.954e-06/3.894, allocations: 4.969 kB / 1.095 GB, free: 37.5 MB / 458.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04118/3.935, allocations: 19.8 MB / 1.114 GB, free: 21.31 MB / 458.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005254/3.941, allocations: 1.649 MB / 1.116 GB, free: 19.82 MB / 458.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002492/3.943, allocations: 111.2 kB / 1.116 GB, free: 19.71 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005643/3.949, allocations: 310.2 kB / 1.116 GB, free: 19.48 MB / 458.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002124/3.951, allocations: 0.5014 MB / 1.117 GB, free: 19.16 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001458/3.952, allocations: 188 kB / 1.117 GB, free: 19 MB / 458.8 MB Notification: Performance of sorting global known variables: time 0.006894/3.959, allocations: 2.689 MB / 1.12 GB, free: 16.57 MB / 458.8 MB Notification: Performance of sort global known variables: time 1.512e-06/3.959, allocations: 4 kB / 1.12 GB, free: 16.56 MB / 458.8 MB Notification: Performance of remove unused functions: time 0.01117/3.971, allocations: 1.979 MB / 1.122 GB, free: 14.59 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.00226/3.973, allocations: 0.6644 MB / 1.122 GB, free: 14.08 MB / 458.8 MB Notification: Performance of simCode: created initialization part: time 0.02565/3.999, allocations: 11.54 MB / 1.134 GB, free: 3.684 MB / 458.8 MB Notification: Performance of simCode: created event and clocks part: time 1.234e-05/3.999, allocations: 4 kB / 1.134 GB, free: 3.68 MB / 458.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0244/4.023, allocations: 7.051 MB / 1.14 GB, free: 15.04 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00855/4.032, allocations: 1.17 MB / 1.142 GB, free: 14.14 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3677/4.399, allocations: 19.85 MB / 1.161 GB, free: 85.7 MB / 474.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01694/4.416, allocations: 6.913 MB / 1.168 GB, free: 84.83 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002925/4.419, allocations: 431.6 kB / 1.168 GB, free: 84.83 MB / 474.8 MB Notification: Performance of SimCode: time 2.023e-06/4.419, allocations: 0 / 1.168 GB, free: 84.83 MB / 474.8 MB Notification: Performance of Templates: time 2.77/7.189, allocations: 0.8937 GB / 2.062 GB, free: 115.5 MB / 0.4949 GB 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@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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