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: translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.2..i|transformer1.l2sigma.inductor.3..i|realFFT.iTick",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier6pulseFFT,tolerance=1e-06,outputFormat="mat",numberOfIntervals=50000,variableFilter="time|cDC1.v|cDC2.v|transformer1.l2sigma.inductor.1..i|transformer1.l2sigma.inductor.2..i|transformer1.l2sigma.inductor.3..i|realFFT.iTick",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001637/0.001637, allocations: 182.4 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.009/2.009, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001088/0.001087, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.009e-05/3.024e-05, allocations: 4 kB / 321.5 MB, free: 17.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0972/0.09726, allocations: 47.56 MB / 369.1 MB, free: 2.23 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4327/0.5301, allocations: 93.14 MB / 462.2 MB, free: 176 kB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002682/0.5304, allocations: 70.97 kB / 462.3 MB, free: 144 kB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.263/1.793, allocations: 114.2 MB / 0.563 GB, free: 80.75 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.154e-06/1.793, allocations: 3.562 kB / 0.563 GB, free: 80.75 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0004406/1.794, allocations: 219.6 kB / 0.5632 GB, free: 80.74 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.0286/1.822, allocations: 14.26 MB / 0.5771 GB, free: 76.17 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/1.822, allocations: 10 kB / 0.5771 GB, free: 76.17 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005567/1.828, allocations: 1.485 MB / 0.5786 GB, free: 75.28 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02726/1.855, allocations: 7.628 MB / 0.586 GB, free: 73.52 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002341/1.855, allocations: 166.7 kB / 0.5862 GB, free: 73.52 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00211/1.858, allocations: 216.8 kB / 0.5864 GB, free: 73.52 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05015/1.908, allocations: 25.23 MB / 0.611 GB, free: 60.83 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001105/1.908, allocations: 0 / 0.611 GB, free: 60.83 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001907/1.91, allocations: 98.98 kB / 0.6111 GB, free: 60.74 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001861/1.91, allocations: 116.1 kB / 0.6112 GB, free: 60.63 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04004/1.95, allocations: 21.96 MB / 0.6327 GB, free: 40.21 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05873/2.009, allocations: 21.19 MB / 0.6534 GB, free: 22.07 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3774/2.386, allocations: 80.07 MB / 0.7316 GB, free: 63.4 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.08097/2.467, allocations: 78.1 MB / 0.8078 GB, free: 492 kB / 426.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004848/2.468, allocations: 138 kB / 0.808 GB, free: 396 kB / 426.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.05036/2.518, allocations: 28.16 MB / 0.8355 GB, free: 3.609 MB / 442.8 MB Notification: Performance of pre-optimization done (n=4937): time 6.331e-06/2.518, allocations: 0 / 0.8355 GB, free: 3.609 MB / 442.8 MB Notification: Performance of matching and sorting (n=4941): time 19.28/21.8, allocations: 2.184 GB / 3.02 GB, free: 6.484 MB / 1.776 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.007988/21.8, allocations: 7.194 MB / 3.027 GB, free: 15.56 MB / 1.792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003713/21.81, allocations: 1.339 MB / 3.028 GB, free: 14.21 MB / 1.792 GB Notification: Performance of collectPreVariables (initialization): time 0.009577/21.82, allocations: 3.932 MB / 3.032 GB, free: 10.27 MB / 1.792 GB Notification: Performance of collectInitialEqns (initialization): time 0.001793/21.82, allocations: 0.9897 MB / 3.033 GB, free: 9.379 MB / 1.792 GB Notification: Performance of collectInitialBindings (initialization): time 0.03386/21.85, allocations: 21.23 MB / 3.054 GB, free: 4.277 MB / 1.807 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.007802/21.86, allocations: 1.492 MB / 3.055 GB, free: 2.785 MB / 1.807 GB Notification: Performance of setup shared object (initialization): time 0.008844/21.87, allocations: 3.466 MB / 3.058 GB, free: 15.31 MB / 1.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.07541/21.94, allocations: 25.65 MB / 3.083 GB, free: 5.637 MB / 1.839 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1233/22.07, allocations: 57.04 MB / 3.139 GB, free: 15.07 MB / 1.917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.09611/22.16, allocations: 37.47 MB / 3.176 GB, free: 10 MB / 1.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.00206/22.17, allocations: 304 kB / 3.176 GB, free: 9.707 MB / 1.948 GB Notification: Performance of matching and sorting (n=9771) (initialization): time 0.2468/22.41, allocations: 84.34 MB / 3.258 GB, free: 5.312 MB / 2.026 GB Notification: Performance of prepare postOptimizeDAE: time 0.002687/22.42, allocations: 481.7 kB / 3.259 GB, free: 4.836 MB / 2.026 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003509/22.42, allocations: 1.035 MB / 3.26 GB, free: 3.801 MB / 2.026 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008593/22.43, allocations: 2.313 MB / 3.262 GB, free: 1.477 MB / 2.026 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.06808/22.5, allocations: 10.54 MB / 3.272 GB, free: 6.914 MB / 2.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02346/22.52, allocations: 12.61 MB / 3.285 GB, free: 9.789 MB / 2.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0482/22.57, allocations: 2.424 MB / 3.287 GB, free: 7.367 MB / 2.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01325/22.58, allocations: 3.568 MB / 3.291 GB, free: 3.805 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.03626/22.62, allocations: 10.98 MB / 3.301 GB, free: 8.766 MB / 2.073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.01023/22.63, allocations: 2.215 MB / 3.303 GB, free: 6.535 MB / 2.073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 12.84/35.47, allocations: 8.837 GB / 12.14 GB, free: 448.1 MB / 2.542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.211e-05/35.47, allocations: 15.19 kB / 12.14 GB, free: 448.1 MB / 2.542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.376e-05/35.47, allocations: 7.781 kB / 12.14 GB, free: 448.1 MB / 2.542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.728e-05/35.47, allocations: 7.969 kB / 12.14 GB, free: 448.1 MB / 2.542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.89/48.36, allocations: 8.86 GB / 21 GB, free: 374.4 MB / 2.542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.237e-05/48.36, allocations: 0 / 21 GB, free: 374.4 MB / 2.542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00221/48.36, allocations: 163.3 kB / 21 GB, free: 374.2 MB / 2.542 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00454/48.37, allocations: 0.6897 MB / 21 GB, free: 373.6 MB / 2.542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006876/48.37, allocations: 0.773 MB / 21 GB, free: 372.8 MB / 2.542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0232/48.4, allocations: 10.38 MB / 21.01 GB, free: 362.1 MB / 2.542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/48.4, allocations: 0 / 21.01 GB, free: 362.1 MB / 2.542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.84/61.24, allocations: 8.889 GB / 29.9 GB, free: 260.7 MB / 2.542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02468/61.26, allocations: 6.056 MB / 29.91 GB, free: 255.4 MB / 2.542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.006704/61.27, allocations: 0.6172 MB / 29.91 GB, free: 254.8 MB / 2.542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01366/61.28, allocations: 0.6638 MB / 29.91 GB, free: 254.2 MB / 2.542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.005581/61.29, allocations: 0.5653 MB / 29.91 GB, free: 253.6 MB / 2.542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006256/61.3, allocations: 1.212 MB / 29.91 GB, free: 252.4 MB / 2.542 GB Notification: Performance of sorting global known variables: time 0.002392/61.3, allocations: 1.047 MB / 29.91 GB, free: 251.3 MB / 2.542 GB Notification: Performance of sort global known variables: time 9.22e-07/61.3, allocations: 0 / 29.91 GB, free: 251.3 MB / 2.542 GB Notification: Performance of remove unused functions: time 0.05303/61.35, allocations: 9.544 MB / 29.92 GB, free: 241.8 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 0.006499/61.36, allocations: 0.9816 MB / 29.92 GB, free: 240.9 MB / 2.542 GB Notification: Performance of simCode: created initialization part: time 0.1603/61.52, allocations: 80.93 MB / 30 GB, free: 160.8 MB / 2.542 GB Notification: Performance of simCode: created event and clocks part: time 1.477e-05/61.52, allocations: 0 / 30 GB, free: 160.8 MB / 2.542 GB Notification: Performance of simCode: created simulation system equations: time 58.91/120.4, allocations: 28.61 GB / 58.61 GB, free: 0.9989 GB / 2.776 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01567/120.4, allocations: 1.063 MB / 58.61 GB, free: 0.9979 GB / 2.776 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1307/120.6, allocations: 51.13 MB / 58.66 GB, free: 0.9482 GB / 2.776 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02432/120.6, allocations: 9.087 MB / 58.67 GB, free: 0.9393 GB / 2.776 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01016/120.6, allocations: 1.28 MB / 58.67 GB, free: 0.938 GB / 2.776 GB Notification: Performance of SimCode: time 1.533e-06/120.6, allocations: 0 / 58.67 GB, free: 0.938 GB / 2.776 GB Notification: Performance of Templates: time 4.186/124.8, allocations: 1.389 GB / 60.06 GB, free: 1.944 GB / 2.776 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTFunctions.cpp:309:48: error: use of undeclared identifier \'D_24tmpVar2_\'; did you mean \'D_24tmpVar3_\'?\n Modelica_SIunits_Conversions_to__deg(D_24tmpVar2_,tmp39);\n ^~~~~~~~~~~~\n D_24tmpVar3_\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTFunctions.cpp:282:14: note: \'D_24tmpVar3_\' declared here\n double D_24tmpVar3_;\n ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFT.cpp:29844:7: warning: expression result unused [-Wunused-value]\n tmp7;\n ^~~~\n1 warning and 1 error generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier6pulseFFTCalcHelperMain.o] Error 1\n'