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.806/1.806, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.32e-05/3.361e-05, allocations: 6.297 kB / 255.4 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08046/0.08051, allocations: 44.5 MB / 299.9 MB, free: 6.605 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4632/0.5437, allocations: 151.8 MB / 451.7 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003219/0.5441, allocations: 100.8 kB / 451.8 MB, free: 12.46 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.975/2.519, allocations: 389.6 MB / 0.8217 GB, free: 26.14 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.306e-06/2.519, allocations: 0 / 0.8217 GB, free: 26.14 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0009635/2.52, allocations: 278.8 kB / 0.8219 GB, free: 26.11 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.04851/2.568, allocations: 11.23 MB / 0.8329 GB, free: 22.59 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.419e-05/2.569, allocations: 11.28 kB / 0.8329 GB, free: 22.59 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03999/2.609, allocations: 5.196 MB / 0.838 GB, free: 21.9 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02951/2.638, allocations: 9.63 MB / 0.8474 GB, free: 20.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001256/2.639, allocations: 0.8997 MB / 0.8483 GB, free: 20.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005636/2.645, allocations: 1.173 MB / 0.8494 GB, free: 20.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05827/2.703, allocations: 19.33 MB / 0.8683 GB, free: 19.17 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005568/2.704, allocations: 22.27 kB / 0.8683 GB, free: 19.16 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004553/2.709, allocations: 0.5021 MB / 0.8688 GB, free: 19.16 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001027/2.71, allocations: 0.7738 MB / 0.8696 GB, free: 19.14 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04513/2.755, allocations: 17.07 MB / 0.8862 GB, free: 19.02 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.15/2.905, allocations: 63.28 MB / 0.948 GB, free: 2.816 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3536/3.258, allocations: 22.71 MB / 0.9702 GB, free: 50 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01705/3.276, allocations: 7.297 MB / 0.9773 GB, free: 49.92 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05557/3.331, allocations: 22.81 MB / 0.9996 GB, free: 48.86 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.697e-05/3.331, allocations: 102.9 kB / 0.9997 GB, free: 48.82 MB / 458.7 MB Notification: Performance of pre-optimization done (n=746): time 1.553e-05/3.331, allocations: 3.375 kB / 0.9997 GB, free: 48.82 MB / 458.7 MB Notification: Performance of matching and sorting (n=756): time 0.06533/3.397, allocations: 25.89 MB / 1.025 GB, free: 45.21 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/3.397, allocations: 142.3 kB / 1.025 GB, free: 45.11 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009357/3.406, allocations: 3.867 MB / 1.029 GB, free: 44.78 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001477/3.408, allocations: 132.9 kB / 1.029 GB, free: 44.75 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003053/3.411, allocations: 4.522 MB / 1.033 GB, free: 42.31 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.003481/3.414, allocations: 2.508 MB / 1.036 GB, free: 40.69 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001389/3.416, allocations: 148.7 kB / 1.036 GB, free: 40.69 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0008995/3.417, allocations: 0.6289 MB / 1.037 GB, free: 40.36 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01062/3.427, allocations: 4.72 MB / 1.041 GB, free: 40.34 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01258/3.44, allocations: 6.575 MB / 1.048 GB, free: 37.54 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01597/3.456, allocations: 5.877 MB / 1.053 GB, free: 35.14 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.29e-05/3.456, allocations: 13.56 kB / 1.053 GB, free: 35.14 MB / 458.7 MB Notification: Performance of matching and sorting (n=1042) (initialization): time 0.03462/3.491, allocations: 13.94 MB / 1.067 GB, free: 29.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.201e-05/3.491, allocations: 28.97 kB / 1.067 GB, free: 29.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001134/3.491, allocations: 53.94 kB / 1.067 GB, free: 29.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009734/3.501, allocations: 3.357 MB / 1.07 GB, free: 28.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00888/3.51, allocations: 1.478 MB / 1.072 GB, free: 28.55 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01648/3.526, allocations: 13.85 MB / 1.085 GB, free: 18.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008184/3.534, allocations: 395.9 kB / 1.086 GB, free: 18.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002071/3.537, allocations: 338.1 kB / 1.086 GB, free: 18.32 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.00331/3.54, allocations: 0.5189 MB / 1.087 GB, free: 17.96 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002559/3.542, allocations: 0.5828 MB / 1.087 GB, free: 17.65 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03426/3.577, allocations: 13.44 MB / 1.1 GB, free: 8.348 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.02496/3.602, allocations: 10.37 MB / 1.11 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.687e-05/3.602, allocations: 7.047 kB / 1.11 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001375/3.602, allocations: 32.16 kB / 1.11 GB, free: 15.36 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08212/3.684, allocations: 28.19 MB / 1.138 GB, free: 8.707 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001014/3.684, allocations: 7.047 kB / 1.138 GB, free: 8.703 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006478/3.691, allocations: 0.9476 MB / 1.139 GB, free: 7.977 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01101/3.702, allocations: 3.445 MB / 1.142 GB, free: 5.152 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001738/3.704, allocations: 165 kB / 1.142 GB, free: 5.008 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4456/4.149, allocations: 18.2 MB / 1.16 GB, free: 73.29 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.108e-06/4.149, allocations: 6.281 kB / 1.16 GB, free: 73.29 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04639/4.196, allocations: 20.62 MB / 1.18 GB, free: 71.59 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006021/4.202, allocations: 1.73 MB / 1.182 GB, free: 71.5 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002985/4.205, allocations: 118.1 kB / 1.182 GB, free: 71.5 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006187/4.211, allocations: 313.5 kB / 1.182 GB, free: 71.5 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002335/4.213, allocations: 0.5494 MB / 1.183 GB, free: 71.48 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001576/4.215, allocations: 208.7 kB / 1.183 GB, free: 71.48 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.007464/4.223, allocations: 2.896 MB / 1.186 GB, free: 71.28 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.404e-06/4.223, allocations: 0 / 1.186 GB, free: 71.28 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01183/4.234, allocations: 2.15 MB / 1.188 GB, free: 71.28 MB / 490.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.002646/4.237, allocations: 0.9085 MB / 1.189 GB, free: 71.11 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02713/4.264, allocations: 11.97 MB / 1.201 GB, free: 70.38 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/4.264, allocations: 0 / 1.201 GB, free: 70.38 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0155/4.28, allocations: 6.57 MB / 1.207 GB, free: 69.66 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009437/4.289, allocations: 1.303 MB / 1.208 GB, free: 69.64 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05488/4.344, allocations: 20.99 MB / 1.229 GB, free: 66.11 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01534/4.36, allocations: 7.524 MB / 1.236 GB, free: 65.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003047/4.363, allocations: 481.3 kB / 1.237 GB, free: 65.09 MB / 490.7 MB Notification: Performance of SimCode: time 2.337e-06/4.363, allocations: 0 / 1.237 GB, free: 65.09 MB / 490.7 MB Notification: Performance of Templates: time 2.68/7.042, allocations: 0.8618 GB / 2.098 GB, free: 94.31 MB / 0.4948 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@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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