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: "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.Rectifier12pulseFFT,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT",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.002433/0.002433, allocations: 181.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.155/2.155, 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.001148/0.001148, allocations: 86.69 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.151e-05/3.222e-05, allocations: 7.938 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1023, allocations: 47.57 MB / 369.2 MB, free: 2.109 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4626/0.565, allocations: 94.74 MB / 463.9 MB, free: 14.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/0.5653, allocations: 69.91 kB / 464 MB, free: 14.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.485/2.051, allocations: 167.2 MB / 0.6164 GB, free: 62.59 MB / 410.8 MB Notification: Performance of FrontEnd: time 3.086e-06/2.051, allocations: 2.438 kB / 0.6164 GB, free: 62.59 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0007201/2.051, allocations: 259.8 kB / 0.6167 GB, free: 62.34 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.0371/2.089, allocations: 15.83 MB / 0.6321 GB, free: 46.43 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.954e-05/2.089, allocations: 15.47 kB / 0.6321 GB, free: 46.42 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008367/2.097, allocations: 2.293 MB / 0.6344 GB, free: 44.11 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007541/2.105, allocations: 1.733 MB / 0.6361 GB, free: 42.36 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03316/2.138, allocations: 8.794 MB / 0.6447 GB, free: 33.78 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004431/2.138, allocations: 299.2 kB / 0.6449 GB, free: 33.49 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00324/2.142, allocations: 383 kB / 0.6453 GB, free: 33.12 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06037/2.202, allocations: 27.75 MB / 0.6724 GB, free: 5.207 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002052/2.202, allocations: 7.938 kB / 0.6724 GB, free: 5.199 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002911/2.205, allocations: 167.5 kB / 0.6726 GB, free: 5.039 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003128/2.206, allocations: 212 kB / 0.6728 GB, free: 4.828 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3793/2.585, allocations: 24.03 MB / 0.6962 GB, free: 70.8 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08876/2.674, allocations: 28.73 MB / 0.7243 GB, free: 67.07 MB / 426.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.08341/2.757, allocations: 83.5 MB / 0.8058 GB, free: 10.11 MB / 426.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.4236/3.181, allocations: 80.03 MB / 0.884 GB, free: 85.76 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006736/3.182, allocations: 154.3 kB / 0.8841 GB, free: 85.67 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0578/3.239, allocations: 28.97 MB / 0.9124 GB, free: 84.85 MB / 458.8 MB Notification: Performance of pre-optimization done (n=5058): time 1.013e-05/3.24, allocations: 0 / 0.9124 GB, free: 84.85 MB / 458.8 MB Notification: Performance of matching and sorting (n=5065): time 17.04/20.28, allocations: 2.189 GB / 3.101 GB, free: 6.098 MB / 1.901 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008585/20.29, allocations: 7.367 MB / 3.108 GB, free: 14.97 MB / 1.917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006894/20.3, allocations: 2.343 MB / 3.111 GB, free: 12.61 MB / 1.917 GB Notification: Performance of collectPreVariables (initialization): time 0.01035/20.31, allocations: 3.948 MB / 3.115 GB, free: 8.641 MB / 1.917 GB Notification: Performance of collectInitialEqns (initialization): time 0.002904/20.31, allocations: 1.607 MB / 3.116 GB, free: 7.02 MB / 1.917 GB Notification: Performance of collectInitialBindings (initialization): time 0.03658/20.35, allocations: 21.64 MB / 3.137 GB, free: 1.48 MB / 1.932 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008413/20.35, allocations: 1.514 MB / 3.139 GB, free: 15.96 MB / 1.948 GB Notification: Performance of setup shared object (initialization): time 0.008916/20.36, allocations: 3.504 MB / 3.142 GB, free: 12.45 MB / 1.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.08168/20.44, allocations: 26.28 MB / 3.168 GB, free: 2.152 MB / 1.964 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1168/20.56, allocations: 57.87 MB / 3.224 GB, free: 10.87 MB / 2.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.1006/20.66, allocations: 38.21 MB / 3.262 GB, free: 5.289 MB / 2.073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001709/20.66, allocations: 307.8 kB / 3.262 GB, free: 4.992 MB / 2.073 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.2563/20.92, allocations: 86.36 MB / 3.346 GB, free: 14.53 MB / 2.167 GB Notification: Performance of prepare postOptimizeDAE: time 0.002604/20.92, allocations: 489.7 kB / 3.347 GB, free: 14.04 MB / 2.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003385/20.93, allocations: 1.035 MB / 3.348 GB, free: 13.01 MB / 2.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0114/20.94, allocations: 3.018 MB / 3.351 GB, free: 9.965 MB / 2.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.5605/21.5, allocations: 10.72 MB / 3.361 GB, free: 1.722 GB / 2.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04166/21.54, allocations: 25.53 MB / 3.386 GB, free: 1.709 GB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0481/21.59, allocations: 2.489 MB / 3.389 GB, free: 1.709 GB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01416/21.6, allocations: 3.599 MB / 3.392 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.03478/21.64, allocations: 11.05 MB / 3.403 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009916/21.65, allocations: 2.357 MB / 3.405 GB, free: 1.708 GB / 2.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 13.28/34.93, allocations: 8.839 GB / 12.24 GB, free: 208.4 MB / 2.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.203e-05/34.93, allocations: 25.66 kB / 12.24 GB, free: 208.4 MB / 2.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.71e-05/34.93, allocations: 8 kB / 12.24 GB, free: 208.4 MB / 2.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.1e-05/34.93, allocations: 11.95 kB / 12.24 GB, free: 208.3 MB / 2.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 13.32/48.25, allocations: 8.864 GB / 21.11 GB, free: 416.8 MB / 2.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-05/48.25, allocations: 0 / 21.11 GB, free: 416.8 MB / 2.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002474/48.25, allocations: 291.7 kB / 21.11 GB, free: 416.5 MB / 2.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005465/48.26, allocations: 1.38 MB / 21.11 GB, free: 415.1 MB / 2.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.005909/48.26, allocations: 0.7968 MB / 21.11 GB, free: 414.3 MB / 2.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03074/48.29, allocations: 23.17 MB / 21.13 GB, free: 390.3 MB / 2.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/48.29, allocations: 3.562 kB / 21.13 GB, free: 390.3 MB / 2.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 12.65/60.94, allocations: 8.891 GB / 30.02 GB, free: 0.5445 GB / 2.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02597/60.97, allocations: 6.338 MB / 30.03 GB, free: 0.5392 GB / 2.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.008165/60.98, allocations: 0.6484 MB / 30.03 GB, free: 0.5385 GB / 2.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01474/60.99, allocations: 0.714 MB / 30.03 GB, free: 0.5378 GB / 2.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.007/61, allocations: 0.6561 MB / 30.03 GB, free: 0.5372 GB / 2.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006988/61, allocations: 1.249 MB / 30.03 GB, free: 0.536 GB / 2.167 GB Notification: Performance of sorting global known variables: time 0.004362/61.01, allocations: 1.822 MB / 30.04 GB, free: 0.5342 GB / 2.167 GB Notification: Performance of sort global known variables: time 1.132e-06/61.01, allocations: 0 / 30.04 GB, free: 0.5342 GB / 2.167 GB Notification: Performance of remove unused functions: time 0.05823/61.07, allocations: 9.992 MB / 30.05 GB, free: 0.5245 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 13.7/74.76, allocations: 8.898 GB / 38.94 GB, free: 0.679 GB / 2.167 GB Notification: Performance of simCode: created initialization part: time 0.1682/74.93, allocations: 83.37 MB / 39.02 GB, free: 0.5984 GB / 2.167 GB Notification: Performance of simCode: created event and clocks part: time 1.476e-05/74.93, allocations: 4 kB / 39.02 GB, free: 0.5984 GB / 2.167 GB Notification: Performance of simCode: created simulation system equations: time 64.58/139.5, allocations: 28.61 GB / 67.64 GB, free: 0.5967 GB / 2.62 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01906/139.5, allocations: 1.479 MB / 67.64 GB, free: 0.5954 GB / 2.62 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1865/139.7, allocations: 60.16 MB / 67.7 GB, free: 0.537 GB / 2.62 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02541/139.7, allocations: 10.21 MB / 67.71 GB, free: 0.527 GB / 2.62 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.02075/139.8, allocations: 8.038 MB / 67.71 GB, free: 0.5192 GB / 2.62 GB Notification: Performance of SimCode: time 1.443e-06/139.8, allocations: 0 / 67.71 GB, free: 0.5192 GB / 2.62 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_Rectifier12pulseFFTCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFunctions.cpp:354:48: error: use of undeclared identifier 'D_24tmpVar2_'; did you mean 'D_24tmpVar3_'? Modelica_SIunits_Conversions_to__deg(D_24tmpVar2_,tmp51); ^~~~~~~~~~~~ D_24tmpVar3_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFunctions.cpp:327:14: note: 'D_24tmpVar3_' declared here double D_24tmpVar3_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.cpp:34: ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFT.cpp:30820:7: warning: expression result unused [-Wunused-value] tmp9; ^~~~ In file included from OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFMU.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_Rectifier12pulseFFTCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTCalcHelperMain.o] Error 1