Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.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.Rectifier12pulseFFT,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.Rectifier12pulseFFT") translateModel(Modelica.Blocks.Examples.Rectifier12pulseFFT,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.Rectifier12pulseFFT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002226/0.002225, allocations: 182.1 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.03/2.03, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00112/0.00112, allocations: 86.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 5.472e-05/5.506e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09746, allocations: 47.57 MB / 369.1 MB, free: 2.207 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4643/0.5618, allocations: 94.74 MB / 463.8 MB, free: 14.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003576/0.5623, allocations: 69.72 kB / 463.9 MB, free: 14.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.475/2.037, allocations: 167.2 MB / 0.6163 GB, free: 62.73 MB / 410.8 MB Notification: Performance of FrontEnd: time 2.594e-06/2.037, allocations: 0 / 0.6163 GB, free: 62.73 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0006641/2.038, allocations: 266.8 kB / 0.6166 GB, free: 62.47 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: 5853 * Number of variables: 5853 Notification: Performance of Generate backend data structure: time 0.03553/2.074, allocations: 15.83 MB / 0.632 GB, free: 46.55 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/2.074, allocations: 8.031 kB / 0.632 GB, free: 46.55 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006764/2.08, allocations: 1.738 MB / 0.6337 GB, free: 44.79 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03274/2.113, allocations: 8.797 MB / 0.6423 GB, free: 36.2 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003746/2.114, allocations: 297.6 kB / 0.6426 GB, free: 35.92 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002884/2.117, allocations: 382.3 kB / 0.643 GB, free: 35.55 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06384/2.18, allocations: 27.74 MB / 0.6701 GB, free: 7.641 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000218/2.181, allocations: 7.938 kB / 0.6701 GB, free: 7.633 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003532/2.184, allocations: 174.9 kB / 0.6702 GB, free: 7.465 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004244/2.185, allocations: 204 kB / 0.6704 GB, free: 7.262 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.393/2.578, allocations: 24.03 MB / 0.6939 GB, free: 78.89 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08474/2.663, allocations: 28.73 MB / 0.722 GB, free: 75.17 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08126/2.744, allocations: 83.49 MB / 0.8035 GB, free: 11.11 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.4188/3.163, allocations: 80.03 MB / 0.8817 GB, free: 88.02 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006606/3.163, allocations: 147.9 kB / 0.8818 GB, free: 87.93 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.05656/3.22, allocations: 28.97 MB / 0.9101 GB, free: 87.11 MB / 458.8 MB Notification: Performance of pre-optimization done (n=5058): time 9.417e-06/3.22, allocations: 3.219 kB / 0.9101 GB, free: 87.11 MB / 458.8 MB Notification: Performance of matching and sorting (n=5065): time 16.39/19.61, allocations: 2.189 GB / 3.099 GB, free: 6.344 MB / 1.901 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008739/19.62, allocations: 7.358 MB / 3.106 GB, free: 15.22 MB / 1.917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007429/19.62, allocations: 2.35 MB / 3.108 GB, free: 12.86 MB / 1.917 GB Notification: Performance of collectPreVariables (initialization): time 0.01008/19.63, allocations: 3.952 MB / 3.112 GB, free: 8.891 MB / 1.917 GB Notification: Performance of collectInitialEqns (initialization): time 0.002887/19.64, allocations: 1.611 MB / 3.114 GB, free: 7.266 MB / 1.917 GB Notification: Performance of collectInitialBindings (initialization): time 0.03563/19.67, allocations: 21.63 MB / 3.135 GB, free: 1.738 MB / 1.932 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008348/19.68, allocations: 1.516 MB / 3.136 GB, free: 228 kB / 1.932 GB Notification: Performance of setup shared object (initialization): time 0.01204/19.69, allocations: 3.508 MB / 3.14 GB, free: 12.7 MB / 1.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.08066/19.77, allocations: 26.28 MB / 3.166 GB, free: 2.402 MB / 1.964 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1122/19.89, allocations: 57.87 MB / 3.222 GB, free: 11.12 MB / 2.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.09912/19.98, allocations: 38.2 MB / 3.259 GB, free: 5.539 MB / 2.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001538/19.99, allocations: 309.6 kB / 3.26 GB, free: 5.238 MB / 2.073 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.2441/20.23, allocations: 86.37 MB / 3.344 GB, free: 14.76 MB / 2.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.001814/20.23, allocations: 489.7 kB / 3.344 GB, free: 14.28 MB / 2.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.002808/20.23, allocations: 1.036 MB / 3.345 GB, free: 13.24 MB / 2.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01089/20.25, allocations: 3.015 MB / 3.348 GB, free: 10.2 MB / 2.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.5252/20.77, allocations: 10.71 MB / 3.359 GB, free: 1.722 GB / 2.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.042/20.81, allocations: 25.53 MB / 3.384 GB, free: 1.709 GB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04804/20.86, allocations: 2.489 MB / 3.386 GB, free: 1.709 GB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01254/20.87, allocations: 3.603 MB / 3.39 GB, free: 1.709 GB / 2.167 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.03195/20.91, allocations: 11.05 MB / 3.401 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00939/20.92, allocations: 2.357 MB / 3.403 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 12.66/33.58, allocations: 8.839 GB / 12.24 GB, free: 208.7 MB / 2.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.832e-05/33.58, allocations: 24 kB / 12.24 GB, free: 208.6 MB / 2.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.489e-05/33.58, allocations: 9.203 kB / 12.24 GB, free: 208.6 MB / 2.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.725e-05/33.58, allocations: 15.95 kB / 12.24 GB, free: 208.6 MB / 2.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.93/46.51, allocations: 8.864 GB / 21.11 GB, free: 416.4 MB / 2.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.673e-05/46.51, allocations: 3.984 kB / 21.11 GB, free: 416.4 MB / 2.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002576/46.51, allocations: 294 kB / 21.11 GB, free: 416.1 MB / 2.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005552/46.52, allocations: 1.379 MB / 21.11 GB, free: 414.8 MB / 2.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005505/46.52, allocations: 0.7968 MB / 21.11 GB, free: 414 MB / 2.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03065/46.55, allocations: 23.17 MB / 21.13 GB, free: 389.9 MB / 2.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/46.55, allocations: 0 / 21.13 GB, free: 389.9 MB / 2.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 13.54/60.09, allocations: 8.891 GB / 30.02 GB, free: 0.5433 GB / 2.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02623/60.12, allocations: 6.338 MB / 30.03 GB, free: 0.538 GB / 2.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00723/60.13, allocations: 0.6445 MB / 30.03 GB, free: 0.5373 GB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01484/60.14, allocations: 0.7205 MB / 30.03 GB, free: 0.5366 GB / 2.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006323/60.15, allocations: 0.6585 MB / 30.03 GB, free: 0.536 GB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006527/60.15, allocations: 1.242 MB / 30.03 GB, free: 0.5348 GB / 2.167 GB Notification: Performance of sorting global known variables: time 0.004496/60.16, allocations: 1.829 MB / 30.03 GB, free: 0.533 GB / 2.167 GB Notification: Performance of sort global known variables: time 1.212e-06/60.16, allocations: 0 / 30.03 GB, free: 0.533 GB / 2.167 GB Notification: Performance of remove unused functions: time 0.05663/60.22, allocations: 9.988 MB / 30.04 GB, free: 0.5233 GB / 2.167 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 0.007121/60.22, allocations: 1.041 MB / 30.04 GB, free: 0.5224 GB / 2.167 GB Notification: Performance of simCode: created initialization part: time 0.1672/60.39, allocations: 83.37 MB / 30.13 GB, free: 452.2 MB / 2.167 GB Notification: Performance of simCode: created event and clocks part: time 1.578e-05/60.39, allocations: 0 / 30.13 GB, free: 452.2 MB / 2.167 GB Notification: Performance of simCode: created simulation system equations: time 63.16/123.5, allocations: 28.61 GB / 58.74 GB, free: 249.5 MB / 2.558 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01689/123.6, allocations: 1.484 MB / 58.74 GB, free: 248.1 MB / 2.558 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1387/123.7, allocations: 54.36 MB / 58.79 GB, free: 194.2 MB / 2.558 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02747/123.7, allocations: 10.21 MB / 58.8 GB, free: 184 MB / 2.558 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01027/123.7, allocations: 1.343 MB / 58.8 GB, free: 182.6 MB / 2.558 GB Notification: Performance of SimCode: time 1.653e-06/123.7, allocations: 0 / 58.8 GB, free: 182.6 MB / 2.558 GB Notification: Performance of Templates: time 4.818/128.6, allocations: 1.698 GB / 60.5 GB, free: 0.6467 GB / 2.558 GB make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.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.Rectifier12pulseFFTCalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFTCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFTCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFTFunctions.cpp:354:48: error: use of undeclared identifier \'D_24tmpVar2_\'; did you mean \'D_24tmpVar3_\'?\n Modelica_SIunits_Conversions_to__deg(D_24tmpVar2_,tmp51);\n ^~~~~~~~~~~~\n D_24tmpVar3_\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFTFunctions.cpp:327:14: note: \'D_24tmpVar3_\' declared here\n double D_24tmpVar3_;\n ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFTCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFT.cpp:30820:7: warning: expression result unused [-Wunused-value]\n tmp9;\n ^~~~\n1 warning and 1 error generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFTCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Blocks.Examples.Rectifier12pulseFFTCalcHelperMain.o] Error 1\n'