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.877/1.877, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.374e-05/2.395e-05, allocations: 0 / 249.6 MB, free: 15.26 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2576/0.2576, allocations: 44.49 MB / 294.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4143/0.672, allocations: 140.3 MB / 434.4 MB, free: 110.2 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003104/0.6724, allocations: 108.7 kB / 434.5 MB, free: 110.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.494/2.166, allocations: 347.7 MB / 0.7639 GB, free: 40.84 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.981e-06/2.167, allocations: 0 / 0.7639 GB, free: 40.84 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0008327/2.167, allocations: 249.2 kB / 0.7642 GB, free: 40.82 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: 3009 * Number of variables: 3009 Notification: Performance of Generate backend data structure: time 0.04192/2.209, allocations: 10.27 MB / 0.7742 GB, free: 37.58 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.439e-05/2.209, allocations: 6.281 kB / 0.7742 GB, free: 37.58 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03986/2.249, allocations: 5.371 MB / 0.7794 GB, free: 36.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02869/2.278, allocations: 9.381 MB / 0.7886 GB, free: 35.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008337/2.279, allocations: 352.8 kB / 0.7889 GB, free: 35.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004884/2.284, allocations: 0.6174 MB / 0.7895 GB, free: 35.83 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03744/2.321, allocations: 14.46 MB / 0.8037 GB, free: 35.79 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05054/2.372, allocations: 16.03 MB / 0.8193 GB, free: 32.93 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006038/2.373, allocations: 22.62 kB / 0.8193 GB, free: 32.92 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004381/2.377, allocations: 7.562 kB / 0.8193 GB, free: 32.92 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009966/2.378, allocations: 0.7364 MB / 0.8201 GB, free: 32.77 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1337/2.512, allocations: 57.32 MB / 0.876 GB, free: 7.27 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3217/2.833, allocations: 23.61 MB / 0.8991 GB, free: 38.43 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0144/2.848, allocations: 7.016 MB / 0.9059 GB, free: 38.35 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05231/2.9, allocations: 22.24 MB / 0.9277 GB, free: 37.29 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.212e-05/2.9, allocations: 97.39 kB / 0.9278 GB, free: 37.24 MB / 442.7 MB Notification: Performance of pre-optimization done (n=659): time 1.321e-05/2.9, allocations: 2.078 kB / 0.9278 GB, free: 37.24 MB / 442.7 MB Notification: Performance of matching and sorting (n=684): time 0.07792/2.978, allocations: 27.82 MB / 0.9549 GB, free: 33.91 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.463e-05/2.978, allocations: 138.5 kB / 0.9551 GB, free: 33.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006926/2.985, allocations: 3.008 MB / 0.958 GB, free: 33.56 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001367/2.987, allocations: 29.02 kB / 0.958 GB, free: 33.53 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002712/2.989, allocations: 4.06 MB / 0.962 GB, free: 31.04 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00324/2.993, allocations: 2.191 MB / 0.9641 GB, free: 29.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001191/2.994, allocations: 2.219 kB / 0.9641 GB, free: 29.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0007808/2.995, allocations: 0.5961 MB / 0.9647 GB, free: 28.87 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009123/3.004, allocations: 4.464 MB / 0.9691 GB, free: 26.9 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01078/3.015, allocations: 5.986 MB / 0.9749 GB, free: 23.16 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01747/3.032, allocations: 6.625 MB / 0.9814 GB, free: 20.6 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.498e-05/3.032, allocations: 14.06 kB / 0.9814 GB, free: 20.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=928) (initialization): time 0.03719/3.07, allocations: 14.21 MB / 0.9953 GB, free: 15.16 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.46e-05/3.07, allocations: 25.78 kB / 0.9953 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.007e-05/3.07, allocations: 46.62 kB / 0.9953 GB, free: 15.16 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01161/3.081, allocations: 3.978 MB / 0.9992 GB, free: 13.98 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007712/3.089, allocations: 1.341 MB / 1.001 GB, free: 13.94 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02339/3.113, allocations: 16.68 MB / 1.017 GB, free: 2.848 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007023/3.12, allocations: 264 kB / 1.017 GB, free: 2.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001899/3.122, allocations: 293.3 kB / 1.017 GB, free: 2.785 MB / 442.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: imcQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] terminalBoxQS.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: currentQuasiRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentQuasiRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: imcQS.rotorCage.multiStar.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[2].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] imcQS.rotorCage.multiStar.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] 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 (664): * Single equations (assignments): 625 * 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.003055/3.125, allocations: 374.9 kB / 1.018 GB, free: 2.625 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002008/3.127, allocations: 0.496 MB / 1.018 GB, free: 2.363 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03804/3.165, allocations: 13.89 MB / 1.032 GB, free: 10.36 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002725/3.165, allocations: 151.3 kB / 1.032 GB, free: 10.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.551e-05/3.165, allocations: 8 kB / 1.032 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001309/3.165, allocations: 28.78 kB / 1.032 GB, free: 10.22 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3729/3.538, allocations: 25.95 MB / 1.057 GB, free: 64.05 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.835e-05/3.538, allocations: 7.062 kB / 1.057 GB, free: 64.05 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005424/3.544, allocations: 0.896 MB / 1.058 GB, free: 64.05 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01137/3.555, allocations: 3.85 MB / 1.062 GB, free: 63.95 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001471/3.557, allocations: 74.12 kB / 1.062 GB, free: 63.95 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02521/3.582, allocations: 20.49 MB / 1.082 GB, free: 53.95 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.384e-06/3.582, allocations: 4.531 kB / 1.082 GB, free: 53.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04637/3.628, allocations: 20.82 MB / 1.102 GB, free: 52.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005345/3.634, allocations: 1.633 MB / 1.104 GB, free: 52.46 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002455/3.636, allocations: 12 kB / 1.104 GB, free: 52.46 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005711/3.642, allocations: 245.2 kB / 1.104 GB, free: 52.46 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002223/3.644, allocations: 0.5087 MB / 1.105 GB, free: 52.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001517/3.646, allocations: 191.2 kB / 1.105 GB, free: 52.45 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005579/3.651, allocations: 2.218 MB / 1.107 GB, free: 52.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.086e-06/3.652, allocations: 0 / 1.107 GB, free: 52.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01059/3.662, allocations: 1.743 MB / 1.109 GB, free: 52.3 MB / 458.7 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 (443): * Single equations (assignments): 401 * 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.002065/3.664, allocations: 460.8 kB / 1.109 GB, free: 52.2 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02412/3.688, allocations: 11.49 MB / 1.12 GB, free: 51.16 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 9.485e-06/3.688, allocations: 3.656 kB / 1.12 GB, free: 51.16 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01418/3.703, allocations: 6.509 MB / 1.127 GB, free: 48.12 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007065/3.71, allocations: 0.8833 MB / 1.128 GB, free: 47.92 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.052/3.762, allocations: 19.2 MB / 1.146 GB, free: 40.28 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01545/3.777, allocations: 6.904 MB / 1.153 GB, free: 37.84 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003132/3.78, allocations: 419 kB / 1.154 GB, free: 37.8 MB / 458.7 MB Notification: Performance of SimCode: time 2.286e-06/3.781, allocations: 0 / 1.154 GB, free: 37.8 MB / 458.7 MB Notification: Performance of Templates: time 2.92/6.701, allocations: 0.8905 GB / 2.044 GB, free: 84.36 MB / 490.7 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=5 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"." -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' tmp235 = 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' tmp235 = 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