Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.ACAC.Dimmer_R,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.059/2.059, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.246e-05/4.263e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.1267, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4823/0.6091, allocations: 91.2 MB / 433.8 MB, free: 2.754 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003278/0.6095, allocations: 82.52 kB / 433.9 MB, free: 2.711 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1005/0.71, allocations: 22.23 MB / 456.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.7101, allocations: 0 / 456.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000202/0.7103, allocations: 36 kB / 456.2 MB, free: 15.53 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.006094/0.7164, allocations: 1.82 MB / 458 MB, free: 13.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.653e-05/0.7165, allocations: 12.03 kB / 458 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003778/0.7169, allocations: 131.2 kB / 458.1 MB, free: 13.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006677/0.7175, allocations: 209.4 kB / 458.3 MB, free: 13.44 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003519/0.7211, allocations: 1.081 MB / 459.4 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.094e-05/0.7212, allocations: 70.8 kB / 459.5 MB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002789/0.7215, allocations: 89.19 kB / 459.6 MB, free: 12.39 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002501/0.724, allocations: 0.9314 MB / 460.5 MB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.21e-05/0.7241, allocations: 3.906 kB / 460.5 MB, free: 11.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001403/0.7243, allocations: 36.92 kB / 460.6 MB, free: 11.71 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.693e-05/0.7243, allocations: 20 kB / 460.6 MB, free: 11.69 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00214/0.7265, allocations: 0.7551 MB / 461.3 MB, free: 11.18 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01002/0.7365, allocations: 3.446 MB / 464.8 MB, free: 8.473 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002875/0.7394, allocations: 0.9476 MB / 465.7 MB, free: 7.566 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001258/0.7407, allocations: 439 kB / 466.2 MB, free: 7.137 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.708e-05/0.7409, allocations: 12.77 kB / 466.2 MB, free: 7.125 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001595/0.7425, allocations: 0.6174 MB / 466.8 MB, free: 6.484 MB / 378.7 MB Notification: Performance of pre-optimization done (n=84): time 3.727e-06/0.7425, allocations: 4 kB / 466.8 MB, free: 6.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=84): time 0.003132/0.7456, allocations: 0.9907 MB / 467.8 MB, free: 5.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001428/0.7458, allocations: 200.7 kB / 468 MB, free: 5.242 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005347/0.7512, allocations: 1.907 MB / 469.9 MB, free: 3.289 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003255/0.7516, allocations: 57.69 kB / 469.9 MB, free: 3.227 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007415/0.7523, allocations: 0.5278 MB / 470.5 MB, free: 2.691 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005061/0.7529, allocations: 268.3 kB / 470.7 MB, free: 2.426 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.47e-05/0.753, allocations: 20 kB / 470.7 MB, free: 2.406 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.7532, allocations: 346.8 kB / 471.1 MB, free: 2.059 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001028/0.7542, allocations: 349.9 kB / 471.4 MB, free: 1.719 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001296/0.7555, allocations: 0.6019 MB / 472 MB, free: 1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001245/0.7568, allocations: 427.5 kB / 472.4 MB, free: 0.5742 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.194e-05/0.7569, allocations: 11.94 kB / 472.5 MB, free: 0.5625 MB / 378.7 MB Notification: Performance of matching and sorting (n=120) (initialization): time 0.003192/0.7601, allocations: 1.061 MB / 473.5 MB, free: 15.49 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00135/0.7615, allocations: 2.902 MB / 476.4 MB, free: 12.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.575e-05/0.7615, allocations: 12 kB / 476.4 MB, free: 12.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005866/0.7621, allocations: 92.81 kB / 476.5 MB, free: 12.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001928/0.7641, allocations: 251.5 kB / 476.8 MB, free: 12 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003073/0.7672, allocations: 1.858 MB / 478.6 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002276/0.7695, allocations: 219.1 kB / 478.8 MB, free: 9.797 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002091/0.7698, allocations: 43.98 kB / 478.9 MB, free: 9.754 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.7698, allocations: 4 kB / 478.9 MB, free: 9.75 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002828/0.7726, allocations: 1.021 MB / 479.9 MB, free: 8.719 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.408e-05/0.7727, allocations: 8 kB / 479.9 MB, free: 8.711 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004181/0.7732, allocations: 92.81 kB / 480 MB, free: 8.617 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001789/0.775, allocations: 231.8 kB / 480.2 MB, free: 8.391 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002931/0.7779, allocations: 1.854 MB / 482.1 MB, free: 6.402 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.7793, allocations: 147.3 kB / 482.2 MB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001235/0.7794, allocations: 43.98 kB / 482.3 MB, free: 6.215 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.0004362/0.7799, allocations: 180.8 kB / 482.5 MB, free: 6.031 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006024/0.7805, allocations: 185.7 kB / 482.6 MB, free: 5.848 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003361/0.7839, allocations: 1.081 MB / 483.7 MB, free: 4.754 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.7839, allocations: 11.94 kB / 483.7 MB, free: 4.742 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.784, allocations: 3.953 kB / 483.7 MB, free: 4.738 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.649e-05/0.784, allocations: 7.984 kB / 483.7 MB, free: 4.73 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007101/0.7911, allocations: 2.659 MB / 486.4 MB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.41e-05/0.7912, allocations: 0 / 486.4 MB, free: 1.996 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001604/0.7928, allocations: 159.8 kB / 486.6 MB, free: 1.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005304/0.7934, allocations: 96.92 kB / 486.6 MB, free: 1.742 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002438/0.7937, allocations: 28.09 kB / 486.7 MB, free: 1.715 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002803/0.7965, allocations: 1.774 MB / 488.4 MB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.7965, allocations: 0 / 488.4 MB, free: 15.81 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004077/0.8006, allocations: 1.595 MB / 490 MB, free: 14.18 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001502/0.8022, allocations: 0.5413 MB / 490.6 MB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003089/0.8025, allocations: 28.05 kB / 490.6 MB, free: 13.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001786/0.8043, allocations: 167.8 kB / 490.8 MB, free: 13.42 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000347/0.8046, allocations: 88.64 kB / 490.9 MB, free: 13.34 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.65e-05/0.8048, allocations: 31.98 kB / 490.9 MB, free: 13.3 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003299/0.8081, allocations: 1.507 MB / 492.4 MB, free: 11.77 MB / 410.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.8081, allocations: 0 / 492.4 MB, free: 11.77 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002394/0.8105, allocations: 0.5456 MB / 492.9 MB, free: 11.22 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.005215/0.8157, allocations: 2.529 MB / 495.5 MB, free: 8.754 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004132/0.8199, allocations: 1.741 MB / 497.2 MB, free: 6.969 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.076e-06/0.8199, allocations: 2.188 kB / 497.2 MB, free: 6.969 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001382/0.8213, allocations: 0.5744 MB / 497.8 MB, free: 6.387 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00175/0.8231, allocations: 202.7 kB / 498 MB, free: 6.184 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01062/0.8337, allocations: 3.311 MB / 0.4896 GB, free: 2.809 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001571/0.8354, allocations: 1.437 MB / 0.491 GB, free: 1.34 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001374/0.8368, allocations: 479.3 kB / 0.4914 GB, free: 0.8711 MB / 410.7 MB Notification: Performance of SimCode: time 1.243e-06/0.8368, allocations: 0 / 0.4914 GB, free: 0.8711 MB / 410.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_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, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RFMU.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_RCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_PowerConverters_Examples_ACAC_Dimmer_RCalcHelperMain.o] Error 1