Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.036/2.036, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.623e-05/3.648e-05, allocations: 4 kB / 292.2 MB, free: 8.711 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1101, allocations: 50.41 MB / 342.6 MB, free: 6.277 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5113/0.6214, allocations: 94.22 MB / 436.8 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002541/0.6217, allocations: 69.59 kB / 436.9 MB, free: 15.61 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.359/1.98, allocations: 114.6 MB / 0.5386 GB, free: 65 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.164e-06/1.98, allocations: 4.781 kB / 0.5386 GB, free: 65 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.0006452/1.981, allocations: 209.5 kB / 0.5388 GB, free: 65 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.03729/2.018, allocations: 14.29 MB / 0.5528 GB, free: 60.62 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/2.019, allocations: 10 kB / 0.5528 GB, free: 60.62 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006904/2.025, allocations: 2.058 MB / 0.5548 GB, free: 60.45 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006529/2.032, allocations: 1.478 MB / 0.5562 GB, free: 59.57 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02962/2.062, allocations: 7.669 MB / 0.5637 GB, free: 58.26 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002773/2.062, allocations: 166 kB / 0.5639 GB, free: 58.25 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002412/2.064, allocations: 217 kB / 0.5641 GB, free: 58.25 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.09727/2.162, allocations: 25.17 MB / 0.5887 GB, free: 55.4 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/2.162, allocations: 0 / 0.5887 GB, free: 55.4 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002407/2.164, allocations: 93.09 kB / 0.5887 GB, free: 55.33 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000213/2.165, allocations: 122.9 kB / 0.5889 GB, free: 55.32 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04208/2.207, allocations: 21.91 MB / 0.6103 GB, free: 44.38 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06059/2.267, allocations: 21.18 MB / 0.6309 GB, free: 31.27 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.4824/2.75, allocations: 81.96 MB / 0.711 GB, free: 88.75 MB / 474.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.08238/2.832, allocations: 78.09 MB / 0.7872 GB, free: 48.98 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005349/2.833, allocations: 137.3 kB / 0.7874 GB, free: 48.89 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.04806/2.881, allocations: 28.14 MB / 0.8148 GB, free: 36.11 MB / 474.8 MB Notification: Performance of pre-optimization done (n=4937): time 5.5e-06/2.881, allocations: 2.5 kB / 0.8149 GB, free: 36.11 MB / 474.8 MB Notification: Performance of matching and sorting (n=4941): time 19.61/22.49, allocations: 2.186 GB / 3.001 GB, free: 213.7 MB / 1.932 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.005175/22.49, allocations: 7.195 MB / 3.008 GB, free: 206.8 MB / 1.932 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0029/22.5, allocations: 1.337 MB / 3.009 GB, free: 205.4 MB / 1.932 GB Notification: Performance of collectPreVariables (initialization): time 0.007466/22.5, allocations: 3.932 MB / 3.013 GB, free: 201.5 MB / 1.932 GB Notification: Performance of collectInitialEqns (initialization): time 0.001126/22.5, allocations: 0.9924 MB / 3.014 GB, free: 200.6 MB / 1.932 GB Notification: Performance of collectInitialBindings (initialization): time 0.02552/22.53, allocations: 21.23 MB / 3.035 GB, free: 179.6 MB / 1.932 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.006968/22.54, allocations: 1.488 MB / 3.036 GB, free: 178.1 MB / 1.932 GB Notification: Performance of setup shared object (initialization): time 0.006791/22.54, allocations: 3.459 MB / 3.04 GB, free: 174.7 MB / 1.932 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.06091/22.61, allocations: 25.66 MB / 3.065 GB, free: 149 MB / 1.932 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.08034/22.69, allocations: 56.6 MB / 3.12 GB, free: 79.03 MB / 1.932 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.07923/22.76, allocations: 37.46 MB / 3.156 GB, free: 42.11 MB / 1.932 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001383/22.77, allocations: 308 kB / 3.157 GB, free: 41.8 MB / 1.932 GB Notification: Performance of matching and sorting (n=9771) (initialization): time 0.2156/22.98, allocations: 81.4 MB / 3.236 GB, free: 8.367 MB / 1.979 GB Notification: Performance of prepare postOptimizeDAE: time 0.00139/22.98, allocations: 485.7 kB / 3.237 GB, free: 7.887 MB / 1.979 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00246/22.99, allocations: 1.031 MB / 3.238 GB, free: 6.855 MB / 1.979 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006795/22.99, allocations: 2.328 MB / 3.24 GB, free: 4.523 MB / 1.979 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06588/23.06, allocations: 10.54 MB / 3.25 GB, free: 9.961 MB / 1.995 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02162/23.08, allocations: 12.6 MB / 3.263 GB, free: 12.84 MB / 2.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04477/23.12, allocations: 2.43 MB / 3.265 GB, free: 10.41 MB / 2.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01227/23.14, allocations: 3.559 MB / 3.268 GB, free: 6.852 MB / 2.011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4821 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.realFFT.firstTrigger,realFFT.firstTrigger,$PRE.realFFT.info,realFFT.info,$PRE.realFFT.buf[4000],realFFT.buf[4000],$PRE.realFFT.iTick,realFFT.iTick,$whenCondition3,$whenCondition1,$whenCondition2,realFFT.sampleTrigger,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9716): * Single equations (assignments): 9711 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.03186/23.17, allocations: 10.98 MB / 3.279 GB, free: 11.81 MB / 2.026 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009056/23.18, allocations: 2.218 MB / 3.281 GB, free: 9.574 MB / 2.026 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 13.28/36.46, allocations: 8.837 GB / 12.12 GB, free: 1.596 GB / 2.776 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.007e-05/36.46, allocations: 16 kB / 12.12 GB, free: 1.596 GB / 2.776 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.556e-06/36.46, allocations: 4 kB / 12.12 GB, free: 1.596 GB / 2.776 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.371e-05/36.46, allocations: 7.969 kB / 12.12 GB, free: 1.596 GB / 2.776 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.77/49.23, allocations: 8.86 GB / 20.98 GB, free: 2.312 GB / 2.776 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.809e-05/49.23, allocations: 3.906 kB / 20.98 GB, free: 2.312 GB / 2.776 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001416/49.23, allocations: 160.1 kB / 20.98 GB, free: 2.312 GB / 2.776 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002932/49.24, allocations: 0.687 MB / 20.98 GB, free: 2.312 GB / 2.776 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005308/49.24, allocations: 0.7695 MB / 20.98 GB, free: 2.312 GB / 2.776 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01615/49.26, allocations: 10.37 MB / 20.99 GB, free: 2.307 GB / 2.776 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/49.26, allocations: 1.5 kB / 20.99 GB, free: 2.307 GB / 2.776 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.24/61.49, allocations: 8.888 GB / 29.88 GB, free: 0.7453 GB / 2.776 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02332/61.52, allocations: 6.06 MB / 29.88 GB, free: 0.7402 GB / 2.776 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00634/61.52, allocations: 0.6228 MB / 29.89 GB, free: 0.7396 GB / 2.776 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01313/61.54, allocations: 0.659 MB / 29.89 GB, free: 0.7389 GB / 2.776 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005502/61.54, allocations: 0.5559 MB / 29.89 GB, free: 0.7384 GB / 2.776 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005707/61.55, allocations: 1.22 MB / 29.89 GB, free: 0.7372 GB / 2.776 GB Notification: Performance of sorting global known variables: time 0.002318/61.55, allocations: 1.047 MB / 29.89 GB, free: 0.7362 GB / 2.776 GB Notification: Performance of sort global known variables: time 7.71e-07/61.55, allocations: 2.438 kB / 29.89 GB, free: 0.7362 GB / 2.776 GB Notification: Performance of remove unused functions: time 0.05434/61.61, allocations: 9.553 MB / 29.9 GB, free: 0.7269 GB / 2.776 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i) * Number of discrete variables: 14 (realFFT.sampleTrigger,$whenCondition3,$whenCondition1,$whenCondition2,diode1.idealDiode[1].off,diode1.idealDiode[2].off,diode1.idealDiode[3].off,diode2.idealDiode[1].off,diode2.idealDiode[2].off,diode2.idealDiode[3].off,realFFT.firstTrigger,realFFT.info,realFFT.buf[4000],realFFT.iTick) * Number of discrete states: 5 (realFFT.info,$whenCondition2,realFFT.buf[4000],realFFT.iTick,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 77 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 29} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 12.59/74.19, allocations: 8.895 GB / 38.79 GB, free: 1.499 GB / 2.776 GB Notification: Performance of simCode: created initialization part: time 0.1582/74.35, allocations: 79.42 MB / 38.87 GB, free: 1.422 GB / 2.776 GB Notification: Performance of simCode: created event and clocks part: time 1.799e-05/74.35, allocations: 0 / 38.87 GB, free: 1.422 GB / 2.776 GB Notification: Performance of simCode: created simulation system equations: time 54.38/128.7, allocations: 28.61 GB / 67.48 GB, free: 1.842 GB / 2.995 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01385/128.7, allocations: 1.064 MB / 67.49 GB, free: 1.841 GB / 2.995 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1724/128.9, allocations: 56.41 MB / 67.54 GB, free: 1.786 GB / 2.995 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02338/128.9, allocations: 9.093 MB / 67.55 GB, free: 1.777 GB / 2.995 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01883/129, allocations: 7.053 MB / 67.56 GB, free: 1.77 GB / 2.995 GB Notification: Performance of SimCode: time 1.443e-06/129, allocations: 0 / 67.56 GB, free: 1.77 GB / 2.995 GB 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_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFunctions.cpp:359:46: error: use of undeclared identifier '_omcQuot_24746D7056617230_'; did you mean '_omcQuot_24746D7056617231_'? Modelica_Units_Conversions_to__deg(_omcQuot_24746D7056617230_,tmp39); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617231_ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFunctions.cpp:332:14: note: '_omcQuot_24746D7056617231_' declared here double _omcQuot_24746D7056617231_; ^ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFunctions.cpp:569:15: error: no matching function for call to 'ModelicaFFT_kiss_fftr' info__ext = ModelicaFFT_kiss_fftr(ConstArray(u_).getData(), u_.getDim(1), work_.getData(), work_.getDim(1), amplitudes_.getData(), phases_.getData()); ^~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources/ModelicaFFT.h:72:21: note: candidate function not viable: 1st argument ('const double *') would lose const qualifier MODELICA_EXPORT int ModelicaFFT_kiss_fftr(_In_ double* u, size_t nu, _In_ double* work, size_t nwork, ^ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp:34: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT.cpp:29844:7: warning: expression result unused [-Wunused-value] tmp7; ^~~~ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFMU.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) { ^ 2 warnings and 2 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.o] Error 1