Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=200000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses") Notification: Performance of loadModel(Modelica): time 2.058/2.058, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.2e-05/3.221e-05, allocations: 4 kB / 292.2 MB, free: 8.789 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09252/0.09258, allocations: 50.43 MB / 342.6 MB, free: 6.348 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4444/0.537, allocations: 133.7 MB / 476.3 MB, free: 9.055 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003126/0.5374, allocations: 98.38 kB / 476.4 MB, free: 9.004 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.497/2.034, allocations: 351.8 MB / 0.8087 GB, free: 38.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.607e-06/2.034, allocations: 0 / 0.8087 GB, free: 38.05 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0006402/2.035, allocations: 215.1 kB / 0.8089 GB, free: 38.02 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: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.03932/2.074, allocations: 9.456 MB / 0.8182 GB, free: 31.45 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/2.074, allocations: 8.031 kB / 0.8182 GB, free: 31.44 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03172/2.106, allocations: 4.281 MB / 0.8223 GB, free: 27.18 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02362/2.13, allocations: 8.394 MB / 0.8305 GB, free: 18.82 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007756/2.131, allocations: 0.6888 MB / 0.8312 GB, free: 18.14 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003809/2.134, allocations: 0.9007 MB / 0.8321 GB, free: 17.25 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04336/2.178, allocations: 15.65 MB / 0.8474 GB, free: 1.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000463/2.178, allocations: 19.8 kB / 0.8474 GB, free: 1.301 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003702/2.182, allocations: 403.8 kB / 0.8478 GB, free: 0.918 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001011/2.183, allocations: 0.7465 MB / 0.8485 GB, free: 172 kB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04076/2.224, allocations: 13.67 MB / 0.8619 GB, free: 2.492 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4222/2.646, allocations: 52.52 MB / 0.9131 GB, free: 40.64 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02089/2.667, allocations: 19.94 MB / 0.9326 GB, free: 26.79 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007241/2.674, allocations: 3.579 MB / 0.9361 GB, free: 26.25 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005965/2.675, allocations: 175.2 kB / 0.9363 GB, free: 26.14 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.837e-05/2.675, allocations: 88.77 kB / 0.9364 GB, free: 26.07 MB / 458.7 MB Notification: Performance of pre-optimization done (n=453): time 9.816e-06/2.675, allocations: 0 / 0.9364 GB, free: 26.07 MB / 458.7 MB Notification: Performance of matching and sorting (n=458): time 0.03324/2.708, allocations: 13.77 MB / 0.9498 GB, free: 20.19 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.589e-05/2.708, allocations: 96.5 kB / 0.9499 GB, free: 20.12 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008683/2.717, allocations: 3.925 MB / 0.9537 GB, free: 18.69 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007856/2.718, allocations: 98.73 kB / 0.9538 GB, free: 18.61 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002716/2.721, allocations: 4.008 MB / 0.9577 GB, free: 15.69 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001905/2.723, allocations: 1.558 MB / 0.9593 GB, free: 14.48 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000666/2.723, allocations: 125.4 kB / 0.9594 GB, free: 14.39 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004887/2.724, allocations: 0.5614 MB / 0.9599 GB, free: 13.96 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006421/2.73, allocations: 2.984 MB / 0.9629 GB, free: 12.78 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008094/2.738, allocations: 5.076 MB / 0.9678 GB, free: 8.922 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008555/2.747, allocations: 4.201 MB / 0.9719 GB, free: 7.25 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.443e-05/2.747, allocations: 17.31 kB / 0.9719 GB, free: 7.25 MB / 458.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02392/2.771, allocations: 9.291 MB / 0.981 GB, free: 4.102 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.964e-05/2.771, allocations: 37.97 kB / 0.981 GB, free: 4.098 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001121/2.771, allocations: 70.92 kB / 0.9811 GB, free: 4.098 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004923/2.776, allocations: 1.371 MB / 0.9824 GB, free: 3.836 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007141/2.783, allocations: 1.379 MB / 0.9838 GB, free: 3.789 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02197/2.805, allocations: 11.59 MB / 0.9951 GB, free: 13.04 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006217/2.812, allocations: 364.8 kB / 0.9955 GB, free: 12.93 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001563/2.813, allocations: 296.9 kB / 0.9957 GB, free: 12.88 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (723): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,45.9%) 54} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002302/2.816, allocations: 491.2 kB / 0.9962 GB, free: 12.55 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001536/2.817, allocations: 461.4 kB / 0.9966 GB, free: 12.32 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02171/2.839, allocations: 8.422 MB / 1.005 GB, free: 8.992 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0162/2.855, allocations: 6.136 MB / 1.011 GB, free: 4.789 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.325e-05/2.855, allocations: 16 kB / 1.011 GB, free: 4.773 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.686e-05/2.855, allocations: 21.56 kB / 1.011 GB, free: 4.773 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05055/2.906, allocations: 17.86 MB / 1.028 GB, free: 6.242 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.323e-05/2.906, allocations: 8 kB / 1.028 GB, free: 6.234 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005105/2.911, allocations: 0.7979 MB / 1.029 GB, free: 5.566 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004843/2.916, allocations: 1.253 MB / 1.03 GB, free: 4.59 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009346/2.917, allocations: 106.9 kB / 1.03 GB, free: 4.496 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02151/2.939, allocations: 10.52 MB / 1.041 GB, free: 10.94 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.709e-05/2.939, allocations: 14.33 kB / 1.041 GB, free: 10.93 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02833/2.967, allocations: 11.98 MB / 1.052 GB, free: 0 / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.3207/3.288, allocations: 1.128 MB / 1.054 GB, free: 93.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001409/3.289, allocations: 89.88 kB / 1.054 GB, free: 93.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004099/3.293, allocations: 247.8 kB / 1.054 GB, free: 93.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001359/3.295, allocations: 326.7 kB / 1.054 GB, free: 93.49 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005902/3.295, allocations: 136.3 kB / 1.054 GB, free: 93.49 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007759/3.303, allocations: 2.995 MB / 1.057 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.852e-06/3.303, allocations: 0 / 1.057 GB, free: 93.29 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01002/3.313, allocations: 1.794 MB / 1.059 GB, free: 93.29 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (420): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(14,44.4%) 54} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002879/3.316, allocations: 0.8883 MB / 1.06 GB, free: 93.13 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.01977/3.336, allocations: 7.628 MB / 1.067 GB, free: 92.75 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-05/3.336, allocations: 4.828 kB / 1.067 GB, free: 92.75 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01767/3.354, allocations: 3.814 MB / 1.071 GB, free: 92.46 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01124/3.365, allocations: 0.9381 MB / 1.072 GB, free: 92.43 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06484/3.43, allocations: 15.42 MB / 1.087 GB, free: 89.6 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0121/3.442, allocations: 6.485 MB / 1.093 GB, free: 88.73 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002384/3.444, allocations: 425.4 kB / 1.094 GB, free: 88.72 MB / 0.4948 GB Notification: Performance of SimCode: time 1.843e-06/3.444, allocations: 4 kB / 1.094 GB, free: 88.72 MB / 0.4948 GB Notification: Performance of Templates: time 0.6004/4.045, allocations: 216 MB / 1.305 GB, free: 89.48 MB / 0.4948 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.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/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:316:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp134.getData(), table_.getDim(1), table_.getDim(2), ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:269:23: note: candidate function not viable: 6th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTable1D_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:667:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp167 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:667:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp167 = std::sqrt((std::pow(u_(UNKNOWN_SUBSCRIPT).re_, 2.0) + std::pow(u_(UNKNOWN_SUBSCRIPT).im_, 2.0))); ^ 3 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1