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.001503/0.001503, allocations: 185.5 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.033/2.033, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001163/0.001162, allocations: 91.61 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003866/0.0003866, allocations: 11.98 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.3355, allocations: 47.57 MB / 374.6 MB, free: 45.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1575/0.493, allocations: 94.84 MB / 469.5 MB, free: 1.785 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/0.4933, allocations: 83.95 kB / 469.5 MB, free: 1.703 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.169/1.663, allocations: 166.9 MB / 0.6215 GB, free: 6.258 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.437e-06/1.663, allocations: 0 / 0.6215 GB, free: 6.258 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0008204/1.664, allocations: 259.9 kB / 0.6218 GB, free: 6.004 MB / 394.7 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.04464/1.708, allocations: 16.27 MB / 0.6377 GB, free: 5.602 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.609e-05/1.708, allocations: 8.031 kB / 0.6377 GB, free: 5.594 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.008695/1.717, allocations: 2.306 MB / 0.6399 GB, free: 3.273 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007919/1.725, allocations: 1.734 MB / 0.6416 GB, free: 1.516 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.6315/2.357, allocations: 8.842 MB / 0.6502 GB, free: 36.91 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003946/2.357, allocations: 291.9 kB / 0.6505 GB, free: 36.9 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003608/2.361, allocations: 392.5 kB / 0.6509 GB, free: 36.9 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0629/2.424, allocations: 27.9 MB / 0.6781 GB, free: 35.98 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000225/2.424, allocations: 4.281 kB / 0.6781 GB, free: 35.98 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003833/2.428, allocations: 170.2 kB / 0.6783 GB, free: 35.98 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000419/2.428, allocations: 215 kB / 0.6785 GB, free: 35.96 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05057/2.479, allocations: 24.23 MB / 0.7022 GB, free: 25.18 MB / 410.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07958/2.558, allocations: 28.73 MB / 0.7302 GB, free: 13.3 MB / 410.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1282/2.687, allocations: 84.62 MB / 0.8129 GB, free: 5.309 MB / 474.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007217/2.687, allocations: 149 kB / 0.813 GB, free: 5.16 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3978/3.085, allocations: 29.1 MB / 0.8414 GB, free: 101.4 MB / 474.8 MB Notification: Performance of pre-optimization done (n=5058): time 7.835e-06/3.085, allocations: 0 / 0.8414 GB, free: 101.4 MB / 474.8 MB Notification: Performance of matching and sorting (n=5065): time 16.41/19.5, allocations: 2.918 GB / 3.76 GB, free: 0.6953 MB / 1.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.008769/19.51, allocations: 7.359 MB / 3.767 GB, free: 9.574 MB / 1.964 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006923/19.51, allocations: 2.372 MB / 3.769 GB, free: 7.188 MB / 1.964 GB Notification: Performance of collectPreVariables (initialization): time 0.01045/19.52, allocations: 3.952 MB / 3.773 GB, free: 3.219 MB / 1.964 GB Notification: Performance of collectInitialEqns (initialization): time 0.002859/19.53, allocations: 1.608 MB / 3.775 GB, free: 1.598 MB / 1.964 GB Notification: Performance of collectInitialBindings (initialization): time 0.03686/19.56, allocations: 21.64 MB / 3.796 GB, free: 12.05 MB / 1.995 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008924/19.57, allocations: 1.512 MB / 3.797 GB, free: 10.54 MB / 1.995 GB Notification: Performance of setup shared object (initialization): time 0.008756/19.58, allocations: 3.508 MB / 3.801 GB, free: 7.02 MB / 1.995 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.5104/20.09, allocations: 26.85 MB / 3.827 GB, free: 1.605 GB / 2.011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.09618/20.19, allocations: 58.43 MB / 3.884 GB, free: 1.567 GB / 2.011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.08658/20.27, allocations: 38.48 MB / 3.922 GB, free: 1.559 GB / 2.011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.001764/20.28, allocations: 303.1 kB / 3.922 GB, free: 1.559 GB / 2.011 GB Notification: Performance of matching and sorting (n=9915) (initialization): time 0.2176/20.49, allocations: 87.51 MB / 4.007 GB, free: 1.502 GB / 2.011 GB Notification: Performance of prepare postOptimizeDAE: time 0.002713/20.5, allocations: 489.7 kB / 4.008 GB, free: 1.502 GB / 2.011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.003714/20.5, allocations: 1.031 MB / 4.009 GB, free: 1.501 GB / 2.011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01051/20.51, allocations: 3.029 MB / 4.012 GB, free: 1.498 GB / 2.011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.07071/20.58, allocations: 10.72 MB / 4.022 GB, free: 1.488 GB / 2.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0462/20.63, allocations: 26.02 MB / 4.048 GB, free: 1.464 GB / 2.011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.04743/20.68, allocations: 2.493 MB / 4.05 GB, free: 1.462 GB / 2.011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.01189/20.69, allocations: 3.598 MB / 4.054 GB, free: 1.458 GB / 2.011 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 () * Number of clocked 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.04552/20.73, allocations: 15.08 MB / 4.068 GB, free: 1.446 GB / 2.011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009785/20.74, allocations: 2.343 MB / 4.071 GB, free: 1.445 GB / 2.011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 11.74/32.49, allocations: 8.84 GB / 12.91 GB, free: 0.8677 GB / 2.011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.022e-05/32.49, allocations: 26 kB / 12.91 GB, free: 0.8676 GB / 2.011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-05/32.49, allocations: 8 kB / 12.91 GB, free: 0.8676 GB / 2.011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-05/32.49, allocations: 11.95 kB / 12.91 GB, free: 0.8676 GB / 2.011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 12.18/44.67, allocations: 8.865 GB / 21.78 GB, free: 256.8 MB / 2.011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.438e-05/44.67, allocations: 4 kB / 21.78 GB, free: 256.8 MB / 2.011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00248/44.67, allocations: 298.2 kB / 21.78 GB, free: 256.5 MB / 2.011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00556/44.67, allocations: 1.391 MB / 21.78 GB, free: 255.2 MB / 2.011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.006351/44.68, allocations: 0.7964 MB / 21.78 GB, free: 254.4 MB / 2.011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03214/44.71, allocations: 23.64 MB / 21.8 GB, free: 229.9 MB / 2.011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/44.71, allocations: 0 / 21.8 GB, free: 229.9 MB / 2.011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 13.13/57.84, allocations: 8.892 GB / 30.69 GB, free: 1.223 GB / 2.011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02491/57.87, allocations: 6.342 MB / 30.7 GB, free: 1.218 GB / 2.011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.007625/57.88, allocations: 0.6484 MB / 30.7 GB, free: 1.217 GB / 2.011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01436/57.89, allocations: 0.7216 MB / 30.7 GB, free: 1.217 GB / 2.011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.006/57.9, allocations: 0.6509 MB / 30.7 GB, free: 1.216 GB / 2.011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.006794/57.9, allocations: 1.242 MB / 30.7 GB, free: 1.215 GB / 2.011 GB Notification: Performance of sorting global known variables: time 0.004224/57.91, allocations: 1.853 MB / 30.7 GB, free: 1.213 GB / 2.011 GB Notification: Performance of sort global known variables: time 8.32e-07/57.91, allocations: 0 / 30.7 GB, free: 1.213 GB / 2.011 GB Notification: Performance of remove unused functions: time 0.05514/57.96, allocations: 9.993 MB / 30.71 GB, free: 1.203 GB / 2.011 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) * Number of clocked states: 0 () * 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 12.76/70.72, allocations: 8.899 GB / 39.61 GB, free: 0.5385 GB / 2.011 GB Notification: Performance of simCode: created initialization part: time 0.1628/70.89, allocations: 84.25 MB / 39.69 GB, free: 468.4 MB / 2.011 GB Notification: Performance of simCode: created event and clocks part: time 1.358e-05/70.89, allocations: 0 / 39.69 GB, free: 468.4 MB / 2.011 GB Notification: Performance of simCode: created simulation system equations: time 63.65/134.5, allocations: 28.62 GB / 68.31 GB, free: 1.34 GB / 2.354 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01614/134.5, allocations: 1.487 MB / 68.31 GB, free: 1.338 GB / 2.354 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7357/135.3, allocations: 1.148 GB / 69.46 GB, free: 166.4 MB / 2.354 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02579/135.3, allocations: 10.21 MB / 69.47 GB, free: 156.1 MB / 2.354 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0212/135.3, allocations: 8.025 MB / 69.48 GB, free: 148.1 MB / 2.354 GB Notification: Performance of SimCode: time 1.633e-06/135.3, allocations: 0 / 69.48 GB, free: 148.1 MB / 2.354 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 '_omcQ_24tmpVar2_'; did you mean '_omcQ_24tmpVar3_'? Modelica_SIunits_Conversions_to__deg(_omcQ_24tmpVar2_,tmp51); ^~~~~~~~~~~~~~~~ _omcQ_24tmpVar3_ ./OMCppModelica_3_2_3_cpp_Modelica_Blocks_Examples_Rectifier12pulseFFTFunctions.cpp:327:14: note: '_omcQ_24tmpVar3_' declared here double _omcQ_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:30811: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