Running command: translateModel(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=160000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R") Notification: Performance of loadModel(Modelica): time 1.937/1.937, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.878e-05/2.89e-05, allocations: 4 kB / 292.1 MB, free: 8.828 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08992/0.08997, allocations: 50.41 MB / 342.6 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4156/0.5056, allocations: 91.2 MB / 433.7 MB, free: 3.031 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002454/0.5059, allocations: 81.95 kB / 433.8 MB, free: 2.988 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09013/0.596, allocations: 22.23 MB / 456.1 MB, free: 15.85 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.113e-06/0.5961, allocations: 0 / 456.1 MB, free: 15.85 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001313/0.5962, allocations: 32 kB / 456.1 MB, free: 15.82 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.004285/0.6005, allocations: 1.823 MB / 457.9 MB, free: 14.04 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.6006, allocations: 8.031 kB / 457.9 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005547/0.6011, allocations: 213.4 kB / 458.1 MB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002641/0.6038, allocations: 1.086 MB / 459.2 MB, free: 12.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.579e-05/0.6039, allocations: 69.92 kB / 459.3 MB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002035/0.6041, allocations: 88.69 kB / 459.4 MB, free: 12.77 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002133/0.6063, allocations: 0.9305 MB / 460.3 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.399e-05/0.6063, allocations: 0 / 460.3 MB, free: 12.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001258/0.6065, allocations: 38.3 kB / 460.3 MB, free: 12.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.64e-05/0.6065, allocations: 24 kB / 460.4 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001817/0.6083, allocations: 0.7466 MB / 461.1 MB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008117/0.6165, allocations: 3.458 MB / 464.6 MB, free: 8.812 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002424/0.6189, allocations: 0.9405 MB / 465.5 MB, free: 7.863 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001034/0.62, allocations: 431 kB / 465.9 MB, free: 7.441 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.137e-05/0.6201, allocations: 12.77 kB / 465.9 MB, free: 7.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001343/0.6214, allocations: 0.6058 MB / 466.5 MB, free: 6.801 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 4.429e-06/0.6215, allocations: 4 kB / 466.5 MB, free: 6.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.002675/0.6241, allocations: 1.003 MB / 467.5 MB, free: 5.785 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001467/0.6243, allocations: 196.7 kB / 467.7 MB, free: 5.551 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004381/0.6287, allocations: 1.91 MB / 469.6 MB, free: 3.594 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002458/0.629, allocations: 57.69 kB / 469.7 MB, free: 3.531 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005974/0.6296, allocations: 0.5278 MB / 470.2 MB, free: 2.996 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003677/0.63, allocations: 260.3 kB / 470.5 MB, free: 2.738 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.664e-05/0.6301, allocations: 16 kB / 470.5 MB, free: 2.723 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.6303, allocations: 350.8 kB / 470.8 MB, free: 2.371 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008317/0.6311, allocations: 353.9 kB / 471.2 MB, free: 2.027 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001086/0.6322, allocations: 0.6019 MB / 471.8 MB, free: 1.309 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009764/0.6332, allocations: 439.5 kB / 472.2 MB, free: 0.8711 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.6333, allocations: 4 kB / 472.2 MB, free: 0.8672 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002495/0.6358, allocations: 1.053 MB / 473.3 MB, free: 15.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002033/0.6378, allocations: 2.91 MB / 476.2 MB, free: 12.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/0.6379, allocations: 8 kB / 476.2 MB, free: 12.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005897/0.6385, allocations: 100.8 kB / 476.3 MB, free: 12.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001359/0.6399, allocations: 235.6 kB / 476.5 MB, free: 12.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002785/0.6427, allocations: 1.874 MB / 478.4 MB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.6444, allocations: 223.1 kB / 478.6 MB, free: 10.09 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001166/0.6445, allocations: 39.98 kB / 478.7 MB, free: 10.05 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.251e-05/0.6445, allocations: 4 kB / 478.7 MB, free: 10.05 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002413/0.6469, allocations: 1.013 MB / 479.7 MB, free: 9.027 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.625e-05/0.647, allocations: 8.219 kB / 479.7 MB, free: 9.02 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003813/0.6474, allocations: 104.9 kB / 479.8 MB, free: 8.914 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001172/0.6486, allocations: 219.6 kB / 480 MB, free: 8.699 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002653/0.6512, allocations: 1.854 MB / 481.9 MB, free: 6.711 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008358/0.6521, allocations: 151.3 kB / 482 MB, free: 6.562 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.6522, allocations: 36 kB / 482 MB, free: 6.527 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 40 ($PRE.meanPower.y_last,meanPower.y_last,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.iH01.mean1.y_last,iH01.mean1.y_last,$PRE.iH01.mean2.y_last,iH01.mean2.y_last,$PRE.iRMS.mean.y_last,iRMS.mean.y_last,$PRE.vH01.mean1.y_last,vH01.mean1.y_last,$PRE.vH01.mean2.y_last,vH01.mean2.y_last,$PRE.vRMS.mean.y_last,vRMS.mean.y_last,$whenCondition10,$whenCondition9,$whenCondition8,$PRE.triac.thyristor1.off,triac.thyristor1.off,$PRE.triac.thyristor2.off,triac.thyristor2.off,adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$PRE.adaptor.timerPositive[1].entryTime,adaptor.timerPositive[1].entryTime,$PRE.adaptor.timerNegative[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],$PRE.trapezoid.T_start,trapezoid.T_start,$PRE.trapezoid.count,trapezoid.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 8} Notification: Performance of prepare postOptimizeDAE: time 0.0003753/0.6526, allocations: 180.7 kB / 482.2 MB, free: 6.344 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005147/0.6531, allocations: 185.7 kB / 482.4 MB, free: 6.16 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002769/0.6559, allocations: 1.086 MB / 483.5 MB, free: 5.062 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.656, allocations: 8 kB / 483.5 MB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.131e-06/0.656, allocations: 0 / 483.5 MB, free: 5.055 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.69e-05/0.656, allocations: 7.938 kB / 483.5 MB, free: 5.047 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005734/0.6617, allocations: 2.667 MB / 486.2 MB, free: 2.305 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.791e-06/0.6618, allocations: 4.062 kB / 486.2 MB, free: 2.301 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009992/0.6628, allocations: 163.8 kB / 486.3 MB, free: 2.141 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003663/0.6632, allocations: 84.77 kB / 486.4 MB, free: 2.055 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001045/0.6633, allocations: 31.91 kB / 486.4 MB, free: 2.023 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00255/0.6659, allocations: 1.773 MB / 488.2 MB, free: 120 kB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.618e-06/0.6659, allocations: 0 / 488.2 MB, free: 120 kB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003515/0.6694, allocations: 1.611 MB / 489.8 MB, free: 14.47 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001257/0.6707, allocations: 0.5335 MB / 490.4 MB, free: 13.91 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000665/0.6714, allocations: 31.98 kB / 490.4 MB, free: 13.88 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003006/0.6744, allocations: 163.8 kB / 490.5 MB, free: 13.72 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005995/0.6751, allocations: 92.64 kB / 490.6 MB, free: 13.63 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002233/0.6753, allocations: 31.97 kB / 490.7 MB, free: 13.6 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.01063/0.686, allocations: 1.507 MB / 492.2 MB, free: 12.06 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.864e-06/0.686, allocations: 0 / 492.2 MB, free: 12.06 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005179/0.6912, allocations: 0.5455 MB / 492.7 MB, free: 11.52 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 10 (adaptor.filter[1].firstOrder.y,adaptor.filter[1].transferFunction[1].x_scaled[1],adaptor.filter[1].transferFunction[2].x_scaled[1],meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x) * Number of discrete variables: 27 (adaptor.positiveThreshold[1].y,adaptor.negativeThreshold[1].y,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,triac.thyristor1.off,triac.thyristor2.off,adaptor.timerPositive[1].entryTime,adaptor.timerNegative[1].entryTime,adaptor.fire_p[1],adaptor.fire_n[1],trapezoid.T_start,trapezoid.count,meanPower.y_last,vRMS.mean.y_last,vH01.mean1.y_last,vH01.mean2.y_last,iRMS.mean.y_last,iH01.mean1.y_last,iH01.mean2.y_last) * Number of discrete states: 10 (trapezoid.count,meanPower.x,vRMS.mean.x,vH01.mean1.x,vH01.mean2.x,iRMS.mean.x,iH01.mean1.x,iH01.mean2.x,triac.thyristor1.off,triac.thyristor2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (75): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 11 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.00277/0.694, allocations: 414.3 kB / 493.1 MB, free: 11.21 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.03218/0.7262, allocations: 1.735 MB / 494.9 MB, free: 9.43 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.444e-05/0.7263, allocations: 448 / 494.9 MB, free: 9.43 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01908/0.7454, allocations: 0.5826 MB / 495.4 MB, free: 8.836 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002889/0.7484, allocations: 190.7 kB / 495.6 MB, free: 8.645 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01502/0.7634, allocations: 2.963 MB / 498.6 MB, free: 5.633 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002407/0.7659, allocations: 1.434 MB / 0.4883 GB, free: 4.168 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006153/0.7665, allocations: 91.41 kB / 0.4884 GB, free: 4.078 MB / 410.7 MB Notification: Performance of SimCode: time 1.961e-06/0.7665, allocations: 4 kB / 0.4884 GB, free: 4.074 MB / 410.7 MB Notification: Performance of Templates: time 0.04414/0.8107, allocations: 21.93 MB / 0.5098 GB, free: 14.14 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R.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.PowerConverters.Examples.ACAC.Dimmer_RCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RFunctions.cpp:162:31: error: no matching function for call to 'ModelicaStandardTables_CombiTable1D_init2' externalCombiTable1D__ext = ModelicaStandardTables_CombiTable1D_init2(fileName_.c_str(), tableName_.c_str(), tmp42.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, ^ 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RCalcHelperMain.o] Error 1