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.Rectifier12pulse.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.Rectifier12pulse,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.693/1.693, allocations: 171.2 MB / 186.7 MB, free: 1.121 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003459/0.000346, allocations: 8 kB / 233.3 MB, free: 0.8633 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08126/0.08164, allocations: 38.77 MB / 272 MB, free: 10.02 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.Rectifier12pulse): time 0.01457/0.09625, allocations: 8.88 MB / 280.9 MB, free: 1.09 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.2154/0.3117, allocations: 3.225 MB / 284.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002267/0.314, allocations: 64 kB / 284.2 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00275/0.3168, allocations: 0.5824 MB / 284.8 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004772/0.3216, allocations: 0.9468 MB / 285.7 MB, free: 7.762 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001828/0.3234, allocations: 305.2 kB / 286 MB, free: 7.758 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.007429/0.3309, allocations: 3.365 MB / 289.4 MB, free: 7.625 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00591/0.3369, allocations: 2.883 MB / 292.3 MB, free: 7.082 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0046/0.3415, allocations: 1.634 MB / 293.9 MB, free: 6.777 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005528/0.3471, allocations: 1.957 MB / 295.9 MB, free: 6.242 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001745/0.3489, allocations: 278.7 kB / 296.1 MB, free: 6.242 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003336/0.3522, allocations: 344.8 kB / 296.5 MB, free: 6.23 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002813/0.3551, allocations: 1.151 MB / 297.6 MB, free: 5.699 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003092/0.3582, allocations: 0.9372 MB / 298.6 MB, free: 5.172 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.3684, allocations: 6.817 MB / 305.4 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.3685, allocations: 2.516 kB / 305.4 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.3685, allocations: 0 / 305.4 MB, free: 192 kB / 234.7 MB Notification: Performance of Transformations before backend: time 0.0002809/0.3688, allocations: 0 / 305.4 MB, free: 192 kB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1046 * Number of variables: 1046 Notification: Performance of Generate backend data structure: time 0.01579/0.3846, allocations: 4.306 MB / 309.7 MB, free: 13.44 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.3847, allocations: 8.031 kB / 309.7 MB, free: 13.43 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002417/0.3871, allocations: 0.5555 MB / 310.3 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003062/0.3902, allocations: 0.5456 MB / 310.8 MB, free: 12.31 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007953/0.3982, allocations: 2.523 MB / 313.3 MB, free: 9.727 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004004/0.3986, allocations: 291.8 kB / 313.6 MB, free: 9.441 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001584/0.4002, allocations: 391.9 kB / 314 MB, free: 9.059 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/0.4192, allocations: 5.762 MB / 319.8 MB, free: 3.211 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001108/0.4193, allocations: 3.938 kB / 319.8 MB, free: 3.207 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009443/0.4203, allocations: 167.9 kB / 319.9 MB, free: 3.043 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003193/0.4206, allocations: 204 kB / 320.1 MB, free: 2.84 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.437, allocations: 4.993 MB / 325.1 MB, free: 13.82 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04592/0.4829, allocations: 16.51 MB / 341.6 MB, free: 13.05 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0112/0.4942, allocations: 6.796 MB / 348.4 MB, free: 5.707 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005705/0.4948, allocations: 143.1 kB / 348.6 MB, free: 5.551 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.196e-05/0.4949, allocations: 56.56 kB / 348.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of pre-optimization done (n=249): time 5.319e-06/0.4949, allocations: 0 / 348.6 MB, free: 5.488 MB / 282.7 MB Notification: Performance of matching and sorting (n=256): time 0.03743/0.5323, allocations: 10.79 MB / 359.4 MB, free: 10.44 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.5325, allocations: 81.42 kB / 359.5 MB, free: 10.35 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006697/0.5392, allocations: 2.621 MB / 362.1 MB, free: 7.707 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005542/0.5398, allocations: 65.7 kB / 362.2 MB, free: 7.637 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001637/0.5414, allocations: 1.515 MB / 363.7 MB, free: 6.109 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001425/0.5429, allocations: 0.8471 MB / 364.5 MB, free: 5.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002451/0.5431, allocations: 44 kB / 364.6 MB, free: 5.207 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002633/0.5434, allocations: 407.6 kB / 365 MB, free: 4.801 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003898/0.5473, allocations: 1.355 MB / 366.3 MB, free: 3.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004517/0.5519, allocations: 1.662 MB / 368 MB, free: 1.684 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0047/0.5566, allocations: 1.597 MB / 369.6 MB, free: 68 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.612e-05/0.5567, allocations: 0 / 369.6 MB, free: 68 kB / 298.7 MB Notification: Performance of matching and sorting (n=303) (initialization): time 0.0137/0.5704, allocations: 4.307 MB / 373.9 MB, free: 11.68 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.5705, allocations: 8 kB / 373.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.865e-05/0.5705, allocations: 4 kB / 373.9 MB, free: 11.67 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01013/0.5806, allocations: 1.655 MB / 375.6 MB, free: 9.98 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003165/0.5838, allocations: 387.5 kB / 375.9 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04186/0.6258, allocations: 23.88 MB / 399.8 MB, free: 380 kB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003384/0.6292, allocations: 103.9 kB / 399.9 MB, free: 276 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005982/0.6298, allocations: 79.94 kB / 400 MB, free: 196 kB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 12 (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 (198): * Single equations (assignments): 188 * 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: 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.004202/0.634, allocations: 1.407 MB / 401.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001151/0.6352, allocations: 299 kB / 401.7 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01415/0.6494, allocations: 4.411 MB / 406.1 MB, free: 9.973 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-05/0.6495, allocations: 24 kB / 406.1 MB, free: 9.949 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.327e-05/0.6495, allocations: 12 kB / 406.1 MB, free: 9.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.337e-05/0.6496, allocations: 15.94 kB / 406.2 MB, free: 9.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02799/0.6776, allocations: 8.938 MB / 415.1 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.594e-05/0.6777, allocations: 4 kB / 415.1 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002462/0.6801, allocations: 295.7 kB / 415.4 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.2353/0.9154, allocations: 1.611 MB / 417 MB, free: 107.6 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000524/0.916, allocations: 62.44 kB / 417.1 MB, free: 107.6 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03535/0.9513, allocations: 23.63 MB / 440.7 MB, free: 91.51 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.987e-06/0.9514, allocations: 1.344 kB / 440.7 MB, free: 91.51 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01549/0.9669, allocations: 6.161 MB / 446.9 MB, free: 89.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00258/0.9695, allocations: 0.6929 MB / 447.6 MB, free: 88.82 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001136/0.9707, allocations: 52.89 kB / 447.6 MB, free: 88.79 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002864/0.9735, allocations: 139.6 kB / 447.7 MB, free: 88.75 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008087/0.9744, allocations: 215.7 kB / 448 MB, free: 88.72 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002397/0.9746, allocations: 68.34 kB / 448 MB, free: 88.7 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003951/0.9786, allocations: 1.836 MB / 449.9 MB, free: 88.01 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.122e-06/0.9786, allocations: 0 / 449.9 MB, free: 88.01 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.005613/0.9843, allocations: 0.9617 MB / 450.8 MB, free: 87.91 MB / 346.7 MB 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: 12 (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 simulation (151): * Single equations (assignments): 141 * 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: 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.01744/1.002, allocations: 6.836 MB / 457.7 MB, free: 83.84 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01093/1.013, allocations: 4.876 MB / 462.5 MB, free: 78.83 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.013, allocations: 1.562 kB / 462.5 MB, free: 78.83 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007789/1.021, allocations: 3.376 MB / 465.9 MB, free: 75.32 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006624/1.027, allocations: 0.8708 MB / 466.8 MB, free: 74.45 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07755/1.105, allocations: 26.11 MB / 492.9 MB, free: 47.05 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005594/1.11, allocations: 3.165 MB / 496 MB, free: 43.85 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003799/1.114, allocations: 1.473 MB / 497.5 MB, free: 42.38 MB / 346.7 MB Notification: Performance of SimCode: time 1.333e-06/1.114, allocations: 0 / 497.5 MB, free: 42.38 MB / 346.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_Rectifier12pulseCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulseCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulseCalcHelperMain.cpp:34: ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse.cpp:3203:29: error: use of undeclared identifier 'tmp8' _transformerData1_P_C1_ = tmp8; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse.cpp:3204:29: error: use of undeclared identifier 'tmp9' _transformerData1_P_C2_ = tmp9; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse.cpp:3205:29: error: use of undeclared identifier 'tmp10' _transformerData2_P_C1_ = tmp10; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulse.cpp:3206:29: error: use of undeclared identifier 'tmp11' _transformerData2_P_C2_ = tmp11; ^ In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulseCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulseFMU.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 4 errors generated. : recipe for target 'OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulseCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_Transformers_Rectifier12pulseCalcHelperMain.o] Error 1