Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|inertiaLoadQS.phi|inertiaLoadQS.w|currentController.y.1.|currentController.y.2.|currentController.y.3.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource") Notification: Performance of loadModel(Modelica): time 1.883/1.883, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.12e-05/2.135e-05, allocations: 0 / 249.6 MB, free: 15.26 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2553/0.2554, allocations: 44.5 MB / 294.1 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4245/0.68, allocations: 149.4 MB / 443.6 MB, free: 109.3 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002918/0.6803, allocations: 107.8 kB / 443.7 MB, free: 109.2 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.627/2.307, allocations: 381.4 MB / 0.8058 GB, free: 36.79 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.706e-06/2.307, allocations: 0 / 0.8058 GB, free: 36.79 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0007793/2.308, allocations: 296.1 kB / 0.806 GB, free: 36.73 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: 3509 * Number of variables: 3509 Notification: Performance of Generate backend data structure: time 0.04374/2.352, allocations: 11.02 MB / 0.8168 GB, free: 30.36 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/2.352, allocations: 8.031 kB / 0.8168 GB, free: 30.35 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04359/2.395, allocations: 6.339 MB / 0.823 GB, free: 24.84 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0322/2.428, allocations: 9.433 MB / 0.8322 GB, free: 15.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00162/2.429, allocations: 412 kB / 0.8326 GB, free: 15.03 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007169/2.436, allocations: 0.7107 MB / 0.8333 GB, free: 14.32 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.09909/2.536, allocations: 16.17 MB / 0.8491 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.367/2.903, allocations: 18.31 MB / 0.867 GB, free: 39.84 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009078/2.904, allocations: 21.89 kB / 0.867 GB, free: 39.84 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006402/2.91, allocations: 13.66 kB / 0.867 GB, free: 39.84 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002279/2.912, allocations: 0.8368 MB / 0.8678 GB, free: 39.81 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1618/3.074, allocations: 62.88 MB / 0.9292 GB, free: 28.73 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04937/3.124, allocations: 45.27 MB / 0.9734 GB, free: 20.92 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01548/3.139, allocations: 7.677 MB / 0.9809 GB, free: 17.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05881/3.198, allocations: 24.05 MB / 1.004 GB, free: 6.09 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001162/3.198, allocations: 102.1 kB / 1.005 GB, free: 6 MB / 458.7 MB Notification: Performance of pre-optimization done (n=763): time 1.476e-05/3.198, allocations: 0 / 1.005 GB, free: 6 MB / 458.7 MB Notification: Performance of matching and sorting (n=805): time 0.09762/3.296, allocations: 29.79 MB / 1.034 GB, free: 11.07 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/3.296, allocations: 120.8 kB / 1.034 GB, free: 10.94 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008302/3.304, allocations: 3.077 MB / 1.037 GB, free: 8.199 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001425/3.306, allocations: 25.7 kB / 1.037 GB, free: 8.168 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00466/3.31, allocations: 4.75 MB / 1.041 GB, free: 3.895 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.006142/3.317, allocations: 2.578 MB / 1.044 GB, free: 1.516 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001505/3.318, allocations: 0 / 1.044 GB, free: 1.516 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.001588/3.32, allocations: 0.6768 MB / 1.045 GB, free: 0.9336 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3504/3.67, allocations: 5.482 MB / 1.05 GB, free: 95.26 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01408/3.684, allocations: 7.426 MB / 1.057 GB, free: 92.54 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0195/3.704, allocations: 7.451 MB / 1.064 GB, free: 92.44 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001205/3.704, allocations: 24.75 kB / 1.064 GB, free: 92.44 MB / 474.7 MB Notification: Performance of matching and sorting (n=1150) (initialization): time 0.04597/3.75, allocations: 15.87 MB / 1.08 GB, free: 92.15 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.724e-05/3.75, allocations: 37.56 kB / 1.08 GB, free: 92.15 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001527/3.75, allocations: 72.75 kB / 1.08 GB, free: 92.15 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0104/3.761, allocations: 4.06 MB / 1.084 GB, free: 92.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009605/3.77, allocations: 1.678 MB / 1.086 GB, free: 92.03 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01756/3.788, allocations: 12.38 MB / 1.098 GB, free: 87.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008295/3.796, allocations: 326.4 kB / 1.098 GB, free: 87.56 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002277/3.799, allocations: 394.7 kB / 1.098 GB, free: 87.56 MB / 474.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: starMQS.plugToPins_p.pin_p[1].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[3].i.re:VARIABLE(flow=true unit = "A" ) "Real part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[3].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[2].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.plugToPins_p.pin_p[1].i.im:VARIABLE(flow=true unit = "A" ) "Imaginary part of complex current" type: Real [3] starMQS.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: smrQS.stator.Phi.re:VARIABLE(unit = "Wb" ) "Real part of complex magnetic flux" type: Real smrQS.stator.Phi.im:VARIABLE(unit = "Wb" ) "Imaginary part of complex magnetic flux" type: Real resistorQS.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] resistorQS.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] resistorQS.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smrQS.stator.resistor.resistor[2].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smrQS.stator.resistor.resistor[2].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smrQS.stator.resistor.resistor[3].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] smrQS.stator.resistor.resistor[3].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smrQS.stator.resistor.resistor[1].i.im:VARIABLE(unit = "A" ) "Imaginary part of complex current" type: Real [3] smrQS.stator.resistor.resistor[1].i.re:VARIABLE(unit = "A" ) "Real part of complex current" type: Real [3] currentRMSSensorQS.currentSensor[3].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[1].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[2].y.re:VARIABLE() "Real part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[3].y.im:VARIABLE() "Imaginary part of complex number" type: Real [3] currentRMSSensorQS.currentSensor[1].y.im:VARIABLE() "Imaginary part of complex number" 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[3].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[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[1].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: 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[1].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[3].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] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (852): * Single equations (assignments): 796 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of prepare postOptimizeDAE: time 0.004036/3.803, allocations: 434.8 kB / 1.099 GB, free: 87.44 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002585/3.805, allocations: 0.5504 MB / 1.099 GB, free: 87.44 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04023/3.846, allocations: 14.97 MB / 1.114 GB, free: 85.93 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002768/3.846, allocations: 193.5 kB / 1.114 GB, free: 85.83 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.223e-05/3.846, allocations: 0 / 1.114 GB, free: 85.83 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001336/3.846, allocations: 35.91 kB / 1.114 GB, free: 85.83 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06988/3.916, allocations: 27.92 MB / 1.142 GB, free: 74.09 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.279e-05/3.916, allocations: 7.062 kB / 1.142 GB, free: 74.09 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007309/3.923, allocations: 1.085 MB / 1.143 GB, free: 74.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01047/3.934, allocations: 3.933 MB / 1.146 GB, free: 72.79 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001665/3.936, allocations: 86.38 kB / 1.147 GB, free: 72.76 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01568/3.951, allocations: 12.2 MB / 1.158 GB, free: 61.74 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.394e-06/3.951, allocations: 4 kB / 1.158 GB, free: 61.74 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05006/4.001, allocations: 22.65 MB / 1.181 GB, free: 41.97 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005623/4.007, allocations: 1.754 MB / 1.182 GB, free: 40.39 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002608/4.01, allocations: 9.125 kB / 1.182 GB, free: 40.38 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00597/4.016, allocations: 261.6 kB / 1.183 GB, free: 40.24 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002439/4.018, allocations: 0.5658 MB / 1.183 GB, free: 39.88 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001648/4.02, allocations: 218.5 kB / 1.183 GB, free: 39.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005723/4.026, allocations: 2.237 MB / 1.185 GB, free: 37.7 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.951e-06/4.026, allocations: 1.125 kB / 1.185 GB, free: 37.7 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01176/4.038, allocations: 1.88 MB / 1.187 GB, free: 35.83 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (539): * Single equations (assignments): 483 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 48 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 4 {6 9,6 9,20 119,6 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.002311/4.04, allocations: 0.4962 MB / 1.188 GB, free: 35.49 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.05/4.09, allocations: 12.85 MB / 1.2 GB, free: 24.02 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.555e-05/4.09, allocations: 0.6562 kB / 1.2 GB, free: 24.02 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.02872/4.119, allocations: 6.719 MB / 1.207 GB, free: 18.01 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01267/4.131, allocations: 0.925 MB / 1.208 GB, free: 17.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3577/4.489, allocations: 22.92 MB / 1.23 GB, free: 92.25 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01745/4.507, allocations: 7.74 MB / 1.238 GB, free: 91.31 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003696/4.51, allocations: 481.2 kB / 1.238 GB, free: 91.31 MB / 474.7 MB Notification: Performance of SimCode: time 2.045e-06/4.51, allocations: 0 / 1.238 GB, free: 91.31 MB / 474.7 MB Notification: Performance of Templates: time 2.162/6.673, allocations: 0.7057 GB / 1.944 GB, free: 107.4 MB / 490.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:455:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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.SynchronousMachines.SMR_CurrentSourceFunctions.cpp:455:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp300 = 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.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSourceCalcHelperMain.o] Error 1