Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_RL,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.125/2.125, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.431e-05/3.438e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1126/0.1126, allocations: 50.41 MB / 342.6 MB, free: 6.309 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.486/0.5987, allocations: 91.45 MB / 434.1 MB, free: 2.465 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/0.599, allocations: 78.39 kB / 434.2 MB, free: 2.426 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1073/0.7063, allocations: 22.55 MB / 456.7 MB, free: 15.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.7064, allocations: 0 / 456.7 MB, free: 15.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0002442/0.7066, allocations: 36 kB / 456.7 MB, free: 14.98 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: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.006505/0.7132, allocations: 1.841 MB / 458.6 MB, free: 13.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.705e-05/0.7132, allocations: 16.03 kB / 458.6 MB, free: 13.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005001/0.7137, allocations: 135.3 kB / 458.7 MB, free: 13.07 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007324/0.7145, allocations: 213.4 kB / 458.9 MB, free: 12.86 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003754/0.7183, allocations: 1.084 MB / 460 MB, free: 11.91 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001156/0.7184, allocations: 71 kB / 460.1 MB, free: 11.87 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000334/0.7188, allocations: 92.91 kB / 460.2 MB, free: 11.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002827/0.7216, allocations: 0.9532 MB / 461.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.616e-05/0.7217, allocations: 0 / 461.1 MB, free: 11.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001591/0.7219, allocations: 41.3 kB / 461.2 MB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.831e-05/0.7219, allocations: 20 kB / 461.2 MB, free: 11.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002441/0.7244, allocations: 0.7685 MB / 462 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.7357, allocations: 3.528 MB / 465.5 MB, free: 7.781 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00305/0.7388, allocations: 0.947 MB / 466.4 MB, free: 6.824 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001331/0.7402, allocations: 431 kB / 466.9 MB, free: 6.402 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.527e-05/0.7403, allocations: 12.77 kB / 466.9 MB, free: 6.391 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00171/0.742, allocations: 0.6175 MB / 467.5 MB, free: 5.75 MB / 378.7 MB Notification: Performance of pre-optimization done (n=86): time 4.378e-06/0.7421, allocations: 0 / 467.5 MB, free: 5.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=86): time 0.003242/0.7453, allocations: 0.9946 MB / 468.5 MB, free: 4.746 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001501/0.7455, allocations: 204.7 kB / 468.7 MB, free: 4.504 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005518/0.751, allocations: 1.914 MB / 470.6 MB, free: 2.539 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003299/0.7514, allocations: 53.69 kB / 470.7 MB, free: 2.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007735/0.7522, allocations: 0.5318 MB / 471.2 MB, free: 1.941 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005624/0.7528, allocations: 272.2 kB / 471.5 MB, free: 1.672 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.7529, allocations: 23.94 kB / 471.5 MB, free: 1.648 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001837/0.7531, allocations: 350.8 kB / 471.8 MB, free: 1.297 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001064/0.7542, allocations: 353.8 kB / 472.2 MB, free: 0.9531 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001345/0.7556, allocations: 0.6136 MB / 472.8 MB, free: 228 kB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001275/0.7569, allocations: 443.7 kB / 473.2 MB, free: 15.78 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.196e-05/0.7569, allocations: 0 / 473.2 MB, free: 15.78 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.003177/0.7601, allocations: 1.068 MB / 474.3 MB, free: 14.7 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001274/0.7614, allocations: 2.91 MB / 477.2 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.418e-05/0.7615, allocations: 8 kB / 477.2 MB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005504/0.7621, allocations: 88.81 kB / 477.3 MB, free: 11.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001993/0.7641, allocations: 251.6 kB / 477.5 MB, free: 11.21 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002904/0.767, allocations: 1.831 MB / 479.4 MB, free: 9.25 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002359/0.7695, allocations: 223.1 kB / 479.6 MB, free: 9.031 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002494/0.7697, allocations: 36 kB / 479.6 MB, free: 8.996 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.7698, allocations: 4 kB / 479.6 MB, free: 8.992 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002917/0.7727, allocations: 1.02 MB / 480.6 MB, free: 7.961 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.008e-05/0.7728, allocations: 8 kB / 480.6 MB, free: 7.953 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003944/0.7732, allocations: 92.94 kB / 480.7 MB, free: 7.859 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.7751, allocations: 239.9 kB / 481 MB, free: 7.625 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002701/0.7778, allocations: 1.808 MB / 482.8 MB, free: 5.684 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00128/0.7791, allocations: 147.3 kB / 482.9 MB, free: 5.539 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.7793, allocations: 40 kB / 483 MB, free: 5.5 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 (114): * Single equations (assignments): 112 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0004226/0.7797, allocations: 180.7 kB / 483.1 MB, free: 5.316 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/0.7803, allocations: 185.7 kB / 483.3 MB, free: 5.133 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003536/0.7839, allocations: 1.094 MB / 484.4 MB, free: 4.027 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-05/0.784, allocations: 8 kB / 484.4 MB, free: 4.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.313e-06/0.784, allocations: 3.953 kB / 484.4 MB, free: 4.016 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.54e-05/0.784, allocations: 3.984 kB / 484.4 MB, free: 4.012 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007502/0.7915, allocations: 2.687 MB / 487.1 MB, free: 1.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.195e-06/0.7916, allocations: 0 / 487.1 MB, free: 1.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001576/0.7932, allocations: 175.8 kB / 487.3 MB, free: 1.078 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004357/0.7936, allocations: 76.75 kB / 487.4 MB, free: 1 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/0.7938, allocations: 27.98 kB / 487.4 MB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002729/0.7966, allocations: 1.812 MB / 489.2 MB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.7966, allocations: 0 / 489.2 MB, free: 15.02 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004425/0.8011, allocations: 1.635 MB / 490.8 MB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001896/0.803, allocations: 0.5297 MB / 491.4 MB, free: 12.79 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004538/0.8035, allocations: 32.05 kB / 491.4 MB, free: 12.76 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002079/0.8056, allocations: 167.8 kB / 491.6 MB, free: 12.59 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004654/0.8061, allocations: 100.6 kB / 491.7 MB, free: 12.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001244/0.8063, allocations: 27.97 kB / 491.7 MB, free: 12.47 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004023/0.8103, allocations: 1.511 MB / 493.2 MB, free: 10.93 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.283e-06/0.8104, allocations: 0 / 493.2 MB, free: 10.93 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.00304/0.8134, allocations: 0.5551 MB / 493.7 MB, free: 10.37 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (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,loadInductor.i) * 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.thyristor2.off,triac.thyristor1.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (78): * Single equations (assignments): 66 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.005987/0.8195, allocations: 2.628 MB / 496.4 MB, free: 7.793 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0048/0.8243, allocations: 1.742 MB / 498.1 MB, free: 6.008 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-05/0.8244, allocations: 448 / 498.1 MB, free: 6.008 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001731/0.8261, allocations: 0.5913 MB / 498.7 MB, free: 5.41 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001928/0.8281, allocations: 199.3 kB / 498.9 MB, free: 5.215 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01143/0.8396, allocations: 3.395 MB / 0.4905 GB, free: 1.758 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/0.8414, allocations: 1.434 MB / 0.4919 GB, free: 300 kB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001516/0.843, allocations: 491.3 kB / 0.4924 GB, free: 15.81 MB / 426.7 MB Notification: Performance of SimCode: time 1.503e-06/0.843, allocations: 0 / 0.4924 GB, free: 15.81 MB / 426.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DUSE_LOGGER -c -o OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLFunctions.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, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 1 error generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RLCalcHelperMain.o] Error 1