Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier6pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002327/0.002327, allocations: 180.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.055/2.055, allocations: 205.2 MB / 219.4 MB, free: 14.29 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001098/0.001098, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.207e-05/3.224e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1126, allocations: 47.58 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4767/0.5894, allocations: 93.13 MB / 462.3 MB, free: 192 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.5897, allocations: 77.22 kB / 462.4 MB, free: 156 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.299/1.889, allocations: 114.2 MB / 0.5631 GB, free: 80.49 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.805e-06/1.889, allocations: 0 / 0.5631 GB, free: 80.49 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0004785/1.89, allocations: 216.3 kB / 0.5633 GB, free: 80.48 MB / 410.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.03113/1.921, allocations: 14.26 MB / 0.5772 GB, free: 75.91 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 6.473e-05/1.921, allocations: 10.03 kB / 0.5772 GB, free: 75.91 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006719/1.928, allocations: 2.058 MB / 0.5792 GB, free: 75.73 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005541/1.933, allocations: 1.481 MB / 0.5807 GB, free: 74.84 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02774/1.961, allocations: 7.633 MB / 0.5881 GB, free: 73.01 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002238/1.961, allocations: 170.2 kB / 0.5883 GB, free: 72.93 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001898/1.963, allocations: 224.2 kB / 0.5885 GB, free: 72.86 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0487/2.012, allocations: 25.21 MB / 0.6131 GB, free: 59.07 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001166/2.012, allocations: 3.938 kB / 0.6131 GB, free: 59.07 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001548/2.014, allocations: 96 kB / 0.6132 GB, free: 58.98 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001644/2.014, allocations: 111.6 kB / 0.6133 GB, free: 58.87 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03973/2.054, allocations: 21.95 MB / 0.6348 GB, free: 38.46 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06002/2.114, allocations: 21.19 MB / 0.6555 GB, free: 19.88 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3992/2.513, allocations: 80.08 MB / 0.7337 GB, free: 61.41 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.08782/2.601, allocations: 78.41 MB / 0.8102 GB, free: 15.75 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000563/2.601, allocations: 134.2 kB / 0.8104 GB, free: 15.66 MB / 442.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0569/2.658, allocations: 28.16 MB / 0.8379 GB, free: 2.883 MB / 442.8 MB Notification: Performance of pre-optimization done (n=4937): time 6.161e-06/2.658, allocations: 0 / 0.8379 GB, free: 2.883 MB / 442.8 MB Notification: Performance of matching and sorting (n=4941): time 19.43/22.09, allocations: 2.185 GB / 3.023 GB, free: 6.145 MB / 1.776 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00805/22.1, allocations: 7.195 MB / 3.03 GB, free: 15.22 MB / 1.792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003785/22.1, allocations: 1.337 MB / 3.031 GB, free: 13.88 MB / 1.792 GB Notification: Performance of collectPreVariables (initialization): time 0.01005/22.11, allocations: 3.936 MB / 3.035 GB, free: 9.926 MB / 1.792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001838/22.12, allocations: 0.9848 MB / 3.036 GB, free: 9.043 MB / 1.792 GB Notification: Performance of collectInitialBindings (initialization): time 0.03493/22.15, allocations: 21.23 MB / 3.057 GB, free: 3.941 MB / 1.807 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008042/22.16, allocations: 1.492 MB / 3.058 GB, free: 2.449 MB / 1.807 GB Notification: Performance of setup shared object (initialization): time 0.009223/22.17, allocations: 3.463 MB / 3.061 GB, free: 14.98 MB / 1.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.07664/22.24, allocations: 25.65 MB / 3.086 GB, free: 5.309 MB / 1.839 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1128/22.36, allocations: 57.05 MB / 3.142 GB, free: 14.73 MB / 1.917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.09836/22.46, allocations: 37.47 MB / 3.179 GB, free: 9.664 MB / 1.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001807/22.46, allocations: 300 kB / 3.179 GB, free: 9.371 MB / 1.948 GB Notification: Performance of matching and sorting (n=9771) (initialization): time 0.2481/22.71, allocations: 84.35 MB / 3.261 GB, free: 4.973 MB / 2.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.002723/22.71, allocations: 489.1 kB / 3.262 GB, free: 4.492 MB / 2.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003435/22.71, allocations: 1.031 MB / 3.263 GB, free: 3.461 MB / 2.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008729/22.72, allocations: 2.317 MB / 3.265 GB, free: 1.137 MB / 2.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06648/22.79, allocations: 10.53 MB / 3.275 GB, free: 6.578 MB / 2.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02412/22.81, allocations: 12.61 MB / 3.288 GB, free: 9.461 MB / 2.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.05737/22.87, allocations: 2.426 MB / 3.29 GB, free: 7.035 MB / 2.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0215/22.89, allocations: 3.562 MB / 3.294 GB, free: 3.473 MB / 2.057 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.05161/22.94, allocations: 10.98 MB / 3.304 GB, free: 8.426 MB / 2.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01324/22.96, allocations: 2.219 MB / 3.306 GB, free: 6.191 MB / 2.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 12.83/35.79, allocations: 8.837 GB / 12.14 GB, free: 448.3 MB / 2.542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.099e-05/35.79, allocations: 12 kB / 12.14 GB, free: 448.3 MB / 2.542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.064e-05/35.79, allocations: 7.781 kB / 12.14 GB, free: 448.3 MB / 2.542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.785e-05/35.79, allocations: 7.969 kB / 12.14 GB, free: 448.3 MB / 2.542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.51/48.3, allocations: 8.86 GB / 21 GB, free: 375.2 MB / 2.542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.376e-05/48.3, allocations: 4 kB / 21 GB, free: 375.2 MB / 2.542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001423/48.3, allocations: 154.1 kB / 21 GB, free: 375.1 MB / 2.542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002758/48.3, allocations: 0.6928 MB / 21.01 GB, free: 374.4 MB / 2.542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005118/48.31, allocations: 0.7709 MB / 21.01 GB, free: 373.6 MB / 2.542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01521/48.32, allocations: 10.37 MB / 21.02 GB, free: 362.9 MB / 2.542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/48.32, allocations: 4.031 kB / 21.02 GB, free: 362.9 MB / 2.542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.86/61.19, allocations: 8.889 GB / 29.91 GB, free: 261.5 MB / 2.542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02596/61.21, allocations: 6.052 MB / 29.91 GB, free: 256.2 MB / 2.542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006564/61.22, allocations: 0.6172 MB / 29.91 GB, free: 255.6 MB / 2.542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01298/61.23, allocations: 0.666 MB / 29.91 GB, free: 255 MB / 2.542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005315/61.24, allocations: 0.5658 MB / 29.91 GB, free: 254.4 MB / 2.542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.005705/61.24, allocations: 1.211 MB / 29.91 GB, free: 253.2 MB / 2.542 GB Notification: Performance of sorting global known variables: time 0.002357/61.25, allocations: 1.047 MB / 29.91 GB, free: 252.1 MB / 2.542 GB Notification: Performance of sort global known variables: time 8.72e-07/61.25, allocations: 4 kB / 29.91 GB, free: 252.1 MB / 2.542 GB Notification: Performance of remove unused functions: time 0.05085/61.3, allocations: 9.539 MB / 29.92 GB, free: 242.6 MB / 2.542 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 11.89/73.18, allocations: 8.896 GB / 38.82 GB, free: 137.5 MB / 2.542 GB Notification: Performance of simCode: created initialization part: time 0.1566/73.34, allocations: 80.93 MB / 38.9 GB, free: 57.34 MB / 2.542 GB Notification: Performance of simCode: created event and clocks part: time 1.251e-05/73.34, allocations: 0 / 38.9 GB, free: 57.34 MB / 2.542 GB Notification: Performance of simCode: created simulation system equations: time 59.43/132.8, allocations: 28.61 GB / 67.51 GB, free: 1.18 GB / 2.808 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01502/132.8, allocations: 1.052 MB / 67.51 GB, free: 1.179 GB / 2.808 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1816/133, allocations: 56.41 MB / 67.56 GB, free: 1.125 GB / 2.808 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0236/133, allocations: 9.087 MB / 67.57 GB, free: 1.116 GB / 2.808 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01986/133, allocations: 7.053 MB / 67.58 GB, free: 1.109 GB / 2.808 GB Notification: Performance of SimCode: time 3.657e-06/133, allocations: 0 / 67.58 GB, free: 1.109 GB / 2.808 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFunctions.cpp:309:48: error: use of undeclared identifier 'D_24tmpVar2_'; did you mean 'D_24tmpVar3_'? Modelica_SIunits_Conversions_to__deg(D_24tmpVar2_,tmp39); ^~~~~~~~~~~~ D_24tmpVar3_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFunctions.cpp:282:14: note: 'D_24tmpVar3_' declared here double D_24tmpVar3_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp:34: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFT.cpp:29844:7: warning: expression result unused [-Wunused-value] tmp7; ^~~~ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFMU.cpp:11: /var/lib/jenkins1/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 1 error generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTCalcHelperMain.o] Error 1