Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics") Notification: Performance of loadModel(Modelica): time 1.926/1.926, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.499e-05/2.517e-05, allocations: 4 kB / 249.6 MB, free: 15.26 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2517/0.2518, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1855/0.4374, allocations: 120.6 MB / 414.7 MB, free: 9.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003333/0.4378, allocations: 107.9 kB / 414.8 MB, free: 9.234 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.602/2.04, allocations: 335.7 MB / 0.733 GB, free: 43.66 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.022e-06/2.04, allocations: 0 / 0.733 GB, free: 43.66 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0006491/2.04, allocations: 215 kB / 0.7332 GB, free: 43.64 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: 2677 * Number of variables: 2677 Notification: Performance of Generate backend data structure: time 0.0378/2.078, allocations: 9.035 MB / 0.742 GB, free: 40.94 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.479e-05/2.078, allocations: 11.09 kB / 0.742 GB, free: 40.94 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03532/2.114, allocations: 4.847 MB / 0.7467 GB, free: 40.41 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02327/2.137, allocations: 7.875 MB / 0.7544 GB, free: 39.5 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008028/2.138, allocations: 313.6 kB / 0.7547 GB, free: 39.5 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004352/2.142, allocations: 0.5295 MB / 0.7552 GB, free: 39.5 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03376/2.176, allocations: 13.32 MB / 0.7682 GB, free: 39.45 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04637/2.222, allocations: 15.03 MB / 0.7829 GB, free: 38.37 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005237/2.223, allocations: 11.47 kB / 0.7829 GB, free: 38.37 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003955/2.227, allocations: 7.312 kB / 0.7829 GB, free: 38.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009872/2.228, allocations: 0.6929 MB / 0.7836 GB, free: 38.35 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1198/2.348, allocations: 53 MB / 0.8354 GB, free: 3.023 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04335/2.391, allocations: 19.72 MB / 0.8546 GB, free: 2.148 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2961/2.687, allocations: 7.11 MB / 0.8616 GB, free: 59.29 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0548/2.742, allocations: 23.1 MB / 0.8841 GB, free: 58.56 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.757e-05/2.742, allocations: 89.11 kB / 0.8842 GB, free: 58.52 MB / 426.7 MB Notification: Performance of pre-optimization done (n=681): time 1.414e-05/2.742, allocations: 0 / 0.8842 GB, free: 58.52 MB / 426.7 MB Notification: Performance of matching and sorting (n=687): time 0.06736/2.81, allocations: 25.85 MB / 0.9095 GB, free: 56.75 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/2.81, allocations: 109.2 kB / 0.9096 GB, free: 56.68 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004235/2.814, allocations: 2.127 MB / 0.9117 GB, free: 56.07 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001316/2.815, allocations: 27.08 kB / 0.9117 GB, free: 56.04 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002005/2.817, allocations: 3.32 MB / 0.9149 GB, free: 53.5 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003106/2.821, allocations: 2.181 MB / 0.917 GB, free: 51.77 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001365/2.822, allocations: 0 / 0.917 GB, free: 51.77 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0008441/2.823, allocations: 0.5957 MB / 0.9176 GB, free: 51.33 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009049/2.832, allocations: 4.671 MB / 0.9222 GB, free: 49.3 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01056/2.842, allocations: 5.959 MB / 0.928 GB, free: 45.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01694/2.859, allocations: 6.731 MB / 0.9346 GB, free: 43.21 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.984e-05/2.86, allocations: 9.656 kB / 0.9346 GB, free: 43.21 MB / 426.7 MB Notification: Performance of matching and sorting (n=880) (initialization): time 0.03661/2.896, allocations: 14.23 MB / 0.9485 GB, free: 37.71 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.854e-05/2.896, allocations: 20.38 kB / 0.9485 GB, free: 37.71 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.069e-05/2.896, allocations: 42.98 kB / 0.9486 GB, free: 37.71 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00976/2.906, allocations: 3.848 MB / 0.9523 GB, free: 36.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006338/2.913, allocations: 1.159 MB / 0.9534 GB, free: 36.55 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01452/2.927, allocations: 10.94 MB / 0.9641 GB, free: 29.41 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005735/2.933, allocations: 270.9 kB / 0.9644 GB, free: 29.25 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00175/2.935, allocations: 278 kB / 0.9646 GB, free: 29 MB / 426.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: imcQS.stator.resistor.resistor[3].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[1].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[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] imcQS.stator.resistor.resistor[2].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[3].i.re:VARIABLE(unit = "A" ) "Real 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[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[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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[1].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.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: iSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] iSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] iSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] iSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] iSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] iSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pSensorQS.powerSensor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] pSensorQS.powerSensor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] pSensorQS.powerSensor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] pSensorQS.powerSensor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] pSensorQS.powerSensor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] pSensorQS.powerSensor[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: 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[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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.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] 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[3].i.re:VARIABLE(flow=true unit = "A" ) "Real 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[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary 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] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 161 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (598): * Single equations (assignments): 530 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of prepare postOptimizeDAE: time 0.002298/2.937, allocations: 363.3 kB / 0.965 GB, free: 28.79 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001438/2.938, allocations: 415.9 kB / 0.9654 GB, free: 28.38 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03281/2.971, allocations: 13.85 MB / 0.9789 GB, free: 16.75 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02903/3, allocations: 12.61 MB / 0.9912 GB, free: 5.859 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-05/3, allocations: 3.625 kB / 0.9912 GB, free: 5.859 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001403/3.001, allocations: 33.34 kB / 0.9913 GB, free: 5.855 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3529/3.354, allocations: 26.15 MB / 1.017 GB, free: 68.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.073e-05/3.354, allocations: 3.594 kB / 1.017 GB, free: 68.72 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005565/3.359, allocations: 0.8472 MB / 1.018 GB, free: 68.72 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01036/3.37, allocations: 3.756 MB / 1.021 GB, free: 68.65 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001453/3.371, allocations: 70.17 kB / 1.021 GB, free: 68.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.015/3.386, allocations: 10.82 MB / 1.032 GB, free: 65.52 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.162e-06/3.386, allocations: 0 / 1.032 GB, free: 65.52 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04572/3.432, allocations: 20.62 MB / 1.052 GB, free: 65.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004677/3.437, allocations: 1.559 MB / 1.054 GB, free: 64.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001937/3.439, allocations: 3.438 kB / 1.054 GB, free: 64.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004622/3.443, allocations: 227.1 kB / 1.054 GB, free: 64.92 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002217/3.446, allocations: 0.5059 MB / 1.054 GB, free: 64.91 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001499/3.447, allocations: 182.8 kB / 1.054 GB, free: 64.91 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003705/3.451, allocations: 1.572 MB / 1.056 GB, free: 64.77 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.367e-06/3.451, allocations: 0 / 1.056 GB, free: 64.77 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.009573/3.46, allocations: 1.473 MB / 1.057 GB, free: 64.77 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (imcQS.rotorCage.port_p.reference.gamma,speed.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (434): * Single equations (assignments): 366 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 62 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,6 9,12 76} Notification: Performance of Backend phase and start with SimCode phase: time 0.002282/3.463, allocations: 406.6 kB / 1.058 GB, free: 64.68 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.02498/3.488, allocations: 11.33 MB / 1.069 GB, free: 64.35 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.768e-06/3.488, allocations: 3.75 kB / 1.069 GB, free: 64.35 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01374/3.502, allocations: 5.876 MB / 1.075 GB, free: 64.15 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005727/3.507, allocations: 0.6426 MB / 1.075 GB, free: 64.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05044/3.558, allocations: 17.59 MB / 1.092 GB, free: 57.76 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01408/3.572, allocations: 6.333 MB / 1.099 GB, free: 55.42 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002855/3.575, allocations: 352.3 kB / 1.099 GB, free: 55.38 MB / 442.7 MB Notification: Performance of SimCode: time 2.044e-06/3.575, allocations: 0 / 1.099 GB, free: 55.38 MB / 442.7 MB Notification: Performance of Templates: time 1.777/5.352, allocations: 0.5753 GB / 1.674 GB, free: 99.8 MB / 474.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Characteristics.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_CharacteristicsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp326 = 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_CharacteristicsFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp326 = 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_CharacteristicsCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_CharacteristicsCalcHelperMain.o] Error 1