Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.62/1.62, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003511/0.0003512, allocations: 8 kB / 233.3 MB, free: 2.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07909/0.07947, allocations: 38.78 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier6pulse): time 0.009508/0.08903, allocations: 5.688 MB / 277.7 MB, free: 6.395 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005693/0.09477, allocations: 2.249 MB / 280 MB, free: 4.141 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009901/0.0958, allocations: 35.81 kB / 280 MB, free: 4.105 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00144/0.09726, allocations: 378.1 kB / 280.4 MB, free: 3.734 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002494/0.09978, allocations: 0.5491 MB / 280.9 MB, free: 3.184 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008374/0.1006, allocations: 179.8 kB / 281.1 MB, free: 3.008 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.003935/0.1046, allocations: 1.86 MB / 283 MB, free: 1.141 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002999/0.1076, allocations: 1.586 MB / 284.5 MB, free: 15.52 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002007/0.1097, allocations: 0.907 MB / 285.4 MB, free: 14.61 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00251/0.1122, allocations: 1.093 MB / 286.5 MB, free: 13.51 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006059/0.1129, allocations: 156 kB / 286.7 MB, free: 13.36 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001151/0.114, allocations: 223.9 kB / 286.9 MB, free: 13.14 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008937/0.115, allocations: 0.6232 MB / 287.5 MB, free: 12.52 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00092/0.1159, allocations: 0.5277 MB / 288.1 MB, free: 11.98 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005759/0.1217, allocations: 3.736 MB / 291.8 MB, free: 8.234 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1217, allocations: 0 / 291.8 MB, free: 8.234 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.1217, allocations: 0 / 291.8 MB, free: 8.234 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001255/0.1219, allocations: 0 / 291.8 MB, free: 8.234 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 579 * Number of variables: 579 Notification: Performance of Generate backend data structure: time 0.008839/0.1307, allocations: 2.538 MB / 294.3 MB, free: 5.633 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.712e-05/0.1308, allocations: 8.031 kB / 294.3 MB, free: 5.625 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001369/0.1322, allocations: 328.7 kB / 294.7 MB, free: 5.293 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001663/0.1339, allocations: 312.7 kB / 295 MB, free: 4.984 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005527/0.1394, allocations: 1.46 MB / 296.4 MB, free: 3.465 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002816/0.1398, allocations: 160.4 kB / 296.6 MB, free: 3.305 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009406/0.1407, allocations: 219.9 kB / 296.8 MB, free: 3.09 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.235/0.3758, allocations: 3.159 MB / 300 MB, free: 28.11 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.473e-05/0.3759, allocations: 0.7812 kB / 300 MB, free: 28.11 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000385/0.3763, allocations: 88.69 kB / 300.1 MB, free: 28.11 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002191/0.3765, allocations: 110.8 kB / 300.2 MB, free: 28.1 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008904/0.3854, allocations: 2.722 MB / 302.9 MB, free: 27.51 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02356/0.409, allocations: 8.965 MB / 311.8 MB, free: 22.63 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004927/0.414, allocations: 3.383 MB / 315.2 MB, free: 19.82 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003793/0.4144, allocations: 121.7 kB / 315.3 MB, free: 19.72 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.855e-05/0.4145, allocations: 45.69 kB / 315.4 MB, free: 19.67 MB / 250.7 MB Notification: Performance of pre-optimization done (n=128): time 4.258e-06/0.4145, allocations: 4 kB / 315.4 MB, free: 19.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=132): time 0.01718/0.4317, allocations: 5.702 MB / 321.1 MB, free: 16.23 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/0.4318, allocations: 75.69 kB / 321.2 MB, free: 16.16 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00312/0.4349, allocations: 1.491 MB / 322.7 MB, free: 14.79 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000262/0.4352, allocations: 45.7 kB / 322.7 MB, free: 14.73 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006386/0.4359, allocations: 0.898 MB / 323.6 MB, free: 13.83 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004688/0.4364, allocations: 448.7 kB / 324 MB, free: 13.39 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001108/0.4365, allocations: 28 kB / 324.1 MB, free: 13.37 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.4366, allocations: 357.2 kB / 324.4 MB, free: 13.01 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001646/0.4383, allocations: 0.7091 MB / 325.1 MB, free: 12.3 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00179/0.4401, allocations: 0.8746 MB / 326 MB, free: 11.38 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001887/0.442, allocations: 0.8261 MB / 326.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.044e-06/0.442, allocations: 0 / 326.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.005538/0.4476, allocations: 2.237 MB / 329.1 MB, free: 8.297 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.941e-05/0.4476, allocations: 8 kB / 329.1 MB, free: 8.289 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.591e-05/0.4477, allocations: 4 kB / 329.1 MB, free: 8.285 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004649/0.4523, allocations: 0.822 MB / 329.9 MB, free: 7.453 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001592/0.454, allocations: 211.7 kB / 330.1 MB, free: 7.246 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01719/0.4712, allocations: 10.72 MB / 340.8 MB, free: 12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001674/0.4729, allocations: 51.97 kB / 340.9 MB, free: 11.95 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001984/0.4731, allocations: 43.98 kB / 340.9 MB, free: 11.91 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 6 (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 (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * 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.002183/0.4753, allocations: 0.8214 MB / 341.7 MB, free: 11.08 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006016/0.4759, allocations: 162.1 kB / 341.9 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006864/0.4828, allocations: 2.296 MB / 344.2 MB, free: 8.598 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.199e-05/0.4829, allocations: 12 kB / 344.2 MB, free: 8.586 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.02e-05/0.4829, allocations: 12.2 kB / 344.2 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.779e-05/0.4829, allocations: 7.969 kB / 344.2 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01403/0.497, allocations: 4.773 MB / 349 MB, free: 3.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.497, allocations: 4 kB / 349 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001396/0.4984, allocations: 164.3 kB / 349.2 MB, free: 3.555 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004906/0.5034, allocations: 0.8082 MB / 350 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000246/0.5037, allocations: 28 kB / 350 MB, free: 2.707 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01902/0.5227, allocations: 10.62 MB / 360.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.5227, allocations: 0 / 360.6 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008827/0.5316, allocations: 3.261 MB / 363.9 MB, free: 4.273 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001414/0.533, allocations: 411.1 kB / 364.3 MB, free: 3.852 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005138/0.5336, allocations: 35.95 kB / 364.3 MB, free: 3.816 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001596/0.5352, allocations: 75.84 kB / 364.4 MB, free: 3.742 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004554/0.5357, allocations: 113.1 kB / 364.5 MB, free: 3.629 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.5358, allocations: 35.98 kB / 364.5 MB, free: 3.594 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.002586/0.5384, allocations: 1.052 MB / 365.6 MB, free: 2.539 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.91e-07/0.5385, allocations: 0 / 365.6 MB, free: 2.539 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.002939/0.5414, allocations: 0.5132 MB / 366.1 MB, free: 2.027 MB / 282.7 MB 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: 6 (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 simulation (78): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.009832/0.5513, allocations: 3.89 MB / 370 MB, free: 14.11 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.006441/0.5578, allocations: 2.421 MB / 372.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.5578, allocations: 192 / 372.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004073/0.5619, allocations: 1.626 MB / 374 MB, free: 9.957 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003497/0.5654, allocations: 473.5 kB / 374.5 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03906/0.6045, allocations: 13.61 MB / 388.1 MB, free: 11.5 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002647/0.6072, allocations: 2.034 MB / 390.1 MB, free: 9.434 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001766/0.609, allocations: 0.7766 MB / 390.9 MB, free: 8.656 MB / 314.7 MB Notification: Performance of SimCode: time 1.383e-06/0.609, allocations: 0 / 390.9 MB, free: 8.656 MB / 314.7 MB 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=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulseCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulseCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulseCalcHelperMain.cpp:34: ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse.cpp:1927:29: error: use of undeclared identifier 'tmp6' _transformerData1_P_C1_ = tmp6; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulse.cpp:1928:29: error: use of undeclared identifier 'tmp7' _transformerData1_P_C2_ = tmp7; ^ In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulseFMU.cpp:11: /var/lib/jenkins/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) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier6pulseCalcHelperMain.o] Error 1