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.027/2.027, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.735e-05/2.727e-05, allocations: 0 / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 50.41 MB / 345 MB, free: 8.922 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.03223/0.1483, allocations: 19.28 MB / 364.3 MB, free: 5.574 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01893/0.1673, allocations: 6.737 MB / 371 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005098/0.1725, allocations: 187.5 kB / 371.2 MB, free: 14.63 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00651/0.1791, allocations: 1.372 MB / 372.6 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01103/0.1902, allocations: 2.317 MB / 374.9 MB, free: 10.93 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006113/0.1963, allocations: 1.193 MB / 376.1 MB, free: 9.73 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.02151/0.2178, allocations: 8.539 MB / 384.6 MB, free: 1.168 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.049/0.2669, allocations: 16.57 MB / 401.2 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3042/0.5712, allocations: 3.167 MB / 404.4 MB, free: 17.09 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00966/0.5809, allocations: 3.505 MB / 407.9 MB, free: 17.09 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006092/0.587, allocations: 0.6368 MB / 408.5 MB, free: 17.09 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003492/0.5906, allocations: 321.8 kB / 408.8 MB, free: 17.09 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004487/0.5951, allocations: 1.634 MB / 410.4 MB, free: 17.09 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.005072/0.6002, allocations: 0.712 MB / 411.2 MB, free: 17.09 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02557/0.6258, allocations: 19.55 MB / 430.7 MB, free: 7.625 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.6259, allocations: 0 / 430.7 MB, free: 7.625 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.206e-06/0.6259, allocations: 0 / 430.7 MB, free: 7.625 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0007035/0.6266, allocations: 0 / 430.7 MB, free: 7.625 MB / 330.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.04547/0.6721, allocations: 10.84 MB / 441.5 MB, free: 1.98 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.902e-05/0.6722, allocations: 10.62 kB / 441.6 MB, free: 1.973 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05432/0.7265, allocations: 6.15 MB / 447.7 MB, free: 12.29 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02237/0.7489, allocations: 6.989 MB / 454.7 MB, free: 8.191 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001122/0.7501, allocations: 0.72 MB / 455.4 MB, free: 7.785 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005035/0.7552, allocations: 0.9447 MB / 456.4 MB, free: 7.152 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05899/0.8142, allocations: 15.98 MB / 472.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006003/0.8149, allocations: 15.89 kB / 472.4 MB, free: 10.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004605/0.8195, allocations: 399.5 kB / 472.7 MB, free: 9.875 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001009/0.8205, allocations: 0.5669 MB / 473.3 MB, free: 9.305 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05167/0.8722, allocations: 15.03 MB / 488.3 MB, free: 10.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1391/1.011, allocations: 52.68 MB / 0.5283 GB, free: 5.352 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03407/1.045, allocations: 20.06 MB / 0.5479 GB, free: 15.34 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009968/1.047, allocations: 182.2 kB / 0.5481 GB, free: 15.16 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.073e-05/1.047, allocations: 89.56 kB / 0.5482 GB, free: 15.06 MB / 458.7 MB Notification: Performance of pre-optimization done (n=453): time 7.514e-06/1.047, allocations: 0 / 0.5482 GB, free: 15.06 MB / 458.7 MB Notification: Performance of matching and sorting (n=458): time 0.4042/1.451, allocations: 20.82 MB / 0.5685 GB, free: 141.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.364e-05/1.451, allocations: 99.28 kB / 0.5686 GB, free: 141.4 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01123/1.462, allocations: 3.985 MB / 0.5725 GB, free: 140.2 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0009588/1.463, allocations: 96.08 kB / 0.5726 GB, free: 140.1 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003954/1.467, allocations: 4.012 MB / 0.5765 GB, free: 137 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002512/1.47, allocations: 1.553 MB / 0.578 GB, free: 135.8 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000767/1.471, allocations: 125.2 kB / 0.5782 GB, free: 135.7 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0006052/1.471, allocations: 0.563 MB / 0.5787 GB, free: 135.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009299/1.481, allocations: 3.083 MB / 0.5817 GB, free: 134.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01096/1.492, allocations: 5.197 MB / 0.5868 GB, free: 130.2 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/1.502, allocations: 4.269 MB / 0.591 GB, free: 128.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.371e-05/1.503, allocations: 27.16 kB / 0.591 GB, free: 128.3 MB / 458.7 MB Notification: Performance of matching and sorting (n=800) (initialization): time 0.02897/1.532, allocations: 9.66 MB / 0.6004 GB, free: 124.5 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.413e-05/1.532, allocations: 34.94 kB / 0.6005 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000136/1.532, allocations: 70 kB / 0.6005 GB, free: 124.5 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006363/1.538, allocations: 1.376 MB / 0.6019 GB, free: 124.2 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01015/1.548, allocations: 1.381 MB / 0.6032 GB, free: 124.1 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02597/1.574, allocations: 11.93 MB / 0.6149 GB, free: 115.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00755/1.582, allocations: 358.2 kB / 0.6152 GB, free: 114.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001609/1.584, allocations: 295.8 kB / 0.6155 GB, free: 114.7 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 311 * 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.01048/1.594, allocations: 3.875 MB / 0.6193 GB, free: 111.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001663/1.596, allocations: 458.3 kB / 0.6197 GB, free: 110.9 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02477/1.621, allocations: 8.581 MB / 0.6281 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01855/1.639, allocations: 6.275 MB / 0.6342 GB, free: 97.09 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.853e-05/1.639, allocations: 12 kB / 0.6342 GB, free: 97.08 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001244/1.639, allocations: 23.91 kB / 0.6343 GB, free: 97.05 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05097/1.69, allocations: 17.61 MB / 0.6515 GB, free: 79.33 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.689e-05/1.691, allocations: 8 kB / 0.6515 GB, free: 79.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006906/1.697, allocations: 0.804 MB / 0.6522 GB, free: 78.52 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005828/1.703, allocations: 1.27 MB / 0.6535 GB, free: 77.24 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000965/1.704, allocations: 104 kB / 0.6536 GB, free: 77.14 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02289/1.727, allocations: 10.86 MB / 0.6642 GB, free: 66.03 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/1.727, allocations: 11.94 kB / 0.6642 GB, free: 66.02 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04217/1.77, allocations: 11.97 MB / 0.6759 GB, free: 53.71 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.006097/1.776, allocations: 1.1 MB / 0.677 GB, free: 52.59 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003113/1.779, allocations: 88 kB / 0.6771 GB, free: 52.5 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008105/1.787, allocations: 243.7 kB / 0.6773 GB, free: 52.27 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002073/1.789, allocations: 319.6 kB / 0.6776 GB, free: 51.95 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001402/1.791, allocations: 140 kB / 0.6777 GB, free: 51.82 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.01185/1.803, allocations: 3.048 MB / 0.6807 GB, free: 48.76 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.423e-06/1.803, allocations: 0 / 0.6807 GB, free: 48.76 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.016/1.819, allocations: 1.72 MB / 0.6824 GB, free: 47.04 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 30 * 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 (418): * 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): 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.003437/1.822, allocations: 0.5334 MB / 0.6829 GB, free: 46.64 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.03372/1.856, allocations: 7.993 MB / 0.6907 GB, free: 38.63 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.153e-05/1.856, allocations: 4 kB / 0.6907 GB, free: 38.63 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01887/1.875, allocations: 3.955 MB / 0.6946 GB, free: 34.65 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01411/1.889, allocations: 0.9316 MB / 0.6955 GB, free: 33.71 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05589/1.945, allocations: 21.13 MB / 0.7161 GB, free: 12.46 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01396/1.959, allocations: 6.485 MB / 0.7225 GB, free: 5.938 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003034/1.962, allocations: 423.3 kB / 0.7229 GB, free: 5.527 MB / 458.7 MB Notification: Performance of SimCode: time 1.463e-06/1.962, allocations: 0 / 0.7229 GB, free: 5.527 MB / 458.7 MB Notification: Performance of Templates: time 1.058/3.02, allocations: 215.5 MB / 0.9333 GB, free: 149.7 MB / 490.7 MB 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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -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:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:283:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp513.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:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLossesFunctions.cpp:380:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp521 = 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:380:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp521 = 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