Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeedE.phi|constantSpeedM.phi|smeeE.idq_dr.1.|smeeE.idq_rr.2.|smeeE.idq_sr.1.|smeeE.idq_sr.2.|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smeeM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smeeM.stator.strayReluctance.port_p.Phi.im|smeeM.stator.strayReluctance.port_p.Phi.re",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.936/1.936, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.877e-05/2.896e-05, allocations: 4.906 kB / 255.4 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08143/0.08149, allocations: 44.49 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4026/0.4841, allocations: 130.3 MB / 430.1 MB, free: 2.02 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002406/0.4844, allocations: 81.64 kB / 430.2 MB, free: 1.977 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.723/1.207, allocations: 130.5 MB / 0.5475 GB, free: 59.98 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.145e-06/1.207, allocations: 3.594 kB / 0.5475 GB, free: 59.98 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005196/1.208, allocations: 147.6 kB / 0.5477 GB, free: 59.96 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01877/1.227, allocations: 5.375 MB / 0.5529 GB, free: 57.95 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.392e-05/1.227, allocations: 14.7 kB / 0.5529 GB, free: 57.95 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00865/1.235, allocations: 1.147 MB / 0.5541 GB, free: 57.6 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01773/1.253, allocations: 4.878 MB / 0.5588 GB, free: 56.79 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004787/1.254, allocations: 423.6 kB / 0.5592 GB, free: 56.77 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002099/1.256, allocations: 0.5555 MB / 0.5598 GB, free: 56.76 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02329/1.279, allocations: 6.944 MB / 0.5666 GB, free: 56.12 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003471/1.28, allocations: 18.06 kB / 0.5666 GB, free: 56.11 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001985/1.282, allocations: 239.2 kB / 0.5668 GB, free: 56.11 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002814/1.282, allocations: 244.8 kB / 0.567 GB, free: 56.1 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01838/1.3, allocations: 5.493 MB / 0.5724 GB, free: 55.26 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05945/1.36, allocations: 23.83 MB / 0.5957 GB, free: 42.58 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0103/1.37, allocations: 8.552 MB / 0.604 GB, free: 35.34 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005529/1.376, allocations: 2.226 MB / 0.6062 GB, free: 33.96 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01941/1.395, allocations: 6.929 MB / 0.613 GB, free: 28.11 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.544e-05/1.395, allocations: 60.5 kB / 0.613 GB, free: 28.04 MB / 394.7 MB Notification: Performance of pre-optimization done (n=234): time 6.321e-06/1.395, allocations: 4 kB / 0.613 GB, free: 28.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=285): time 0.0395/1.435, allocations: 12.1 MB / 0.6248 GB, free: 17.66 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.547e-05/1.435, allocations: 89.52 kB / 0.6249 GB, free: 17.56 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007449/1.442, allocations: 2.924 MB / 0.6278 GB, free: 14.93 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000519/1.443, allocations: 69.7 kB / 0.6278 GB, free: 14.86 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001763/1.445, allocations: 2.472 MB / 0.6303 GB, free: 12.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001179/1.446, allocations: 0.9786 MB / 0.6312 GB, free: 11.72 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000344/1.446, allocations: 80 kB / 0.6313 GB, free: 11.64 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.000276/1.447, allocations: 454.2 kB / 0.6317 GB, free: 11.23 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003856/1.451, allocations: 1.462 MB / 0.6332 GB, free: 9.879 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004657/1.455, allocations: 2.616 MB / 0.6357 GB, free: 6.906 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004866/1.46, allocations: 1.945 MB / 0.6376 GB, free: 5.18 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.243e-05/1.46, allocations: 14.34 kB / 0.6376 GB, free: 5.168 MB / 394.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01316/1.473, allocations: 5.034 MB / 0.6425 GB, free: 0.6406 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.124e-05/1.473, allocations: 24.12 kB / 0.6426 GB, free: 0.6172 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.479e-05/1.474, allocations: 43.89 kB / 0.6426 GB, free: 0.5781 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003711/1.477, allocations: 0.8949 MB / 0.6435 GB, free: 15.93 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004745/1.482, allocations: 0.8607 MB / 0.6443 GB, free: 15.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01856/1.501, allocations: 9.784 MB / 0.6539 GB, free: 5.871 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00466/1.505, allocations: 236.4 kB / 0.6541 GB, free: 5.684 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009363/1.506, allocations: 163.3 kB / 0.6543 GB, free: 5.527 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 171 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (418): * Single equations (assignments): 409 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * 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: 3 {(6,72.2%) 23,(2,100.0%) 13,(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001023/1.507, allocations: 335.9 kB / 0.6546 GB, free: 5.191 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001318/1.509, allocations: 387.1 kB / 0.6549 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01356/1.522, allocations: 4.527 MB / 0.6594 GB, free: 0.8555 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.918e-05/1.522, allocations: 28 kB / 0.6594 GB, free: 0.8281 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.395e-05/1.522, allocations: 8 kB / 0.6594 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-05/1.523, allocations: 14.34 kB / 0.6594 GB, free: 0.8203 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2924/1.815, allocations: 9.92 MB / 0.6691 GB, free: 68.51 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.01057/1.826, allocations: 3.792 MB / 0.6728 GB, free: 68.02 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003082/1.829, allocations: 499.3 kB / 0.6733 GB, free: 68.02 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003943/1.833, allocations: 0.9794 MB / 0.6742 GB, free: 67.97 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000606/1.833, allocations: 74.97 kB / 0.6743 GB, free: 67.97 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02091/1.854, allocations: 14.75 MB / 0.6887 GB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.499e-06/1.854, allocations: 7.719 kB / 0.6887 GB, free: 60.11 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0162/1.871, allocations: 7.099 MB / 0.6956 GB, free: 58.68 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003165/1.874, allocations: 0.7778 MB / 0.6964 GB, free: 58.59 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001457/1.875, allocations: 63.05 kB / 0.6965 GB, free: 58.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003624/1.879, allocations: 182 kB / 0.6966 GB, free: 58.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008776/1.88, allocations: 219.7 kB / 0.6969 GB, free: 58.58 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003179/1.88, allocations: 82.39 kB / 0.6969 GB, free: 58.58 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006328/1.887, allocations: 2.202 MB / 0.6991 GB, free: 58.42 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.293e-06/1.887, allocations: 0 / 0.6991 GB, free: 58.42 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00668/1.893, allocations: 1.192 MB / 0.7002 GB, free: 58.42 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.strayReluctance.Phi.re,smeeM.stator.strayReluctance.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (224): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8,(6,75.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001423/1.895, allocations: 0.569 MB / 0.7008 GB, free: 58.32 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01068/1.905, allocations: 4.529 MB / 0.7052 GB, free: 57.58 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.11e-05/1.906, allocations: 3.469 kB / 0.7052 GB, free: 57.58 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006683/1.912, allocations: 2.902 MB / 0.7081 GB, free: 56.58 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005693/1.918, allocations: 0.8276 MB / 0.7089 GB, free: 56.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02384/1.942, allocations: 8.545 MB / 0.7172 GB, free: 52.9 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007216/1.949, allocations: 3.527 MB / 0.7207 GB, free: 51.64 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001613/1.951, allocations: 280.1 kB / 0.7209 GB, free: 51.62 MB / 410.7 MB Notification: Performance of SimCode: time 2.401e-06/1.951, allocations: 0 / 0.7209 GB, free: 51.62 MB / 410.7 MB Notification: Performance of Templates: time 0.5304/2.481, allocations: 211.2 MB / 0.9272 GB, free: 25.11 MB / 426.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.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.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:375:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:352:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:412:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:389:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorCalcHelperMain.o] Error 1