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.001943/0.001943, allocations: 186.4 kB / 16.41 MB, free: 5.727 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.018/2.018, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001134/0.001133, allocations: 80.5 kB / 270.9 MB, free: 8.398 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004362/0.0004361, allocations: 8 kB / 327 MB, free: 144 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3333/0.3338, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1539/0.4878, allocations: 93.23 MB / 467.9 MB, free: 3.516 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002909/0.4881, allocations: 79.97 kB / 467.9 MB, free: 3.438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9909/1.479, allocations: 114.1 MB / 0.5684 GB, free: 45 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.156e-06/1.479, allocations: 0 / 0.5684 GB, free: 45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0004233/1.479, allocations: 215.9 kB / 0.5686 GB, free: 44.79 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: 5386 * Number of variables: 5386 Notification: Performance of Generate backend data structure: time 0.03129/1.511, allocations: 14.51 MB / 0.5827 GB, free: 30.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.292e-05/1.511, allocations: 15.97 kB / 0.5828 GB, free: 30.16 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007581/1.518, allocations: 2.067 MB / 0.5848 GB, free: 28.09 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006626/1.525, allocations: 1.479 MB / 0.5862 GB, free: 26.59 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02926/1.554, allocations: 7.677 MB / 0.5937 GB, free: 18.83 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002171/1.555, allocations: 164.4 kB / 0.5939 GB, free: 18.66 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003588/1.558, allocations: 220 kB / 0.5941 GB, free: 18.45 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05977/1.618, allocations: 25.34 MB / 0.6188 GB, free: 8.98 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000122/1.618, allocations: 3.938 kB / 0.6188 GB, free: 8.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003301/1.622, allocations: 99.98 kB / 0.6189 GB, free: 8.879 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002129/1.622, allocations: 112.4 kB / 0.619 GB, free: 8.766 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05139/1.673, allocations: 22.11 MB / 0.6406 GB, free: 2.641 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6218/2.295, allocations: 21.18 MB / 0.6613 GB, free: 78.54 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08264/2.378, allocations: 80.2 MB / 0.7396 GB, free: 17.68 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005065/2.378, allocations: 137.6 kB / 0.7398 GB, free: 17.58 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.05272/2.431, allocations: 28.33 MB / 0.7674 GB, free: 14.42 MB / 426.8 MB Notification: Performance of pre-optimization done (n=4937): time 5.991e-06/2.431, allocations: 0 / 0.7674 GB, free: 14.42 MB / 426.8 MB Notification: Performance of matching and sorting (n=4941): time 18.71/21.14, allocations: 2.905 GB / 3.672 GB, free: 5.957 MB / 1.807 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008484/21.15, allocations: 7.189 MB / 3.679 GB, free: 15.04 MB / 1.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004233/21.15, allocations: 1.356 MB / 3.681 GB, free: 13.68 MB / 1.823 GB Notification: Performance of collectPreVariables (initialization): time 0.01027/21.17, allocations: 3.928 MB / 3.685 GB, free: 9.73 MB / 1.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.001921/21.17, allocations: 0.9987 MB / 3.686 GB, free: 8.723 MB / 1.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.03637/21.2, allocations: 21.22 MB / 3.706 GB, free: 3.598 MB / 1.839 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008565/21.21, allocations: 1.492 MB / 3.708 GB, free: 2.105 MB / 1.839 GB Notification: Performance of setup shared object (initialization): time 0.009249/21.22, allocations: 3.465 MB / 3.711 GB, free: 14.63 MB / 1.854 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.08141/21.3, allocations: 26.2 MB / 3.737 GB, free: 4.402 MB / 1.87 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1185/21.42, allocations: 57.6 MB / 3.793 GB, free: 13.42 MB / 1.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.103/21.52, allocations: 37.73 MB / 3.83 GB, free: 7.918 MB / 1.979 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.002093/21.53, allocations: 300 kB / 3.83 GB, free: 7.625 MB / 1.979 GB Notification: Performance of matching and sorting (n=9771) (initialization): time 0.2499/21.78, allocations: 85.45 MB / 3.914 GB, free: 2.133 MB / 2.057 GB Notification: Performance of prepare postOptimizeDAE: time 0.002731/21.78, allocations: 481.7 kB / 3.914 GB, free: 1.656 MB / 2.057 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003905/21.78, allocations: 1.031 MB / 3.915 GB, free: 0.625 MB / 2.057 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00896/21.79, allocations: 2.326 MB / 3.917 GB, free: 14.29 MB / 2.073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06745/21.86, allocations: 10.54 MB / 3.928 GB, free: 3.727 MB / 2.073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02483/21.88, allocations: 12.84 MB / 3.94 GB, free: 6.371 MB / 2.089 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04306/21.93, allocations: 2.429 MB / 3.942 GB, free: 3.945 MB / 2.089 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01278/21.94, allocations: 3.566 MB / 3.946 GB, free: 392 kB / 2.089 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 () * Number of clocked 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.04855/21.99, allocations: 14.49 MB / 3.96 GB, free: 1.832 MB / 2.104 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01067/22, allocations: 2.219 MB / 3.962 GB, free: 15.59 MB / 2.12 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 12.54/34.54, allocations: 8.838 GB / 12.8 GB, free: 2.004 GB / 2.448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.29e-05/34.54, allocations: 14.16 kB / 12.8 GB, free: 2.004 GB / 2.448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/34.54, allocations: 4 kB / 12.8 GB, free: 2.004 GB / 2.448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.335e-05/34.54, allocations: 8.281 kB / 12.8 GB, free: 2.004 GB / 2.448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.11/46.64, allocations: 8.861 GB / 21.66 GB, free: 1.568 GB / 2.448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.301e-05/46.64, allocations: 2.812 kB / 21.66 GB, free: 1.568 GB / 2.448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001407/46.65, allocations: 158.9 kB / 21.66 GB, free: 1.568 GB / 2.448 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002887/46.65, allocations: 0.6924 MB / 21.66 GB, free: 1.567 GB / 2.448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.007113/46.66, allocations: 0.7668 MB / 21.66 GB, free: 1.566 GB / 2.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0162/46.67, allocations: 10.63 MB / 21.67 GB, free: 1.556 GB / 2.448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/46.67, allocations: 3.953 kB / 21.67 GB, free: 1.556 GB / 2.448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.21/58.88, allocations: 8.889 GB / 30.56 GB, free: 1.072 GB / 2.448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02413/58.91, allocations: 6.054 MB / 30.57 GB, free: 1.067 GB / 2.448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007594/58.91, allocations: 0.6172 MB / 30.57 GB, free: 1.067 GB / 2.448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0135/58.93, allocations: 0.668 MB / 30.57 GB, free: 1.066 GB / 2.448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005537/58.93, allocations: 0.557 MB / 30.57 GB, free: 1.066 GB / 2.448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006785/58.94, allocations: 1.211 MB / 30.57 GB, free: 1.064 GB / 2.448 GB Notification: Performance of sorting global known variables: time 0.002367/58.94, allocations: 1.058 MB / 30.57 GB, free: 1.063 GB / 2.448 GB Notification: Performance of sort global known variables: time 5.81e-07/58.94, allocations: 4 kB / 30.57 GB, free: 1.063 GB / 2.448 GB Notification: Performance of remove unused functions: time 0.05117/58.99, allocations: 9.546 MB / 30.58 GB, free: 1.054 GB / 2.448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 76 * 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.87/70.86, allocations: 8.896 GB / 39.48 GB, free: 0.5603 GB / 2.448 GB Notification: Performance of simCode: created initialization part: time 0.2222/71.08, allocations: 81.78 MB / 39.56 GB, free: 493 MB / 2.448 GB Notification: Performance of simCode: created event and clocks part: time 1.666e-05/71.09, allocations: 1.484 kB / 39.56 GB, free: 493 MB / 2.448 GB Notification: Performance of simCode: created simulation system equations: time 59.48/130.6, allocations: 28.61 GB / 68.17 GB, free: 63.66 MB / 3.089 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01268/130.6, allocations: 1.064 MB / 68.17 GB, free: 62.65 MB / 3.089 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.193/131.8, allocations: 1.103 GB / 69.27 GB, free: 1.67 GB / 3.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02519/131.8, allocations: 9.089 MB / 69.28 GB, free: 1.663 GB / 3.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01981/131.8, allocations: 7.046 MB / 69.29 GB, free: 1.656 GB / 3.089 GB Notification: Performance of SimCode: time 1.904e-06/131.8, allocations: 0 / 69.29 GB, free: 1.656 GB / 3.089 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 '_omcQ_24tmpVar2_'; did you mean '_omcQ_24tmpVar3_'? Modelica_SIunits_Conversions_to__deg(_omcQ_24tmpVar2_,tmp39); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar3_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier6pulseFFTFunctions.cpp:282:14: note: '_omcQ_24tmpVar3_' declared here double _omcQ_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:29817: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