Running command: translateModel(Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLosses") Notification: Performance of loadModel(Modelica): time 2.01/2.01, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.679e-05/2.689e-05, allocations: 0 / 292.1 MB, free: 8.855 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09083/0.09088, allocations: 50.43 MB / 342.6 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4793/0.5703, allocations: 110.2 MB / 452.8 MB, free: 264 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002643/0.5706, allocations: 88.27 kB / 452.9 MB, free: 220 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2106/0.7812, allocations: 52.38 MB / 0.4934 GB, free: 80 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.029e-06/0.7813, allocations: 0 / 0.4934 GB, free: 80 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002242/0.7815, allocations: 71.88 kB / 0.4935 GB, free: 8 kB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 524 * Number of variables: 524 Notification: Performance of Generate backend data structure: time 0.006412/0.7879, allocations: 2.424 MB / 0.4959 GB, free: 13.52 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.553e-05/0.788, allocations: 8.875 kB / 0.4959 GB, free: 13.51 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00134/0.7893, allocations: 332.3 kB / 0.4962 GB, free: 13.18 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004897/0.7943, allocations: 1.771 MB / 0.4979 GB, free: 11.36 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001994/0.7945, allocations: 148 kB / 0.4981 GB, free: 11.21 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006202/0.7951, allocations: 207.9 kB / 0.4983 GB, free: 11.01 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006031/0.8012, allocations: 2.569 MB / 0.5008 GB, free: 8.316 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.433e-05/0.8013, allocations: 7.906 kB / 0.5008 GB, free: 8.309 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003007/0.8016, allocations: 84 kB / 0.5009 GB, free: 8.227 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001294/0.8017, allocations: 83.94 kB / 0.5009 GB, free: 8.145 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004994/0.8068, allocations: 2.027 MB / 0.5029 GB, free: 6.117 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01851/0.8253, allocations: 8.326 MB / 0.511 GB, free: 13.59 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003615/0.8289, allocations: 1.574 MB / 0.5126 GB, free: 11.96 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00217/0.8312, allocations: 0.9805 MB / 0.5135 GB, free: 10.98 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003799/0.8316, allocations: 142 kB / 0.5137 GB, free: 10.82 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.797e-05/0.8316, allocations: 47.56 kB / 0.5137 GB, free: 10.76 MB / 442.7 MB Notification: Performance of pre-optimization done (n=119): time 5.717e-06/0.8316, allocations: 0 / 0.5137 GB, free: 10.76 MB / 442.7 MB Notification: Performance of matching and sorting (n=135): time 0.01333/0.845, allocations: 5.026 MB / 0.5186 GB, free: 5.668 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.8451, allocations: 68.72 kB / 0.5187 GB, free: 5.586 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00418/0.8493, allocations: 1.858 MB / 0.5205 GB, free: 3.68 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002676/0.8496, allocations: 49.7 kB / 0.5206 GB, free: 3.625 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.8506, allocations: 1.008 MB / 0.5215 GB, free: 2.605 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006582/0.8513, allocations: 461.2 kB / 0.522 GB, free: 2.148 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000134/0.8514, allocations: 28 kB / 0.522 GB, free: 2.121 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002414/0.8517, allocations: 370.7 kB / 0.5224 GB, free: 1.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001711/0.8534, allocations: 0.7068 MB / 0.523 GB, free: 1.043 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2656/1.119, allocations: 0.9529 MB / 0.524 GB, free: 113.1 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00241/1.122, allocations: 0.8412 MB / 0.5248 GB, free: 113.1 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-05/1.122, allocations: 1.844 kB / 0.5248 GB, free: 113.1 MB / 442.7 MB Notification: Performance of matching and sorting (n=175) (initialization): time 0.006837/1.128, allocations: 2.552 MB / 0.5273 GB, free: 113 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.308e-05/1.128, allocations: 8.469 kB / 0.5273 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.822e-05/1.129, allocations: 11.48 kB / 0.5273 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003037/1.132, allocations: 0.8394 MB / 0.5281 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00168/1.133, allocations: 274.8 kB / 0.5284 GB, free: 113 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01595/1.149, allocations: 9.283 MB / 0.5375 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001743/1.151, allocations: 96.64 kB / 0.5376 GB, free: 110.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/1.151, allocations: 54.84 kB / 0.5376 GB, free: 110.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 119 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 6,(6,88.9%) 39} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003323/1.152, allocations: 185.2 kB / 0.5378 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000479/1.152, allocations: 200.8 kB / 0.538 GB, free: 110.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005706/1.158, allocations: 2.467 MB / 0.5404 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-05/1.158, allocations: 16.62 kB / 0.5404 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-05/1.158, allocations: 6.625 kB / 0.5404 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.291e-05/1.158, allocations: 8.719 kB / 0.5404 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01181/1.17, allocations: 4.994 MB / 0.5453 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.012e-05/1.17, allocations: 7.125 kB / 0.5453 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00153/1.171, allocations: 213.8 kB / 0.5455 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002752/1.174, allocations: 0.7044 MB / 0.5462 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002417/1.174, allocations: 42.55 kB / 0.5462 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01127/1.186, allocations: 8.448 MB / 0.5545 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.943e-06/1.186, allocations: 3.688 kB / 0.5545 GB, free: 104.1 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007151/1.193, allocations: 3.59 MB / 0.558 GB, free: 102.5 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/1.194, allocations: 478.4 kB / 0.5584 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003723/1.195, allocations: 31.64 kB / 0.5585 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001435/1.196, allocations: 94 kB / 0.5586 GB, free: 102.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003276/1.197, allocations: 112.7 kB / 0.5587 GB, free: 102.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001439/1.197, allocations: 39.22 kB / 0.5587 GB, free: 102.1 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002647/1.199, allocations: 1.46 MB / 0.5601 GB, free: 101.6 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.165e-06/1.199, allocations: 0 / 0.5601 GB, free: 101.6 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002818/1.202, allocations: 0.5919 MB / 0.5607 GB, free: 101.5 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 8 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],loadInertia.phi,PI.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (95): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(2,100.0%) 12,(1,100.0%) 6,(2,100.0%) 19} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001806/1.204, allocations: 0.6175 MB / 0.5613 GB, free: 101.3 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004792/1.209, allocations: 2.332 MB / 0.5636 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.768e-06/1.209, allocations: 0 / 0.5636 GB, free: 100.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003102/1.212, allocations: 1.647 MB / 0.5652 GB, free: 99.45 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002462/1.215, allocations: 407.9 kB / 0.5656 GB, free: 99.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009105/1.224, allocations: 4.338 MB / 0.5698 GB, free: 97.6 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002023/1.226, allocations: 1.988 MB / 0.5718 GB, free: 96.67 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007857/1.227, allocations: 140.6 kB / 0.5719 GB, free: 96.66 MB / 442.7 MB Notification: Performance of SimCode: time 1.961e-06/1.227, allocations: 0 / 0.5719 GB, free: 96.66 MB / 442.7 MB Notification: Performance of Templates: time 0.08062/1.307, allocations: 61.56 MB / 0.632 GB, free: 54.14 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.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.Electrical.Machines.Examples.InductionMachines.IMC_withLossesCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLossesCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLossesFunctions.cpp:175:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp26.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.Electrical.Machines.Examples.InductionMachines.IMC_withLossesCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLossesFunctions.cpp:481: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.Electrical.Machines.Examples.InductionMachines.IMC_withLossesFunctions.cpp:458:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLossesFunctions.cpp:518: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.Electrical.Machines.Examples.InductionMachines.IMC_withLossesFunctions.cpp:495:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 3 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLossesCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.Machines.Examples.InductionMachines.IMC_withLossesCalcHelperMain.o] Error 1