Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|Itr|Iqs|loadInertiaM.phi|loadInertiaM.w|loadInertiaMQS.phi|loadInertiaMQS.w|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpm.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains") Notification: Performance of loadModel(Modelica): time 1.851/1.851, allocations: 194.9 MB / 208.4 MB, free: 3.16 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.913e-05/2.93e-05, allocations: 4 kB / 255.4 MB, free: 3.141 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0803/0.08035, allocations: 44.5 MB / 299.9 MB, free: 6.582 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4606/0.541, allocations: 151.8 MB / 451.7 MB, free: 12.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002953/0.5413, allocations: 105.8 kB / 451.8 MB, free: 12.43 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.036/2.577, allocations: 389.6 MB / 0.8217 GB, free: 26.32 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.124e-06/2.577, allocations: 0 / 0.8217 GB, free: 26.32 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009584/2.578, allocations: 285.9 kB / 0.822 GB, free: 26.29 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: 3386 * Number of variables: 3386 Notification: Performance of Generate backend data structure: time 0.0487/2.627, allocations: 11.23 MB / 0.8329 GB, free: 22.76 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/2.627, allocations: 11.03 kB / 0.833 GB, free: 22.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04075/2.668, allocations: 5.198 MB / 0.838 GB, free: 22.07 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02876/2.696, allocations: 9.633 MB / 0.8474 GB, free: 20.87 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00125/2.698, allocations: 0.8967 MB / 0.8483 GB, free: 20.84 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005326/2.703, allocations: 1.176 MB / 0.8495 GB, free: 20.84 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05907/2.762, allocations: 19.18 MB / 0.8682 GB, free: 19.4 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006046/2.763, allocations: 27.12 kB / 0.8682 GB, free: 19.39 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004659/2.767, allocations: 0.5032 MB / 0.8687 GB, free: 19.39 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00103/2.768, allocations: 0.7704 MB / 0.8695 GB, free: 19.36 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04451/2.813, allocations: 16.9 MB / 0.886 GB, free: 19.31 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1502/2.963, allocations: 63.23 MB / 0.9477 GB, free: 2.895 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3478/3.311, allocations: 22.65 MB / 0.9698 GB, free: 53.2 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01715/3.328, allocations: 7.296 MB / 0.977 GB, free: 53.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05666/3.385, allocations: 22.81 MB / 0.9992 GB, free: 52.06 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.488e-05/3.385, allocations: 108.3 kB / 0.9993 GB, free: 52.01 MB / 458.7 MB Notification: Performance of pre-optimization done (n=746): time 1.331e-05/3.385, allocations: 0 / 0.9993 GB, free: 52.01 MB / 458.7 MB Notification: Performance of matching and sorting (n=756): time 0.067/3.452, allocations: 25.88 MB / 1.025 GB, free: 48.39 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.148e-05/3.452, allocations: 143.4 kB / 1.025 GB, free: 48.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009881/3.462, allocations: 3.869 MB / 1.029 GB, free: 47.96 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001481/3.464, allocations: 129.7 kB / 1.029 GB, free: 47.93 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003178/3.467, allocations: 4.523 MB / 1.033 GB, free: 45.48 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003657/3.471, allocations: 2.514 MB / 1.036 GB, free: 43.86 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001612/3.472, allocations: 150.3 kB / 1.036 GB, free: 43.86 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008908/3.473, allocations: 0.6335 MB / 1.036 GB, free: 43.53 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01087/3.484, allocations: 4.719 MB / 1.041 GB, free: 42.37 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01259/3.497, allocations: 6.536 MB / 1.047 GB, free: 38.24 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.013/3.51, allocations: 5.875 MB / 1.053 GB, free: 35.84 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.281e-05/3.51, allocations: 14.75 kB / 1.053 GB, free: 35.84 MB / 458.7 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.03423/3.544, allocations: 13.79 MB / 1.066 GB, free: 30.35 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.93e-05/3.544, allocations: 31.28 kB / 1.067 GB, free: 30.35 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001016/3.544, allocations: 51.88 kB / 1.067 GB, free: 30.35 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009918/3.554, allocations: 3.345 MB / 1.07 GB, free: 29.34 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009021/3.563, allocations: 1.481 MB / 1.071 GB, free: 29.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01595/3.579, allocations: 13.84 MB / 1.085 GB, free: 19.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007908/3.587, allocations: 389.3 kB / 1.085 GB, free: 19.13 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002039/3.589, allocations: 345.3 kB / 1.086 GB, free: 19.06 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 243 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (785): * Single equations (assignments): 720 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 9 * 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: 3 {(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 6 {6 9,6 9,6 9,6 9,4 4,10 69} Notification: Performance of prepare postOptimizeDAE: time 0.003032/3.592, allocations: 0.5187 MB / 1.086 GB, free: 18.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00243/3.595, allocations: 0.5852 MB / 1.087 GB, free: 18.4 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03289/3.628, allocations: 13.44 MB / 1.1 GB, free: 9.723 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02263/3.65, allocations: 10.3 MB / 1.11 GB, free: 0.5703 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.175e-05/3.651, allocations: 11.19 kB / 1.11 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001322/3.651, allocations: 30.14 kB / 1.11 GB, free: 0.5625 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4127/4.063, allocations: 29.32 MB / 1.138 GB, free: 65.16 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001218/4.064, allocations: 11.25 kB / 1.138 GB, free: 65.16 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006472/4.07, allocations: 0.9383 MB / 1.139 GB, free: 65.16 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01107/4.081, allocations: 3.446 MB / 1.143 GB, free: 65.06 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001667/4.083, allocations: 166.4 kB / 1.143 GB, free: 65.06 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02269/4.106, allocations: 18.2 MB / 1.161 GB, free: 55.51 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.063e-06/4.106, allocations: 6.766 kB / 1.161 GB, free: 55.51 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0448/4.15, allocations: 20.62 MB / 1.181 GB, free: 53.79 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006012/4.157, allocations: 1.733 MB / 1.182 GB, free: 53.7 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002726/4.159, allocations: 117.6 kB / 1.183 GB, free: 53.7 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005996/4.165, allocations: 314.1 kB / 1.183 GB, free: 53.7 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002285/4.168, allocations: 0.5486 MB / 1.183 GB, free: 53.68 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001519/4.169, allocations: 209.1 kB / 1.184 GB, free: 53.68 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007156/4.176, allocations: 2.9 MB / 1.186 GB, free: 53.48 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.572e-06/4.176, allocations: 0 / 1.186 GB, free: 53.48 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0116/4.188, allocations: 2.149 MB / 1.189 GB, free: 53.48 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (504): * Single equations (assignments): 438 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 55 * 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: 5 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 14} * Non-linear torn systems: 6 {6 9,4 4,6 9,6 9,6 9,10 69} Notification: Performance of Backend phase and start with SimCode phase: time 0.002534/4.191, allocations: 0.9274 MB / 1.189 GB, free: 53.27 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.02638/4.217, allocations: 11.82 MB / 1.201 GB, free: 52.61 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 8.829e-06/4.217, allocations: 0 / 1.201 GB, free: 52.61 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01481/4.232, allocations: 6.495 MB / 1.207 GB, free: 51.95 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009043/4.241, allocations: 1.302 MB / 1.209 GB, free: 51.93 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06086/4.302, allocations: 20.94 MB / 1.229 GB, free: 46.45 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02785/4.33, allocations: 7.533 MB / 1.236 GB, free: 43.88 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005794/4.336, allocations: 473.5 kB / 1.237 GB, free: 43.85 MB / 474.7 MB Notification: Performance of SimCode: time 2.723e-06/4.336, allocations: 0 / 1.237 GB, free: 43.85 MB / 474.7 MB Notification: Performance of Templates: time 2.726/7.061, allocations: 0.8608 GB / 2.098 GB, free: 103.9 MB / 0.5105 GB make -j1 -f Modelica_3.2.2_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_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsFunctions.cpp:637:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = 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.SMPM_MainsFunctions.cpp:637:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp341 = 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.SMPM_MainsCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_MainsCalcHelperMain.o] Error 1