Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=60000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator") Notification: Performance of loadModel(Modelica): time 1.894/1.894, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.943e-05/2.949e-05, allocations: 4 kB / 292.2 MB, free: 8.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09042/0.09047, allocations: 50.42 MB / 342.6 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4382/0.5287, allocations: 137.6 MB / 480.2 MB, free: 5.586 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003052/0.529, allocations: 90.52 kB / 480.2 MB, free: 5.539 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7671/1.296, allocations: 131.5 MB / 0.5975 GB, free: 93.41 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.306e-06/1.296, allocations: 7.906 kB / 0.5975 GB, free: 93.41 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0005104/1.297, allocations: 148.1 kB / 0.5976 GB, free: 93.38 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: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.0176/1.314, allocations: 5.423 MB / 0.6029 GB, free: 89.56 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/1.314, allocations: 8.031 kB / 0.6029 GB, free: 89.55 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007947/1.322, allocations: 1.151 MB / 0.604 GB, free: 88.4 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01514/1.338, allocations: 4.914 MB / 0.6088 GB, free: 83.52 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004843/1.338, allocations: 427.3 kB / 0.6092 GB, free: 83.1 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001837/1.34, allocations: 0.5575 MB / 0.6098 GB, free: 82.55 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02221/1.362, allocations: 6.984 MB / 0.6166 GB, free: 75.39 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002381/1.363, allocations: 7.938 kB / 0.6166 GB, free: 75.39 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0013/1.364, allocations: 239.3 kB / 0.6168 GB, free: 75.16 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002367/1.364, allocations: 251.3 kB / 0.6171 GB, free: 74.91 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01497/1.379, allocations: 5.532 MB / 0.6225 GB, free: 69.38 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04767/1.427, allocations: 23.92 MB / 0.6458 GB, free: 45 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008485/1.435, allocations: 8.608 MB / 0.6543 GB, free: 35.45 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004373/1.44, allocations: 2.242 MB / 0.6564 GB, free: 33.2 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01444/1.454, allocations: 6.956 MB / 0.6632 GB, free: 26.12 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/1.454, allocations: 56.56 kB / 0.6633 GB, free: 26.05 MB / 442.7 MB Notification: Performance of pre-optimization done (n=237): time 6.444e-06/1.454, allocations: 0 / 0.6633 GB, free: 26.05 MB / 442.7 MB Notification: Performance of matching and sorting (n=288): time 0.03406/1.488, allocations: 12.13 MB / 0.6751 GB, free: 13.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.502e-05/1.488, allocations: 85.64 kB / 0.6752 GB, free: 13.75 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005761/1.494, allocations: 2.938 MB / 0.6781 GB, free: 10.83 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004683/1.495, allocations: 73.7 kB / 0.6782 GB, free: 10.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/1.496, allocations: 2.488 MB / 0.6806 GB, free: 8.254 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009977/1.497, allocations: 0.9782 MB / 0.6815 GB, free: 7.281 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002749/1.498, allocations: 72 kB / 0.6816 GB, free: 7.211 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002169/1.498, allocations: 458.7 kB / 0.682 GB, free: 6.754 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002875/1.501, allocations: 1.476 MB / 0.6835 GB, free: 5.277 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003479/1.504, allocations: 2.629 MB / 0.6861 GB, free: 2.129 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003745/1.508, allocations: 1.954 MB / 0.688 GB, free: 156 kB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-05/1.508, allocations: 12 kB / 0.688 GB, free: 144 kB / 442.7 MB Notification: Performance of matching and sorting (n=474) (initialization): time 0.3282/1.836, allocations: 5.05 MB / 0.6929 GB, free: 84.29 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.975e-05/1.836, allocations: 21.86 kB / 0.6929 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.595e-05/1.836, allocations: 44.28 kB / 0.693 GB, free: 84.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003022/1.839, allocations: 0.8647 MB / 0.6938 GB, free: 84.25 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004676/1.844, allocations: 0.8651 MB / 0.6947 GB, free: 84.25 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/1.859, allocations: 9.782 MB / 0.7042 GB, free: 80.27 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004334/1.864, allocations: 240.1 kB / 0.7044 GB, free: 80.27 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007606/1.864, allocations: 166.1 kB / 0.7046 GB, free: 80.27 MB / 442.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 (421): * Single equations (assignments): 412 * 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.0007921/1.865, allocations: 332 kB / 0.7049 GB, free: 80.16 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/1.866, allocations: 389.1 kB / 0.7053 GB, free: 80.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01036/1.877, allocations: 4.556 MB / 0.7097 GB, free: 79.73 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.305e-05/1.877, allocations: 26.38 kB / 0.7098 GB, free: 79.73 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.058e-05/1.877, allocations: 11.33 kB / 0.7098 GB, free: 79.73 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.022e-05/1.877, allocations: 11.2 kB / 0.7098 GB, free: 79.73 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02361/1.901, allocations: 9.98 MB / 0.7195 GB, free: 78.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.008343/1.909, allocations: 3.829 MB / 0.7233 GB, free: 78.29 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003103/1.912, allocations: 0.4948 MB / 0.7238 GB, free: 78.29 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003549/1.916, allocations: 0.9777 MB / 0.7247 GB, free: 78.23 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004974/1.916, allocations: 73.05 kB / 0.7248 GB, free: 78.23 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01792/1.934, allocations: 14.78 MB / 0.7392 GB, free: 67.68 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.562e-06/1.934, allocations: 9.094 kB / 0.7392 GB, free: 67.68 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01377/1.948, allocations: 7.143 MB / 0.7462 GB, free: 64.07 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002496/1.951, allocations: 0.7842 MB / 0.747 GB, free: 63.57 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001078/1.952, allocations: 63.44 kB / 0.747 GB, free: 63.53 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002912/1.955, allocations: 199.7 kB / 0.7472 GB, free: 63.49 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006003/1.955, allocations: 210.5 kB / 0.7474 GB, free: 63.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002925/1.955, allocations: 81.77 kB / 0.7475 GB, free: 63.44 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004759/1.96, allocations: 2.215 MB / 0.7496 GB, free: 62.59 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.103e-06/1.96, allocations: 0.875 kB / 0.7497 GB, free: 62.59 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.005969/1.966, allocations: 1.206 MB / 0.7508 GB, free: 62.46 MB / 442.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,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 (227): * Single equations (assignments): 218 * 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.001284/1.968, allocations: 0.6019 MB / 0.7514 GB, free: 62.28 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.009038/1.977, allocations: 4.551 MB / 0.7559 GB, free: 60.27 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.553e-06/1.977, allocations: 0 / 0.7559 GB, free: 60.27 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006072/1.983, allocations: 2.906 MB / 0.7587 GB, free: 58.75 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005435/1.988, allocations: 0.8322 MB / 0.7595 GB, free: 58.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02078/2.009, allocations: 8.584 MB / 0.7679 GB, free: 54.25 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004573/2.014, allocations: 3.535 MB / 0.7713 GB, free: 51.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001532/2.015, allocations: 280 kB / 0.7716 GB, free: 51.34 MB / 442.7 MB Notification: Performance of SimCode: time 2.074e-06/2.015, allocations: 4 kB / 0.7716 GB, free: 51.34 MB / 442.7 MB Notification: Performance of Templates: time 0.5832/2.599, allocations: 212.4 MB / 0.979 GB, free: 47.69 MB / 474.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:352:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorFunctions.cpp:389:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_GeneratorCalcHelperMain.o] Error 1