Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase,tolerance=1e-07,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase") Notification: Performance of loadModel(Modelica): time 1.935/1.935, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.215e-05/3.226e-05, allocations: 4 kB / 292.2 MB, free: 8.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09275/0.0928, allocations: 50.4 MB / 342.6 MB, free: 6.371 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4244/0.5172, allocations: 125.8 MB / 468.3 MB, free: 1.184 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.5176, allocations: 102.1 kB / 468.4 MB, free: 1.125 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8863/1.404, allocations: 194.1 MB / 0.647 GB, free: 43.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.387e-06/1.404, allocations: 0 / 0.647 GB, free: 43.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006819/1.405, allocations: 207.8 kB / 0.6472 GB, free: 43.54 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2293 * Number of variables: 2293 Notification: Performance of Generate backend data structure: time 0.0284/1.433, allocations: 7.928 MB / 0.655 GB, free: 35.52 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/1.433, allocations: 16.03 kB / 0.655 GB, free: 35.51 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01391/1.447, allocations: 1.913 MB / 0.6568 GB, free: 33.58 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02165/1.469, allocations: 7.046 MB / 0.6637 GB, free: 26.46 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000733/1.469, allocations: 0.6421 MB / 0.6644 GB, free: 25.82 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003066/1.473, allocations: 0.8474 MB / 0.6652 GB, free: 24.97 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03224/1.505, allocations: 10.81 MB / 0.6757 GB, free: 13.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003639/1.505, allocations: 11.84 kB / 0.6758 GB, free: 13.9 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002671/1.508, allocations: 364 kB / 0.6761 GB, free: 13.55 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003876/1.508, allocations: 381.5 kB / 0.6765 GB, free: 13.17 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02467/1.533, allocations: 8.641 MB / 0.6849 GB, free: 4.523 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3721/1.905, allocations: 36.03 MB / 0.7201 GB, free: 40.28 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0167/1.922, allocations: 16.76 MB / 0.7365 GB, free: 27.84 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007293/1.929, allocations: 3.397 MB / 0.7398 GB, free: 27.78 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02144/1.951, allocations: 9.587 MB / 0.7491 GB, free: 25.93 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.292e-05/1.951, allocations: 70.27 kB / 0.7492 GB, free: 25.89 MB / 442.7 MB Notification: Performance of pre-optimization done (n=298): time 7.794e-06/1.951, allocations: 0 / 0.7492 GB, free: 25.89 MB / 442.7 MB Notification: Performance of matching and sorting (n=350): time 0.02868/1.98, allocations: 11.6 MB / 0.7605 GB, free: 23.87 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.353e-05/1.98, allocations: 87.86 kB / 0.7606 GB, free: 23.8 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008097/1.988, allocations: 3.835 MB / 0.7644 GB, free: 22.61 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005628/1.988, allocations: 80.73 kB / 0.7644 GB, free: 22.54 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002183/1.991, allocations: 3.619 MB / 0.768 GB, free: 19.82 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001259/1.992, allocations: 1.191 MB / 0.7691 GB, free: 18.89 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003523/1.992, allocations: 93.91 kB / 0.7692 GB, free: 18.82 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002532/1.993, allocations: 486.2 kB / 0.7697 GB, free: 18.43 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003516/1.996, allocations: 1.73 MB / 0.7714 GB, free: 17.71 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004595/2.001, allocations: 3.134 MB / 0.7744 GB, free: 15.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004663/2.005, allocations: 2.314 MB / 0.7767 GB, free: 14.3 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.717e-05/2.005, allocations: 10.75 kB / 0.7767 GB, free: 14.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=574) (initialization): time 0.01309/2.019, allocations: 5.73 MB / 0.7823 GB, free: 12.2 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.813e-05/2.019, allocations: 23.12 kB / 0.7823 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.98e-05/2.019, allocations: 54.48 kB / 0.7824 GB, free: 12.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002431/2.021, allocations: 0.7351 MB / 0.7831 GB, free: 11.95 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005249/2.026, allocations: 1.04 MB / 0.7841 GB, free: 11.91 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01217/2.039, allocations: 10.05 MB / 0.7939 GB, free: 4.062 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005138/2.044, allocations: 253.3 kB / 0.7942 GB, free: 3.977 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008471/2.045, allocations: 200 kB / 0.7943 GB, free: 3.941 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 207 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (521): * Single equations (assignments): 513 * 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.0009742/2.046, allocations: 390.1 kB / 0.7947 GB, free: 3.672 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001373/2.047, allocations: 491.5 kB / 0.7952 GB, free: 3.426 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01249/2.06, allocations: 5.101 MB / 0.8002 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-05/2.06, allocations: 33.47 kB / 0.8002 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.363e-05/2.06, allocations: 14.16 kB / 0.8002 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.616e-05/2.06, allocations: 20.84 kB / 0.8002 GB, free: 1.168 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03112/2.091, allocations: 12.47 MB / 0.8124 GB, free: 11.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.446e-05/2.091, allocations: 3.938 kB / 0.8124 GB, free: 11.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003565/2.095, allocations: 0.6019 MB / 0.813 GB, free: 11.68 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003134/2.098, allocations: 0.8834 MB / 0.8139 GB, free: 11.38 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005951/2.098, allocations: 84.89 kB / 0.8139 GB, free: 11.34 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02182/2.12, allocations: 13.98 MB / 0.8276 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.291e-06/2.12, allocations: 5.219 kB / 0.8276 GB, free: 0.582 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01843/2.139, allocations: 8.057 MB / 0.8355 GB, free: 8.918 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003653/2.142, allocations: 0.9537 MB / 0.8364 GB, free: 8.043 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001677/2.144, allocations: 72 kB / 0.8365 GB, free: 7.973 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004143/2.148, allocations: 212.4 kB / 0.8367 GB, free: 7.809 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001022/2.149, allocations: 270.1 kB / 0.8369 GB, free: 7.645 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003974/2.15, allocations: 99.17 kB / 0.837 GB, free: 7.555 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.007787/2.158, allocations: 2.894 MB / 0.8399 GB, free: 4.941 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.291e-06/2.158, allocations: 0 / 0.8399 GB, free: 4.941 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00866/2.166, allocations: 1.535 MB / 0.8414 GB, free: 3.422 MB / 474.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.stray.Phi.re,smeeM.stator.stray.Phi.im,smee3.phiMechanical,smee3.stator.core.Phi.re,smee3.stator.core.Phi.im,smee3.stator.stray.Phi.re,smee3.stator.stray.Phi.im) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (272): * Single equations (assignments): 265 * 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.001792/2.168, allocations: 0.7249 MB / 0.8421 GB, free: 2.809 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01462/2.183, allocations: 5.3 MB / 0.8472 GB, free: 14.21 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.276e-05/2.183, allocations: 6.125 kB / 0.8472 GB, free: 14.2 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007612/2.191, allocations: 3.156 MB / 0.8503 GB, free: 11.23 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006844/2.197, allocations: 1.059 MB / 0.8514 GB, free: 10.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3342/2.532, allocations: 12.16 MB / 0.8632 GB, free: 91.87 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01067/2.542, allocations: 5.091 MB / 0.8682 GB, free: 91.04 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002033/2.544, allocations: 349.1 kB / 0.8685 GB, free: 91.04 MB / 490.7 MB Notification: Performance of SimCode: time 1.8e-06/2.544, allocations: 1.219 kB / 0.8685 GB, free: 91.04 MB / 490.7 MB Notification: Performance of Templates: time 0.6744/3.219, allocations: 318.5 MB / 1.18 GB, free: 31.63 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_Polyphase.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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseFunctions.cpp:366:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseFunctions.cpp:343:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseFunctions.cpp:403:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseFunctions.cpp:380:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMEE_Generator_PolyphaseCalcHelperMain.o] Error 1