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.908/1.908, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.754e-05/2.779e-05, allocations: 4 kB / 255.4 MB, free: 3.195 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08042/0.08047, allocations: 44.49 MB / 299.8 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3944/0.4749, allocations: 130.2 MB / 430.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4752, allocations: 86.7 kB / 430.2 MB, free: 1.98 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7199/1.195, allocations: 130.5 MB / 0.5475 GB, free: 59.86 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.36e-06/1.195, allocations: 0 / 0.5475 GB, free: 59.86 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0005098/1.196, allocations: 140.2 kB / 0.5476 GB, free: 59.85 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.01878/1.214, allocations: 5.381 MB / 0.5529 GB, free: 57.83 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.462e-05/1.215, allocations: 14.53 kB / 0.5529 GB, free: 57.82 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0086/1.223, allocations: 1.142 MB / 0.554 GB, free: 57.48 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01566/1.239, allocations: 4.882 MB / 0.5588 GB, free: 56.66 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004852/1.239, allocations: 423.9 kB / 0.5592 GB, free: 56.65 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002151/1.242, allocations: 0.554 MB / 0.5597 GB, free: 56.64 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02122/1.263, allocations: 7.02 MB / 0.5666 GB, free: 55.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002778/1.263, allocations: 11.84 kB / 0.5666 GB, free: 55.98 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001657/1.265, allocations: 233.7 kB / 0.5668 GB, free: 55.98 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002397/1.265, allocations: 249.5 kB / 0.5671 GB, free: 55.96 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0157/1.281, allocations: 5.57 MB / 0.5725 GB, free: 55.16 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0563/1.337, allocations: 23.83 MB / 0.5958 GB, free: 42.48 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009464/1.347, allocations: 8.588 MB / 0.6042 GB, free: 35.23 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004995/1.352, allocations: 2.228 MB / 0.6063 GB, free: 33.72 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01786/1.37, allocations: 6.924 MB / 0.6131 GB, free: 27.87 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/1.37, allocations: 60.56 kB / 0.6132 GB, free: 27.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=234): time 6.035e-06/1.37, allocations: 0 / 0.6132 GB, free: 27.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=285): time 0.03695/1.407, allocations: 12.09 MB / 0.625 GB, free: 17.43 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.192e-05/1.407, allocations: 85.58 kB / 0.6251 GB, free: 17.33 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006511/1.413, allocations: 2.936 MB / 0.6279 GB, free: 14.69 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005131/1.414, allocations: 69.7 kB / 0.628 GB, free: 14.61 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00166/1.415, allocations: 2.476 MB / 0.6304 GB, free: 12.35 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00106/1.417, allocations: 0.9752 MB / 0.6314 GB, free: 11.47 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003292/1.417, allocations: 72 kB / 0.6314 GB, free: 11.4 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002282/1.417, allocations: 457.4 kB / 0.6319 GB, free: 10.99 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002994/1.42, allocations: 1.459 MB / 0.6333 GB, free: 9.641 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004142/1.424, allocations: 2.641 MB / 0.6359 GB, free: 6.645 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004294/1.429, allocations: 1.945 MB / 0.6378 GB, free: 4.914 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.982e-05/1.429, allocations: 12 kB / 0.6378 GB, free: 4.902 MB / 394.7 MB Notification: Performance of matching and sorting (n=471) (initialization): time 0.01229/1.441, allocations: 5.142 MB / 0.6428 GB, free: 276 kB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.944e-05/1.441, allocations: 20 kB / 0.6428 GB, free: 256 kB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.299e-05/1.441, allocations: 40 kB / 0.6429 GB, free: 216 kB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003243/1.444, allocations: 0.8795 MB / 0.6437 GB, free: 15.51 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004668/1.449, allocations: 0.8551 MB / 0.6445 GB, free: 14.78 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01709/1.466, allocations: 9.79 MB / 0.6541 GB, free: 5.445 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004414/1.471, allocations: 233.1 kB / 0.6543 GB, free: 5.262 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008151/1.472, allocations: 167.8 kB / 0.6545 GB, free: 5.102 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.0009617/1.473, allocations: 327.9 kB / 0.6548 GB, free: 4.773 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00123/1.474, allocations: 387.1 kB / 0.6552 GB, free: 4.395 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01168/1.486, allocations: 4.525 MB / 0.6596 GB, free: 448 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.364e-05/1.486, allocations: 31.94 kB / 0.6596 GB, free: 420 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.497e-05/1.486, allocations: 8 kB / 0.6596 GB, free: 412 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.774e-05/1.486, allocations: 15.81 kB / 0.6596 GB, free: 408 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2898/1.776, allocations: 9.966 MB / 0.6694 GB, free: 68.56 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.009577/1.785, allocations: 3.792 MB / 0.6731 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00314/1.788, allocations: 499.4 kB / 0.6736 GB, free: 68.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003881/1.792, allocations: 0.9898 MB / 0.6745 GB, free: 68.02 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005589/1.793, allocations: 72.84 kB / 0.6746 GB, free: 68.02 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01916/1.812, allocations: 14.75 MB / 0.689 GB, free: 60.15 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.11e-05/1.812, allocations: 9.562 kB / 0.689 GB, free: 60.15 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/1.827, allocations: 7.104 MB / 0.6959 GB, free: 58.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002898/1.83, allocations: 0.7786 MB / 0.6967 GB, free: 58.63 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001382/1.831, allocations: 65.78 kB / 0.6968 GB, free: 58.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003582/1.835, allocations: 180.1 kB / 0.6969 GB, free: 58.63 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008603/1.836, allocations: 216.1 kB / 0.6971 GB, free: 58.62 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003664/1.836, allocations: 87.48 kB / 0.6972 GB, free: 58.62 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.005696/1.842, allocations: 2.2 MB / 0.6994 GB, free: 58.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.104e-06/1.842, allocations: 0 / 0.6994 GB, free: 58.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.006559/1.848, allocations: 1.2 MB / 0.7006 GB, free: 58.46 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.001405/1.85, allocations: 0.5589 MB / 0.7011 GB, free: 58.36 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.009719/1.859, allocations: 4.641 MB / 0.7056 GB, free: 57.57 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.743e-06/1.859, allocations: 1.656 kB / 0.7056 GB, free: 57.57 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006571/1.866, allocations: 2.963 MB / 0.7085 GB, free: 56.3 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005609/1.872, allocations: 0.8268 MB / 0.7093 GB, free: 56.07 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02294/1.895, allocations: 8.566 MB / 0.7177 GB, free: 52.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006967/1.902, allocations: 3.521 MB / 0.7211 GB, free: 51.35 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001633/1.903, allocations: 277.1 kB / 0.7214 GB, free: 51.34 MB / 410.7 MB Notification: Performance of SimCode: time 1.98e-06/1.903, allocations: 2.625 kB / 0.7214 GB, free: 51.34 MB / 410.7 MB Notification: Performance of Templates: time 0.537/2.44, allocations: 211.8 MB / 0.9282 GB, free: 23.69 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@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.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:34: error: use of undeclared identifier 'D_24tmpVar10_'; did you mean 'D_24tmpVar11_'? D_24tmpVar11_ = std::cos(D_24tmpVar10_); ^~~~~~~~~~~~~ D_24tmpVar11_ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:352:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:412:34: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? D_24tmpVar14_ = std::sin(D_24tmpVar13_); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_GeneratorFunctions.cpp:389:12: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ 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