Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.013/2.013, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.799e-05/3.81e-05, allocations: 4 kB / 292.2 MB, free: 8.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1075, allocations: 50.42 MB / 342.6 MB, free: 6.332 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4554/0.563, allocations: 95.84 MB / 438.5 MB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002559/0.5633, allocations: 69.91 kB / 438.5 MB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.561/2.124, allocations: 167.7 MB / 0.592 GB, free: 80.5 MB / 442.8 MB Notification: Performance of FrontEnd: time 2.435e-06/2.124, allocations: 0 / 0.592 GB, free: 80.5 MB / 442.8 MB Notification: Performance of Transformations before backend: time 0.001984/2.126, allocations: 260.4 kB / 0.5923 GB, free: 80.48 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: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.04789/2.174, allocations: 15.87 MB / 0.6078 GB, free: 73.7 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.166e-05/2.174, allocations: 12.44 kB / 0.6078 GB, free: 73.7 MB / 442.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009467/2.184, allocations: 2.298 MB / 0.61 GB, free: 72.68 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008862/2.193, allocations: 1.731 MB / 0.6117 GB, free: 71.68 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03936/2.232, allocations: 8.83 MB / 0.6203 GB, free: 65.42 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004047/2.233, allocations: 295.2 kB / 0.6206 GB, free: 65.14 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003134/2.236, allocations: 387.3 kB / 0.621 GB, free: 64.76 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06157/2.297, allocations: 27.67 MB / 0.648 GB, free: 36.93 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002123/2.298, allocations: 3.938 kB / 0.648 GB, free: 36.92 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002988/2.301, allocations: 178.8 kB / 0.6482 GB, free: 36.75 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002944/2.301, allocations: 204 kB / 0.6484 GB, free: 36.55 MB / 442.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0488/2.35, allocations: 23.96 MB / 0.6718 GB, free: 12.58 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.445/2.795, allocations: 28.7 MB / 0.6998 GB, free: 88.4 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.09876/2.894, allocations: 83.45 MB / 0.7813 GB, free: 31.47 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1055/2.999, allocations: 80.24 MB / 0.8597 GB, free: 3.473 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006646/3, allocations: 149.5 kB / 0.8598 GB, free: 3.379 MB / 490.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.4099/3.41, allocations: 28.95 MB / 0.8881 GB, free: 124.2 MB / 490.8 MB Notification: Performance of pre-optimization done (n=5058): time 1.401e-05/3.41, allocations: 0 / 0.8881 GB, free: 124.2 MB / 490.8 MB Notification: Performance of matching and sorting (n=5065): time 17.4/20.81, allocations: 2.188 GB / 3.077 GB, free: 2.637 MB / 1.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007717/20.82, allocations: 7.361 MB / 3.084 GB, free: 11.52 MB / 1.839 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005914/20.83, allocations: 2.346 MB / 3.086 GB, free: 9.156 MB / 1.839 GB Notification: Performance of collectPreVariables (initialization): time 0.009498/20.84, allocations: 3.956 MB / 3.09 GB, free: 5.184 MB / 1.839 GB Notification: Performance of collectInitialEqns (initialization): time 0.002524/20.84, allocations: 1.607 MB / 3.091 GB, free: 3.633 MB / 1.839 GB Notification: Performance of collectInitialBindings (initialization): time 0.03451/20.87, allocations: 21.63 MB / 3.113 GB, free: 14.1 MB / 1.87 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007932/20.88, allocations: 1.512 MB / 3.114 GB, free: 12.59 MB / 1.87 GB Notification: Performance of setup shared object (initialization): time 0.008142/20.89, allocations: 3.514 MB / 3.117 GB, free: 9.059 MB / 1.87 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.07552/20.96, allocations: 26.27 MB / 3.143 GB, free: 14.77 MB / 1.901 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1077/21.07, allocations: 57.42 MB / 3.199 GB, free: 7.941 MB / 1.964 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.09308/21.17, allocations: 38.21 MB / 3.236 GB, free: 2.352 MB / 1.995 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001428/21.17, allocations: 304 kB / 3.237 GB, free: 2.055 MB / 1.995 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.233/21.4, allocations: 83.42 MB / 3.318 GB, free: 14.55 MB / 2.089 GB Notification: Performance of prepare postOptimizeDAE: time 0.001479/21.4, allocations: 485.7 kB / 3.319 GB, free: 14.07 MB / 2.089 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002432/21.4, allocations: 1.031 MB / 3.32 GB, free: 13.04 MB / 2.089 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01031/21.41, allocations: 3.022 MB / 3.323 GB, free: 9.996 MB / 2.089 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06778/21.48, allocations: 10.72 MB / 3.333 GB, free: 15.24 MB / 2.104 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04062/21.52, allocations: 25.53 MB / 3.358 GB, free: 4.438 MB / 2.12 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04571/21.57, allocations: 2.492 MB / 3.361 GB, free: 1.945 MB / 2.12 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.013/21.58, allocations: 3.601 MB / 3.364 GB, free: 14.34 MB / 2.136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4832 * Number of states: 0 () * Number of discrete variables: 24 ($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,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9809): * Single equations (assignments): 9798 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9,(2,100.0%) 29} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.03393/21.62, allocations: 11.05 MB / 3.375 GB, free: 3.246 MB / 2.136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009552/21.62, allocations: 2.358 MB / 3.377 GB, free: 0.8672 MB / 2.136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 13.47/35.1, allocations: 8.839 GB / 12.22 GB, free: 2.002 GB / 2.479 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.111e-05/35.1, allocations: 31.56 kB / 12.22 GB, free: 2.002 GB / 2.479 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.981e-05/35.1, allocations: 7.938 kB / 12.22 GB, free: 2.002 GB / 2.479 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.375e-05/35.1, allocations: 13.45 kB / 12.22 GB, free: 2.002 GB / 2.479 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.98/48.08, allocations: 8.864 GB / 21.08 GB, free: 1.604 GB / 2.479 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.505e-05/48.08, allocations: 0 / 21.08 GB, free: 1.604 GB / 2.479 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002516/48.09, allocations: 296.9 kB / 21.08 GB, free: 1.603 GB / 2.479 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005437/48.09, allocations: 1.373 MB / 21.08 GB, free: 1.602 GB / 2.479 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005462/48.1, allocations: 0.7948 MB / 21.08 GB, free: 1.601 GB / 2.479 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03024/48.13, allocations: 23.16 MB / 21.11 GB, free: 1.578 GB / 2.479 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.269e-06/48.13, allocations: 3.281 kB / 21.11 GB, free: 1.578 GB / 2.479 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.34/60.47, allocations: 8.891 GB / 30 GB, free: 1.112 GB / 2.479 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02486/60.49, allocations: 6.339 MB / 30 GB, free: 1.106 GB / 2.479 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007173/60.5, allocations: 0.6559 MB / 30 GB, free: 1.106 GB / 2.479 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01452/60.51, allocations: 0.7115 MB / 30 GB, free: 1.105 GB / 2.479 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006158/60.52, allocations: 0.6606 MB / 30 GB, free: 1.104 GB / 2.479 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006094/60.53, allocations: 1.246 MB / 30.01 GB, free: 1.103 GB / 2.479 GB Notification: Performance of sorting global known variables: time 0.004899/60.53, allocations: 1.825 MB / 30.01 GB, free: 1.101 GB / 2.479 GB Notification: Performance of sort global known variables: time 1.022e-06/60.53, allocations: 1.312 kB / 30.01 GB, free: 1.101 GB / 2.479 GB Notification: Performance of remove unused functions: time 0.05697/60.59, allocations: 9.992 MB / 30.02 GB, free: 1.092 GB / 2.479 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (cDC1.v,cDC2.v,transformer1.l2sigma.inductor[2].i,transformer1.l2sigma.inductor[3].i,transformer2.l2sigma.inductor[1].i,transformer2.l2sigma.inductor[2].i,transformer2.l2sigma.inductor[3].i) * Number of discrete variables: 20 (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,diode3.idealDiode[1].off,diode3.idealDiode[2].off,diode3.idealDiode[3].off,diode4.idealDiode[1].off,diode4.idealDiode[2].off,diode4.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 (155): * Single equations (assignments): 143 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 29,(1,100.0%) 9,(1,100.0%) 9,(1,100.0%) 9} * Non-linear torn systems: 6 {2 7,2 7,2 7,2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 12.84/73.42, allocations: 8.898 GB / 38.92 GB, free: 0.6178 GB / 2.479 GB Notification: Performance of simCode: created initialization part: time 0.1624/73.59, allocations: 81.8 MB / 39 GB, free: 0.5389 GB / 2.479 GB Notification: Performance of simCode: created event and clocks part: time 1.289e-05/73.59, allocations: 0.7188 kB / 39 GB, free: 0.5389 GB / 2.479 GB Notification: Performance of simCode: created simulation system equations: time 61.18/134.8, allocations: 28.61 GB / 67.61 GB, free: 0.4907 GB / 3.214 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01609/134.8, allocations: 1.488 MB / 67.61 GB, free: 0.4893 GB / 3.214 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1755/135, allocations: 60.15 MB / 67.67 GB, free: 441.3 MB / 3.214 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02457/135, allocations: 10.2 MB / 67.68 GB, free: 431.1 MB / 3.214 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02014/135, allocations: 8.029 MB / 67.69 GB, free: 423.1 MB / 3.214 GB Notification: Performance of SimCode: time 1.643e-06/135, allocations: 7.531 kB / 67.69 GB, free: 423.1 MB / 3.214 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_Rectifier12pulseFFTCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFunctions.cpp:404:46: error: use of undeclared identifier '_omcQuot_24746D7056617230_'; did you mean '_omcQuot_24746D7056617231_'? Modelica_Units_Conversions_to__deg(_omcQuot_24746D7056617230_,tmp51); ^~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D7056617231_ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFunctions.cpp:377:14: note: '_omcQuot_24746D7056617231_' declared here double _omcQuot_24746D7056617231_; ^ ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFunctions.cpp:614: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_Rectifier12pulseFFTCalcHelperMain.cpp:34: ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT.cpp:30820:7: warning: expression result unused [-Wunused-value] tmp9; ^~~~ In file included from OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFMU.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_Rectifier12pulseFFTCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.o] Error 1