Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=60000,variableFilter="time|constantSpeed3.phi|constantSpeedM.phi|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smee3.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smee3.stator.strayReluctance.port_p.Phi.im|smee3.stator.strayReluctance.port_p.Phi.re|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_MultiPhase") Notification: Performance of loadModel(Modelica): time 1.993/1.993, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.38e-05/3.406e-05, allocations: 4 kB / 255.4 MB, free: 3.164 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08069/0.08075, allocations: 44.51 MB / 299.9 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3773/0.4581, allocations: 116.9 MB / 416.7 MB, free: 10.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002627/0.4584, allocations: 86.58 kB / 416.8 MB, free: 10.81 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9038/1.362, allocations: 192.8 MB / 0.5954 GB, free: 46.09 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.993e-06/1.362, allocations: 0 / 0.5954 GB, free: 46.09 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007336/1.363, allocations: 196.8 kB / 0.5956 GB, free: 46.06 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: 2286 * Number of variables: 2286 Notification: Performance of Generate backend data structure: time 0.02813/1.391, allocations: 7.886 MB / 0.6033 GB, free: 42.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/1.391, allocations: 14.66 kB / 0.6033 GB, free: 42.5 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01492/1.406, allocations: 1.901 MB / 0.6051 GB, free: 41.86 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02203/1.428, allocations: 7.028 MB / 0.612 GB, free: 37.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007257/1.429, allocations: 0.6457 MB / 0.6126 GB, free: 36.42 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003176/1.432, allocations: 0.8468 MB / 0.6135 GB, free: 35.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03301/1.465, allocations: 10.9 MB / 0.6241 GB, free: 24.43 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003838/1.466, allocations: 12 kB / 0.6241 GB, free: 24.42 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002742/1.468, allocations: 362.7 kB / 0.6245 GB, free: 24.07 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003551/1.469, allocations: 369.5 kB / 0.6248 GB, free: 23.7 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02462/1.493, allocations: 8.711 MB / 0.6333 GB, free: 14.98 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3643/1.858, allocations: 35.98 MB / 0.6685 GB, free: 46.24 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01904/1.877, allocations: 16.74 MB / 0.6848 GB, free: 33.79 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008349/1.885, allocations: 3.359 MB / 0.6881 GB, free: 33.73 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02511/1.91, allocations: 9.499 MB / 0.6974 GB, free: 32.07 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.225e-05/1.911, allocations: 71.5 kB / 0.6974 GB, free: 32.02 MB / 410.7 MB Notification: Performance of pre-optimization done (n=293): time 7.007e-06/1.911, allocations: 0.6562 kB / 0.6974 GB, free: 32.02 MB / 410.7 MB Notification: Performance of matching and sorting (n=345): time 0.03188/1.942, allocations: 11.5 MB / 0.7087 GB, free: 30.14 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.093e-05/1.943, allocations: 86.95 kB / 0.7088 GB, free: 30.08 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009166/1.952, allocations: 3.832 MB / 0.7125 GB, free: 29.74 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006414/1.952, allocations: 79.11 kB / 0.7126 GB, free: 29.71 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002659/1.955, allocations: 3.625 MB / 0.7161 GB, free: 27.85 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001505/1.957, allocations: 1.176 MB / 0.7173 GB, free: 27.1 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004886/1.957, allocations: 89.06 kB / 0.7173 GB, free: 27.1 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003068/1.957, allocations: 482.9 kB / 0.7178 GB, free: 26.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004202/1.962, allocations: 1.715 MB / 0.7195 GB, free: 26.77 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005103/1.967, allocations: 3.148 MB / 0.7226 GB, free: 25.04 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005143/1.972, allocations: 2.301 MB / 0.7248 GB, free: 24.99 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.379e-05/1.972, allocations: 13.12 kB / 0.7248 GB, free: 24.99 MB / 410.7 MB Notification: Performance of matching and sorting (n=571) (initialization): time 0.01406/1.986, allocations: 5.813 MB / 0.7305 GB, free: 24.62 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.213e-05/1.986, allocations: 24.47 kB / 0.7305 GB, free: 24.62 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.075e-05/1.986, allocations: 47.59 kB / 0.7306 GB, free: 24.62 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0027/1.989, allocations: 0.737 MB / 0.7313 GB, free: 24.56 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005773/1.995, allocations: 1.044 MB / 0.7323 GB, free: 24.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01445/2.009, allocations: 10.05 MB / 0.7421 GB, free: 33.89 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005656/2.015, allocations: 246.4 kB / 0.7423 GB, free: 33.81 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001002/2.016, allocations: 199.8 kB / 0.7425 GB, free: 33.78 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (518): * Single equations (assignments): 510 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 4 * 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: 4 {(2,100.0%) 13,(1,100.0%) 5,(2,100.0%) 13,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001522/2.018, allocations: 388.1 kB / 0.7429 GB, free: 33.52 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001548/2.019, allocations: 484.8 kB / 0.7434 GB, free: 33.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01406/2.033, allocations: 5.054 MB / 0.7483 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.974e-05/2.033, allocations: 31.75 kB / 0.7483 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.094e-05/2.034, allocations: 13.44 kB / 0.7484 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.39e-05/2.034, allocations: 15.28 kB / 0.7484 GB, free: 31.04 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03371/2.067, allocations: 12.41 MB / 0.7605 GB, free: 25.59 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.74e-05/2.067, allocations: 10.8 kB / 0.7605 GB, free: 25.59 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00376/2.071, allocations: 0.5881 MB / 0.7611 GB, free: 25.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003395/2.075, allocations: 0.9 MB / 0.762 GB, free: 25.27 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006674/2.075, allocations: 87.19 kB / 0.762 GB, free: 25.22 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02005/2.095, allocations: 13.95 MB / 0.7757 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.305e-06/2.095, allocations: 8.641 kB / 0.7757 GB, free: 14.71 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01649/2.112, allocations: 8.057 MB / 0.7835 GB, free: 10.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003416/2.115, allocations: 0.9526 MB / 0.7845 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/2.117, allocations: 76.09 kB / 0.7845 GB, free: 9.625 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00458/2.122, allocations: 207.3 kB / 0.7847 GB, free: 9.574 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001012/2.123, allocations: 274.5 kB / 0.785 GB, free: 9.527 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004198/2.123, allocations: 93.14 kB / 0.7851 GB, free: 9.508 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.007535/2.131, allocations: 2.897 MB / 0.7879 GB, free: 8.055 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.161e-06/2.131, allocations: 0 / 0.7879 GB, free: 8.055 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.009191/2.14, allocations: 1.524 MB / 0.7894 GB, free: 6.547 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * 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,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.strayReluctance.Phi.re,smee3.stator.strayReluctance.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (269): * Single equations (assignments): 262 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(2,100.0%) 13,(4,93.8%) 33,(2,100.0%) 13,(1,100.0%) 5,(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001716/2.142, allocations: 0.6808 MB / 0.7901 GB, free: 6.004 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.01272/2.155, allocations: 5.248 MB / 0.7952 GB, free: 1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.722e-06/2.155, allocations: 0 / 0.7952 GB, free: 1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01192/2.167, allocations: 3.456 MB / 0.7986 GB, free: 14.53 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007001/2.174, allocations: 1.051 MB / 0.7996 GB, free: 13.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03735/2.211, allocations: 12.02 MB / 0.8113 GB, free: 2.781 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01875/2.23, allocations: 5.474 MB / 0.8167 GB, free: 15.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002125/2.232, allocations: 352.6 kB / 0.817 GB, free: 15.64 MB / 458.7 MB Notification: Performance of SimCode: time 2.786e-06/2.232, allocations: 0 / 0.817 GB, free: 15.64 MB / 458.7 MB Notification: Performance of Templates: time 0.9783/3.21, allocations: 318.4 MB / 1.128 GB, free: 47.33 MB / 474.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhase.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_Generator_MultiPhaseCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.cpp:28: ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:366: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_Generator_MultiPhaseFunctions.cpp:343:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:403: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_Generator_MultiPhaseFunctions.cpp:380: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_Generator_MultiPhaseCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1