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 2.085/2.085, allocations: 194.9 MB / 208.4 MB, free: 3.246 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.866e-05/2.883e-05, allocations: 4 kB / 255.4 MB, free: 3.18 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07749/0.07754, allocations: 44.5 MB / 299.9 MB, free: 6.621 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4094/0.4869, allocations: 116.9 MB / 416.8 MB, free: 10.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002356/0.4872, allocations: 82.92 kB / 416.8 MB, free: 10.93 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9156/1.403, allocations: 192.8 MB / 0.5954 GB, free: 17.06 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.23e-06/1.403, allocations: 4 kB / 0.5954 GB, free: 17.05 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0007131/1.404, allocations: 203.9 kB / 0.5956 GB, free: 17.02 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.02932/1.433, allocations: 7.89 MB / 0.6033 GB, free: 13.46 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/1.433, allocations: 11.19 kB / 0.6033 GB, free: 13.46 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01436/1.447, allocations: 1.897 MB / 0.6051 GB, free: 12.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02308/1.47, allocations: 7.042 MB / 0.612 GB, free: 9.328 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007426/1.471, allocations: 0.6373 MB / 0.6126 GB, free: 9.035 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003241/1.475, allocations: 0.8476 MB / 0.6135 GB, free: 8.746 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0327/1.507, allocations: 10.8 MB / 0.624 GB, free: 3.695 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003682/1.508, allocations: 3.938 kB / 0.624 GB, free: 3.695 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002671/1.51, allocations: 368 kB / 0.6244 GB, free: 3.418 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003578/1.511, allocations: 369.7 kB / 0.6247 GB, free: 3.387 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02587/1.537, allocations: 8.658 MB / 0.6332 GB, free: 15.96 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09322/1.63, allocations: 36 MB / 0.6683 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2904/1.92, allocations: 16.69 MB / 0.6846 GB, free: 39.36 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008429/1.929, allocations: 3.354 MB / 0.6879 GB, free: 39.3 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02514/1.954, allocations: 9.502 MB / 0.6972 GB, free: 37.64 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.9e-05/1.954, allocations: 68.33 kB / 0.6973 GB, free: 37.6 MB / 426.7 MB Notification: Performance of pre-optimization done (n=293): time 7.744e-06/1.954, allocations: 0 / 0.6973 GB, free: 37.6 MB / 426.7 MB Notification: Performance of matching and sorting (n=345): time 0.03254/1.987, allocations: 11.51 MB / 0.7085 GB, free: 35.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.879e-05/1.987, allocations: 87.42 kB / 0.7086 GB, free: 35.87 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00924/1.996, allocations: 3.821 MB / 0.7123 GB, free: 35.55 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006206/1.997, allocations: 82.03 kB / 0.7124 GB, free: 35.52 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002585/1.999, allocations: 3.635 MB / 0.7159 GB, free: 33.66 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001422/2.001, allocations: 1.174 MB / 0.7171 GB, free: 32.91 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004457/2.001, allocations: 95.28 kB / 0.7172 GB, free: 32.91 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002862/2.002, allocations: 483.9 kB / 0.7176 GB, free: 32.59 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00388/2.005, allocations: 1.714 MB / 0.7193 GB, free: 32.57 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004962/2.01, allocations: 3.124 MB / 0.7224 GB, free: 30.86 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005196/2.016, allocations: 2.293 MB / 0.7246 GB, free: 30.81 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6e-05/2.016, allocations: 15.03 kB / 0.7246 GB, free: 30.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=571) (initialization): time 0.01469/2.03, allocations: 5.688 MB / 0.7302 GB, free: 30.44 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.861e-05/2.031, allocations: 22.22 kB / 0.7302 GB, free: 30.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-05/2.031, allocations: 54.5 kB / 0.7302 GB, free: 30.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002548/2.033, allocations: 0.7324 MB / 0.731 GB, free: 30.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005561/2.039, allocations: 1.045 MB / 0.732 GB, free: 30.29 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0126/2.052, allocations: 10.05 MB / 0.7418 GB, free: 22.46 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005539/2.057, allocations: 247 kB / 0.742 GB, free: 22.39 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001019/2.058, allocations: 203 kB / 0.7422 GB, free: 22.35 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.00111/2.059, allocations: 384.1 kB / 0.7426 GB, free: 22.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001392/2.061, allocations: 484.2 kB / 0.743 GB, free: 21.84 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0126/2.073, allocations: 5.052 MB / 0.748 GB, free: 19.62 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.437e-05/2.073, allocations: 38.27 kB / 0.748 GB, free: 19.61 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.365e-05/2.073, allocations: 9.906 kB / 0.748 GB, free: 19.61 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.009e-05/2.074, allocations: 16.64 kB / 0.748 GB, free: 19.61 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03203/2.106, allocations: 12.4 MB / 0.7601 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.634e-05/2.106, allocations: 11.28 kB / 0.7602 GB, free: 14.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003585/2.109, allocations: 0.5914 MB / 0.7607 GB, free: 14.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003093/2.112, allocations: 0.8999 MB / 0.7616 GB, free: 13.86 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006334/2.113, allocations: 86.75 kB / 0.7617 GB, free: 13.8 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01767/2.131, allocations: 13.96 MB / 0.7753 GB, free: 3.277 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.505e-06/2.131, allocations: 8.719 kB / 0.7753 GB, free: 3.277 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0163/2.147, allocations: 8.05 MB / 0.7832 GB, free: 14.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00373/2.151, allocations: 0.9676 MB / 0.7841 GB, free: 14.25 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001707/2.153, allocations: 67.12 kB / 0.7842 GB, free: 14.21 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004308/2.157, allocations: 207.2 kB / 0.7844 GB, free: 14.16 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001035/2.158, allocations: 270 kB / 0.7847 GB, free: 14.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003711/2.158, allocations: 95.67 kB / 0.7848 GB, free: 14.09 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007592/2.166, allocations: 2.895 MB / 0.7876 GB, free: 12.96 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.089e-06/2.166, allocations: 0 / 0.7876 GB, free: 12.96 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.008606/2.175, allocations: 1.528 MB / 0.7891 GB, free: 12.81 MB / 442.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.001618/2.176, allocations: 0.6725 MB / 0.7897 GB, free: 12.56 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.01167/2.188, allocations: 5.125 MB / 0.7947 GB, free: 10.23 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/2.188, allocations: 2.734 kB / 0.7947 GB, free: 10.23 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00744/2.196, allocations: 3.171 MB / 0.7978 GB, free: 8.539 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007043/2.203, allocations: 1.052 MB / 0.7989 GB, free: 8.223 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03597/2.239, allocations: 12 MB / 0.8106 GB, free: 2.836 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01842/2.257, allocations: 5.448 MB / 0.8159 GB, free: 15.96 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002228/2.259, allocations: 352.8 kB / 0.8162 GB, free: 15.64 MB / 458.7 MB Notification: Performance of SimCode: time 1.866e-06/2.259, allocations: 0 / 0.8162 GB, free: 15.64 MB / 458.7 MB Notification: Performance of Templates: time 0.9781/3.238, allocations: 317.8 MB / 1.127 GB, free: 47.17 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/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_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: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_Generator_MultiPhaseFunctions.cpp:343:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseFunctions.cpp:403: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_Generator_MultiPhaseFunctions.cpp:380: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_Generator_MultiPhaseCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_MultiPhaseCalcHelperMain.o] Error 1