Running command: translateModel(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor,tolerance=1e-06,outputFormat="empty",numberOfIntervals=400000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor") Notification: Performance of loadModel(Modelica): time 2.037/2.037, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.148e-05/3.142e-05, allocations: 4 kB / 294.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.115, allocations: 50.42 MB / 345 MB, free: 8.914 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor): time 0.04626/0.1614, allocations: 26.28 MB / 371.3 MB, free: 14.54 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.02453/0.186, allocations: 8.4 MB / 379.7 MB, free: 6.125 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006974/0.193, allocations: 271.2 kB / 380 MB, free: 5.859 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.008133/0.2012, allocations: 1.811 MB / 381.8 MB, free: 4.039 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01442/0.2156, allocations: 2.971 MB / 384.7 MB, free: 1.059 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008376/0.2241, allocations: 1.524 MB / 386.3 MB, free: 15.53 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02527/0.2494, allocations: 9.651 MB / 395.9 MB, free: 5.863 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3961/0.6455, allocations: 15.05 MB / 411 MB, free: 7.402 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0106/0.6562, allocations: 3.644 MB / 414.6 MB, free: 7.398 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01168/0.6679, allocations: 4.188 MB / 418.8 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006384/0.6744, allocations: 0.6861 MB / 419.5 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004016/0.6784, allocations: 391.2 kB / 419.9 MB, free: 7.391 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.004695/0.6832, allocations: 1.891 MB / 421.7 MB, free: 7.391 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004938/0.6882, allocations: 0.862 MB / 422.6 MB, free: 7.391 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.02985/0.7181, allocations: 21.18 MB / 443.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.7181, allocations: 0 / 443.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.685e-06/0.7181, allocations: 0 / 443.8 MB, free: 10.44 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0008642/0.719, allocations: 4 kB / 443.8 MB, free: 10.43 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3019 * Number of variables: 3019 Notification: Performance of Generate backend data structure: time 0.05417/0.7732, allocations: 11.95 MB / 455.7 MB, free: 15.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.568e-05/0.7733, allocations: 8.031 kB / 455.7 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05939/0.8327, allocations: 6.649 MB / 462.4 MB, free: 9.508 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02568/0.8584, allocations: 7.831 MB / 470.2 MB, free: 4.934 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001323/0.8598, allocations: 0.8108 MB / 471 MB, free: 4.469 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005541/0.8654, allocations: 1.076 MB / 472.1 MB, free: 3.754 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06526/0.9307, allocations: 17.24 MB / 489.4 MB, free: 5.512 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007314/0.9314, allocations: 15.89 kB / 489.4 MB, free: 5.496 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004895/0.9364, allocations: 451.6 kB / 489.8 MB, free: 5.066 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001194/0.9376, allocations: 0.6397 MB / 490.4 MB, free: 4.426 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05947/0.9971, allocations: 16.29 MB / 0.4949 GB, free: 4.129 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1747/1.172, allocations: 55.56 MB / 0.5491 GB, free: 12.33 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.6489/1.821, allocations: 33.27 MB / 0.5816 GB, free: 104.6 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03498/1.856, allocations: 10.35 MB / 0.5917 GB, free: 102.2 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009254/1.865, allocations: 3.123 MB / 0.5948 GB, free: 100.9 MB / 458.8 MB Notification: Performance of pre-optimization done (n=442): time 1.915e-05/1.865, allocations: 1.344 kB / 0.5948 GB, free: 100.9 MB / 458.8 MB Notification: Performance of matching and sorting (n=460): time 0.08884/1.954, allocations: 23.68 MB / 0.6179 GB, free: 90.97 MB / 458.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001595/1.954, allocations: 417 kB / 0.6183 GB, free: 90.53 MB / 458.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00999/1.964, allocations: 3.991 MB / 0.6222 GB, free: 89 MB / 458.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000939/1.965, allocations: 105.1 kB / 0.6223 GB, free: 88.91 MB / 458.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.004632/1.97, allocations: 4.513 MB / 0.6267 GB, free: 85.46 MB / 458.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.002311/1.972, allocations: 1.569 MB / 0.6282 GB, free: 84.26 MB / 458.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007272/1.973, allocations: 119.6 kB / 0.6284 GB, free: 84.16 MB / 458.8 MB Notification: Performance of setup shared object (initialization): time 0.0004594/1.974, allocations: 0.5524 MB / 0.6289 GB, free: 83.74 MB / 458.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007617/1.981, allocations: 2.842 MB / 0.6317 GB, free: 82.61 MB / 458.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009525/1.991, allocations: 5.001 MB / 0.6366 GB, free: 78.76 MB / 458.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009745/2.001, allocations: 3.883 MB / 0.6403 GB, free: 76.96 MB / 458.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.683e-05/2.001, allocations: 17.47 kB / 0.6404 GB, free: 76.96 MB / 458.8 MB Notification: Performance of matching and sorting (n=778) (initialization): time 0.02792/2.029, allocations: 9.368 MB / 0.6495 GB, free: 69.49 MB / 458.8 MB Notification: Performance of prepare postOptimizeDAE: time 6.659e-05/2.029, allocations: 32 kB / 0.6495 GB, free: 69.46 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001155/2.029, allocations: 64 kB / 0.6496 GB, free: 69.4 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006822/2.036, allocations: 1.502 MB / 0.6511 GB, free: 67.89 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009996/2.046, allocations: 1.338 MB / 0.6524 GB, free: 66.55 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03017/2.076, allocations: 16.64 MB / 0.6686 GB, free: 49.27 MB / 458.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00762/2.084, allocations: 363.7 kB / 0.669 GB, free: 48.91 MB / 458.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001472/2.085, allocations: 288 kB / 0.6693 GB, free: 48.63 MB / 458.8 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 295 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.dutyCycle.nextTimeEvent,dutyCycle.nextTimeEvent,$PRE.dutyCycle.nextTimeEventScaled,dutyCycle.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (694): * Single equations (assignments): 688 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 5 * 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: 5 {(1,100.0%) 5,(1,100.0%) 4,(1,100.0%) 13,(1,100.0%) 4,(14,38.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01009/2.095, allocations: 3.893 MB / 0.6731 GB, free: 44.73 MB / 458.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001572/2.097, allocations: 0.5016 MB / 0.6735 GB, free: 44.22 MB / 458.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02405/2.121, allocations: 8.036 MB / 0.6814 GB, free: 36.11 MB / 458.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.966e-05/2.121, allocations: 48 kB / 0.6814 GB, free: 36.06 MB / 458.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.129e-05/2.121, allocations: 16 kB / 0.6815 GB, free: 36.04 MB / 458.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000123/2.121, allocations: 27.84 kB / 0.6815 GB, free: 36.02 MB / 458.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04805/2.169, allocations: 17.79 MB / 0.6988 GB, free: 18.12 MB / 458.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.437e-05/2.169, allocations: 4 kB / 0.6989 GB, free: 18.12 MB / 458.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006815/2.176, allocations: 0.7684 MB / 0.6996 GB, free: 17.35 MB / 458.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007394/2.184, allocations: 1.55 MB / 0.7011 GB, free: 15.78 MB / 458.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00112/2.185, allocations: 108 kB / 0.7012 GB, free: 15.68 MB / 458.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03608/2.221, allocations: 19.93 MB / 0.7207 GB, free: 10.83 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.664e-06/2.221, allocations: 4 kB / 0.7207 GB, free: 10.82 MB / 474.8 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03671/2.258, allocations: 12.1 MB / 0.7325 GB, free: 14.43 MB / 490.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004523/2.262, allocations: 1.162 MB / 0.7336 GB, free: 13.24 MB / 490.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002188/2.264, allocations: 92 kB / 0.7337 GB, free: 13.15 MB / 490.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005952/2.27, allocations: 251.7 kB / 0.734 GB, free: 12.9 MB / 490.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001711/2.272, allocations: 340.8 kB / 0.7343 GB, free: 12.57 MB / 490.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009182/2.273, allocations: 140 kB / 0.7344 GB, free: 12.43 MB / 490.8 MB Notification: Performance of sorting global known variables: time 0.009062/2.282, allocations: 3.038 MB / 0.7374 GB, free: 9.395 MB / 490.8 MB Notification: Performance of sort global known variables: time 7.22e-07/2.282, allocations: 3.938 kB / 0.7374 GB, free: 9.391 MB / 490.8 MB Notification: Performance of remove unused functions: time 0.01132/2.294, allocations: 1.882 MB / 0.7392 GB, free: 7.512 MB / 490.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * Number of states: 11 (imcQS.rotorCage.port_p.reference.gamma,massQS.s,massQS.v,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,mass.s,mass.v) * Number of discrete variables: 3 ($whenCondition1,dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Number of discrete states: 2 (dutyCycle.nextTimeEvent,dutyCycle.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (404): * Single equations (assignments): 395 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(1,100.0%) 3,(14,37.8%) 44,(1,100.0%) 13,(1,100.0%) 8,(1,100.0%) 3,(2,100.0%) 12} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002562/2.296, allocations: 0.5638 MB / 0.7398 GB, free: 7.078 MB / 490.8 MB Notification: Performance of simCode: created initialization part: time 0.3482/2.644, allocations: 8.176 MB / 0.7478 GB, free: 155 MB / 490.8 MB Notification: Performance of simCode: created event and clocks part: time 1.439e-05/2.645, allocations: 4.375 kB / 0.7478 GB, free: 155 MB / 490.8 MB Notification: Performance of simCode: created simulation system equations: time 0.01512/2.66, allocations: 4.756 MB / 0.7524 GB, free: 154 MB / 490.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01038/2.67, allocations: 1.206 MB / 0.7536 GB, free: 154 MB / 490.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05978/2.73, allocations: 23.13 MB / 0.7762 GB, free: 143.5 MB / 490.8 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01567/2.746, allocations: 6.808 MB / 0.7828 GB, free: 141.1 MB / 490.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003194/2.749, allocations: 450.5 kB / 0.7833 GB, free: 141 MB / 490.8 MB Notification: Performance of SimCode: time 2.675e-06/2.749, allocations: 0 / 0.7833 GB, free: 141 MB / 490.8 MB Notification: Performance of Templates: time 1.505/4.254, allocations: 494 MB / 1.266 GB, free: 24.77 MB / 0.4949 GB make -j1 -f Modelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Conveyor.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_ConveyorCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:221:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp588.getData(), table_.getDim(1), table_.getDim(2), startTime__ext, ConstArray(columns_).getData(), columns_.getDim(1), smoothness__ext, extrapolation__ext, shiftTime__ext, timeEvents__ext, verboseRead__ext); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaStandardTables.h:142:23: note: candidate function not viable: 7th argument ('const int *') would lose const qualifier MODELICA_EXPORT void* ModelicaStandardTables_CombiTimeTable_init2(_In_z_ const char* fileName, ^ In file included from OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:318:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp596 = 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_ConveyorFunctions.cpp:318:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp596 = 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_ConveyorCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorCalcHelperMain.o] Error 1