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.849/1.849, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.055e-05/3.071e-05, allocations: 0 / 255.4 MB, free: 3.16 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08149/0.08154, allocations: 44.5 MB / 299.9 MB, free: 6.598 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4295/0.511, allocations: 150.1 MB / 450 MB, free: 14.08 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003345/0.5114, allocations: 109.8 kB / 450.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.928/2.439, allocations: 385.9 MB / 0.8164 GB, free: 18.78 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.411e-06/2.439, allocations: 0 / 0.8164 GB, free: 18.78 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0009405/2.44, allocations: 296 kB / 0.8167 GB, free: 18.75 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.04588/2.486, allocations: 11.03 MB / 0.8274 GB, free: 15.22 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/2.486, allocations: 11.41 kB / 0.8274 GB, free: 15.22 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04635/2.532, allocations: 6.335 MB / 0.8336 GB, free: 14.52 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02941/2.562, allocations: 9.445 MB / 0.8429 GB, free: 13.33 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001316/2.563, allocations: 0.9203 MB / 0.8438 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005439/2.569, allocations: 1.203 MB / 0.8449 GB, free: 13.29 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05896/2.628, allocations: 20.16 MB / 0.8646 GB, free: 11.86 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006377/2.628, allocations: 24.56 kB / 0.8646 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004911/2.633, allocations: 0.5122 MB / 0.8651 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001121/2.634, allocations: 0.8405 MB / 0.866 GB, free: 11.82 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04763/2.682, allocations: 18.22 MB / 0.8838 GB, free: 11.77 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2126/2.895, allocations: 64.62 MB / 0.9469 GB, free: 8.145 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.355/3.25, allocations: 45.84 MB / 0.9916 GB, free: 26.21 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01819/3.268, allocations: 7.71 MB / 0.9992 GB, free: 26.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05428/3.322, allocations: 23.5 MB / 1.022 GB, free: 25.19 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.239e-05/3.322, allocations: 100.5 kB / 1.022 GB, free: 25.14 MB / 458.7 MB Notification: Performance of pre-optimization done (n=759): time 1.313e-05/3.322, allocations: 0 / 1.022 GB, free: 25.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=799): time 0.0642/3.387, allocations: 26.67 MB / 1.048 GB, free: 22.98 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.871e-05/3.387, allocations: 120.5 kB / 1.048 GB, free: 22.91 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007042/3.394, allocations: 3.559 MB / 1.052 GB, free: 22.35 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001398/3.395, allocations: 140.7 kB / 1.052 GB, free: 22.23 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002706/3.398, allocations: 4.709 MB / 1.057 GB, free: 18.59 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003405/3.401, allocations: 2.654 MB / 1.059 GB, free: 16.53 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001009/3.403, allocations: 163 kB / 1.059 GB, free: 16.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000724/3.403, allocations: 0.6703 MB / 1.06 GB, free: 15.93 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0104/3.414, allocations: 5.02 MB / 1.065 GB, free: 13.86 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01261/3.426, allocations: 7.376 MB / 1.072 GB, free: 8.898 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01308/3.439, allocations: 6.363 MB / 1.078 GB, free: 6.371 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.576e-05/3.44, allocations: 23.59 kB / 1.078 GB, free: 6.371 MB / 458.7 MB Notification: Performance of matching and sorting (n=1144) (initialization): time 0.03563/3.475, allocations: 15.02 MB / 1.093 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.828e-05/3.475, allocations: 37.41 kB / 1.093 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001218/3.475, allocations: 72.88 kB / 1.093 GB, free: 0.6055 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0229/3.498, allocations: 4.129 MB / 1.097 GB, free: 15.47 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01983/3.518, allocations: 1.624 MB / 1.099 GB, free: 15.42 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03987/3.558, allocations: 12.19 MB / 1.111 GB, free: 7.535 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01065/3.569, allocations: 442.2 kB / 1.111 GB, free: 7.391 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002211/3.571, allocations: 384.7 kB / 1.111 GB, free: 7.32 MB / 474.7 MB 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 (846): * Single equations (assignments): 790 * 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.002751/3.574, allocations: 0.5729 MB / 1.112 GB, free: 6.941 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002136/3.576, allocations: 0.5841 MB / 1.113 GB, free: 6.629 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05802/3.634, allocations: 15.29 MB / 1.127 GB, free: 13.71 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.00033/3.635, allocations: 195.6 kB / 1.128 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.063e-05/3.635, allocations: 0 / 1.128 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001271/3.635, allocations: 35.06 kB / 1.128 GB, free: 13.54 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4446/4.079, allocations: 29.54 MB / 1.157 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-05/4.079, allocations: 4.062 kB / 1.157 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007082/4.087, allocations: 1.034 MB / 1.158 GB, free: 89.15 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0109/4.097, allocations: 3.989 MB / 1.161 GB, free: 89.04 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001593/4.099, allocations: 163 kB / 1.162 GB, free: 89.04 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01598/4.115, allocations: 12.03 MB / 1.173 GB, free: 84.47 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.623e-06/4.115, allocations: 4.5 kB / 1.173 GB, free: 84.47 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04523/4.16, allocations: 21.44 MB / 1.194 GB, free: 83.35 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.005629/4.166, allocations: 1.732 MB / 1.196 GB, free: 83.25 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002427/4.169, allocations: 114.9 kB / 1.196 GB, free: 83.25 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006052/4.175, allocations: 326.1 kB / 1.196 GB, free: 83.25 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00233/4.177, allocations: 0.5686 MB / 1.197 GB, free: 83.24 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009799/4.178, allocations: 217.9 kB / 1.197 GB, free: 83.24 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.005948/4.184, allocations: 2.644 MB / 1.2 GB, free: 83.04 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.49e-07/4.184, allocations: 0 / 1.2 GB, free: 83.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01158/4.196, allocations: 2.144 MB / 1.202 GB, free: 83.04 MB / 490.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 (535): * Single equations (assignments): 479 * 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.002354/4.198, allocations: 0.7092 MB / 1.203 GB, free: 82.91 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02806/4.226, allocations: 12.68 MB / 1.215 GB, free: 82.26 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 9.277e-06/4.226, allocations: 7.219 kB / 1.215 GB, free: 82.26 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01535/4.241, allocations: 6.603 MB / 1.221 GB, free: 81.62 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008265/4.25, allocations: 1.165 MB / 1.222 GB, free: 81.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05446/4.304, allocations: 21.47 MB / 1.243 GB, free: 73.05 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0156/4.32, allocations: 7.74 MB / 1.251 GB, free: 69.58 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003182/4.323, allocations: 494.7 kB / 1.251 GB, free: 69.13 MB / 490.7 MB Notification: Performance of SimCode: time 2.153e-06/4.323, allocations: 4 kB / 1.251 GB, free: 69.12 MB / 490.7 MB Notification: Performance of Templates: time 2.195/6.518, allocations: 0.7062 GB / 1.958 GB, free: 71.8 MB / 0.5105 GB 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=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.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