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 1.892/1.892, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.39e-05/3.401e-05, allocations: 6.188 kB / 292.2 MB, free: 8.812 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09227/0.09233, allocations: 50.41 MB / 342.6 MB, free: 6.383 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4846/0.577, allocations: 153.1 MB / 495.7 MB, free: 6.07 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002915/0.5773, allocations: 101.1 kB / 495.8 MB, free: 6.016 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.637/2.215, allocations: 356.1 MB / 0.8319 GB, free: 33.77 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.838e-06/2.215, allocations: 0 / 0.8319 GB, free: 33.77 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0009058/2.216, allocations: 263.6 kB / 0.8321 GB, free: 33.51 MB / 458.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.04371/2.259, allocations: 10.37 MB / 0.8423 GB, free: 23.04 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.168e-05/2.259, allocations: 16.02 kB / 0.8423 GB, free: 23.02 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03477/2.294, allocations: 4.758 MB / 0.8469 GB, free: 18.25 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02989/2.324, allocations: 9.563 MB / 0.8563 GB, free: 8.605 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001175/2.325, allocations: 0.7868 MB / 0.857 GB, free: 7.816 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004717/2.33, allocations: 1.051 MB / 0.858 GB, free: 6.766 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7391/3.069, allocations: 16.85 MB / 0.8745 GB, free: 33.52 MB / 458.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005892/3.07, allocations: 15.55 kB / 0.8745 GB, free: 33.52 MB / 458.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004115/3.074, allocations: 457.1 kB / 0.875 GB, free: 33.52 MB / 458.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001243/3.075, allocations: 0.7618 MB / 0.8757 GB, free: 33.5 MB / 458.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04366/3.119, allocations: 15.01 MB / 0.8904 GB, free: 33.45 MB / 458.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1191/3.238, allocations: 55.61 MB / 0.9447 GB, free: 17.41 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03336/3.271, allocations: 33.13 MB / 0.977 GB, free: 3.949 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00943/3.281, allocations: 4.339 MB / 0.9813 GB, free: 2.254 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03269/3.314, allocations: 12.24 MB / 0.9932 GB, free: 12.69 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007214/3.321, allocations: 3.002 MB / 0.9961 GB, free: 11.42 MB / 490.8 MB Notification: Performance of pre-optimization done (n=432): time 1.082e-05/3.321, allocations: 0 / 0.9961 GB, free: 11.42 MB / 490.8 MB Notification: Performance of matching and sorting (n=450): time 0.04773/3.369, allocations: 17.54 MB / 1.013 GB, free: 3.27 MB / 490.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002774/3.369, allocations: 409.1 kB / 1.014 GB, free: 2.828 MB / 490.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009917/3.379, allocations: 3.972 MB / 1.018 GB, free: 1.266 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0008786/3.38, allocations: 103.2 kB / 1.018 GB, free: 1.176 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.006135/3.386, allocations: 4.529 MB / 1.022 GB, free: 13.71 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.002523/3.389, allocations: 1.54 MB / 1.024 GB, free: 12.5 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006933/3.389, allocations: 121.8 kB / 1.024 GB, free: 12.38 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 0.0006346/3.39, allocations: 0.5463 MB / 1.024 GB, free: 11.89 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007059/3.397, allocations: 2.748 MB / 1.027 GB, free: 9.398 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009614/3.407, allocations: 4.863 MB / 1.032 GB, free: 4.012 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009274/3.416, allocations: 3.825 MB / 1.035 GB, free: 0.7891 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.337e-05/3.416, allocations: 16 kB / 1.035 GB, free: 0.7734 MB / 0.4949 GB Notification: Performance of matching and sorting (n=770) (initialization): time 0.02557/3.442, allocations: 8.985 MB / 1.044 GB, free: 9.375 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 8.817e-05/3.442, allocations: 35.95 kB / 1.044 GB, free: 9.34 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001187/3.442, allocations: 64 kB / 1.044 GB, free: 9.277 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005882/3.448, allocations: 1.5 MB / 1.046 GB, free: 8.09 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007419/3.455, allocations: 1.324 MB / 1.047 GB, free: 7.051 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4045/3.86, allocations: 16.31 MB / 1.063 GB, free: 86.23 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01426/3.874, allocations: 361 kB / 1.063 GB, free: 86.23 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001624/3.876, allocations: 285 kB / 1.064 GB, free: 86.23 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 297 * 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 (686): * Single equations (assignments): 680 * 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%) 4,(1,100.0%) 5,(1,100.0%) 13,(1,100.0%) 4,(14,41.8%) 44} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002025/3.878, allocations: 483.3 kB / 1.064 GB, free: 86.12 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001504/3.879, allocations: 0.5024 MB / 1.065 GB, free: 86.12 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02808/3.907, allocations: 7.832 MB / 1.072 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-05/3.908, allocations: 46.44 kB / 1.072 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.436e-05/3.908, allocations: 17.25 kB / 1.072 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001284/3.908, allocations: 23.39 kB / 1.072 GB, free: 85.63 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04751/3.955, allocations: 17.51 MB / 1.089 GB, free: 84.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.184e-05/3.955, allocations: 3.719 kB / 1.089 GB, free: 84.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004677/3.96, allocations: 0.7444 MB / 1.09 GB, free: 84.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005856/3.966, allocations: 1.568 MB / 1.092 GB, free: 84.35 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001016/3.967, allocations: 108.9 kB / 1.092 GB, free: 84.35 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02838/3.995, allocations: 19.52 MB / 1.111 GB, free: 75.21 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.2e-06/3.995, allocations: 3.594 kB / 1.111 GB, free: 75.21 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02576/4.021, allocations: 11.75 MB / 1.122 GB, free: 73.78 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003953/4.025, allocations: 1.159 MB / 1.123 GB, free: 73.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001812/4.027, allocations: 106.5 kB / 1.123 GB, free: 73.58 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004919/4.032, allocations: 248.4 kB / 1.124 GB, free: 73.58 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001402/4.033, allocations: 335.1 kB / 1.124 GB, free: 73.57 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007134/4.034, allocations: 131.5 kB / 1.124 GB, free: 73.57 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.007162/4.041, allocations: 3.014 MB / 1.127 GB, free: 73.36 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.224e-06/4.041, allocations: 0 / 1.127 GB, free: 73.36 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01035/4.052, allocations: 1.944 MB / 1.129 GB, free: 73.36 MB / 0.5105 GB 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.core.Phi.re,imc.stator.core.Phi.im,imc.stator.zeroInductor.i0,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 (395): * Single equations (assignments): 386 * 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%) 3,(14,41.8%) 44,(1,100.0%) 5,(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.002938/4.055, allocations: 1.001 MB / 1.13 GB, free: 73.17 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01719/4.072, allocations: 7.701 MB / 1.138 GB, free: 72.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.011e-05/4.072, allocations: 3.031 kB / 1.138 GB, free: 72.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.01055/4.083, allocations: 4.439 MB / 1.142 GB, free: 71.29 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00796/4.091, allocations: 1.206 MB / 1.143 GB, free: 70.97 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04487/4.135, allocations: 16.39 MB / 1.159 GB, free: 64.48 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01456/4.15, allocations: 6.814 MB / 1.166 GB, free: 62.07 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002615/4.153, allocations: 438.4 kB / 1.166 GB, free: 62.04 MB / 0.5105 GB Notification: Performance of SimCode: time 2.046e-06/4.153, allocations: 4 kB / 1.166 GB, free: 62.04 MB / 0.5105 GB Notification: Performance of Templates: time 1.638/5.79, allocations: 494.5 MB / 1.649 GB, free: 135.2 MB / 0.5574 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 -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_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:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:257:33: error: no matching function for call to 'ModelicaStandardTables_CombiTimeTable_init2' externalCombiTimeTable__ext = ModelicaStandardTables_CombiTimeTable_init2(fileName_.c_str(), tableName_.c_str(), tmp100.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:28: ./OMCppModelica_trunk_cpp_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_ConveyorFunctions.cpp:632:43: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = 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:632:86: error: use of undeclared identifier 'UNKNOWN_SUBSCRIPT' tmp137 = 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