Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.968/1.968, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.146e-05/3.16e-05, allocations: 4 kB / 292.2 MB, free: 8.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08935/0.0894, allocations: 50.42 MB / 342.6 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5519/0.6413, allocations: 159.2 MB / 0.49 GB, free: 140 kB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002891/0.6417, allocations: 110.5 kB / 0.4901 GB, free: 76 kB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.321/2.963, allocations: 387.4 MB / 0.8685 GB, free: 16.85 MB / 458.8 MB Notification: Performance of FrontEnd: time 2.658e-06/2.963, allocations: 0 / 0.8685 GB, free: 16.85 MB / 458.8 MB Notification: Performance of Transformations before backend: time 0.001081/2.964, allocations: 278.3 kB / 0.8687 GB, free: 16.85 MB / 458.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.05058/3.014, allocations: 11.15 MB / 0.8796 GB, free: 15.08 MB / 458.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/3.014, allocations: 12.69 kB / 0.8796 GB, free: 15.08 MB / 458.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0357/3.05, allocations: 4.57 MB / 0.8841 GB, free: 14.43 MB / 458.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03133/3.081, allocations: 9.726 MB / 0.8936 GB, free: 13.3 MB / 458.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001158/3.083, allocations: 0.8789 MB / 0.8944 GB, free: 13.27 MB / 458.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005219/3.088, allocations: 1.158 MB / 0.8956 GB, free: 13.26 MB / 458.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05414/3.142, allocations: 18.18 MB / 0.9133 GB, free: 11.86 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005901/3.143, allocations: 20.08 kB / 0.9133 GB, free: 11.85 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004312/3.147, allocations: 0.5004 MB / 0.9138 GB, free: 11.85 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00107/3.148, allocations: 0.8032 MB / 0.9146 GB, free: 11.82 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0425/3.191, allocations: 15.39 MB / 0.9297 GB, free: 11.77 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1313/3.322, allocations: 61.25 MB / 0.9895 GB, free: 2.605 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03693/3.359, allocations: 29.56 MB / 1.018 GB, free: 8.523 MB / 0.4949 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008908/3.368, allocations: 3.998 MB / 1.022 GB, free: 6.957 MB / 0.4949 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02702/3.395, allocations: 9.941 MB / 1.032 GB, free: 1.309 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.079e-05/3.395, allocations: 73.81 kB / 1.032 GB, free: 1.227 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=410): time 8.485e-06/3.395, allocations: 0 / 1.032 GB, free: 1.227 MB / 0.4949 GB Notification: Performance of matching and sorting (n=420): time 0.04769/3.443, allocations: 15.42 MB / 1.047 GB, free: 3.875 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001119/3.443, allocations: 128.2 kB / 1.047 GB, free: 3.734 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.3524/3.795, allocations: 4.507 MB / 1.052 GB, free: 78.46 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0008618/3.796, allocations: 96.05 kB / 1.052 GB, free: 78.43 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.004559/3.801, allocations: 5.107 MB / 1.057 GB, free: 77.29 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.002141/3.803, allocations: 1.448 MB / 1.058 GB, free: 76.38 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000874/3.804, allocations: 130.8 kB / 1.058 GB, free: 76.38 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0006063/3.805, allocations: 0.5706 MB / 1.059 GB, free: 76.06 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007264/3.812, allocations: 2.81 MB / 1.062 GB, free: 76.04 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009373/3.821, allocations: 5.241 MB / 1.067 GB, free: 73.05 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01763/3.839, allocations: 4.015 MB / 1.071 GB, free: 72.98 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002783/3.839, allocations: 26.06 kB / 1.071 GB, free: 72.98 MB / 0.5105 GB Notification: Performance of matching and sorting (n=835) (initialization): time 0.04483/3.884, allocations: 9.107 MB / 1.079 GB, free: 72.56 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.000197/3.884, allocations: 47.22 kB / 1.08 GB, free: 72.55 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002597/3.885, allocations: 81.88 kB / 1.08 GB, free: 72.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008166/3.893, allocations: 1.126 MB / 1.081 GB, free: 72.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01651/3.91, allocations: 1.459 MB / 1.082 GB, free: 72.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02048/3.93, allocations: 12.48 MB / 1.094 GB, free: 67.17 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007579/3.938, allocations: 359.6 kB / 1.095 GB, free: 67.16 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001651/3.939, allocations: 321.6 kB / 1.095 GB, free: 67.16 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 372 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (768): * Single equations (assignments): 759 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1,(10,50.0%) 46} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002346/3.942, allocations: 0.5111 MB / 1.095 GB, free: 67 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001779/3.944, allocations: 0.5344 MB / 1.096 GB, free: 66.71 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01841/3.962, allocations: 7.055 MB / 1.103 GB, free: 66.2 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01043/3.972, allocations: 4.214 MB / 1.107 GB, free: 66.03 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.632e-05/3.973, allocations: 16.88 kB / 1.107 GB, free: 66.03 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000107/3.973, allocations: 21.75 kB / 1.107 GB, free: 66.03 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04642/4.019, allocations: 17.03 MB / 1.124 GB, free: 64.84 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-05/4.019, allocations: 3.469 kB / 1.124 GB, free: 64.84 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004291/4.023, allocations: 0.6891 MB / 1.124 GB, free: 64.84 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004622/4.028, allocations: 1.188 MB / 1.125 GB, free: 64.78 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009028/4.029, allocations: 100.1 kB / 1.126 GB, free: 64.78 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02369/4.053, allocations: 16.02 MB / 1.141 GB, free: 56.75 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.45e-06/4.053, allocations: 9.703 kB / 1.141 GB, free: 56.74 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02322/4.076, allocations: 10.84 MB / 1.152 GB, free: 53.77 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004006/4.08, allocations: 1.14 MB / 1.153 GB, free: 53.06 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00195/4.082, allocations: 83.53 kB / 1.153 GB, free: 53 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004856/4.087, allocations: 226.7 kB / 1.153 GB, free: 52.95 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001272/4.088, allocations: 312.3 kB / 1.154 GB, free: 52.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00049/4.089, allocations: 121.3 kB / 1.154 GB, free: 52.87 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.008533/4.097, allocations: 3.366 MB / 1.157 GB, free: 51.58 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.114e-06/4.097, allocations: 0 / 1.157 GB, free: 51.58 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01141/4.109, allocations: 2.037 MB / 1.159 GB, free: 51.37 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpmQS.inertiaRotor.w,smpmQS.permanentMagnet.port_p.reference.gamma,loadInertiaMQS.phi,smpm.inertiaRotor.w,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 347 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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: 6 {(1,100.0%) 1,(10,50.0%) 46,(1,100.0%) 5,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001985/4.111, allocations: 0.9439 MB / 1.16 GB, free: 51.03 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01637/4.127, allocations: 7.418 MB / 1.167 GB, free: 48.05 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.022e-05/4.127, allocations: 3.031 kB / 1.167 GB, free: 48.05 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.009214/4.137, allocations: 3.977 MB / 1.171 GB, free: 46.13 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008446/4.145, allocations: 1.305 MB / 1.172 GB, free: 45.77 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04834/4.193, allocations: 16.99 MB / 1.189 GB, free: 37.01 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01581/4.209, allocations: 7.337 MB / 1.196 GB, free: 31.52 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002645/4.212, allocations: 462.1 kB / 1.196 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of SimCode: time 2.344e-06/4.212, allocations: 0 / 1.196 GB, free: 31.09 MB / 0.5105 GB Notification: Performance of Templates: time 1.618/5.83, allocations: 475.9 MB / 1.661 GB, free: 97.72 MB / 0.5418 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:661:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp174 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:661:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp174 = 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_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1