Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.MultiPhase.Examples.Rectifier.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.Electrical.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.MultiPhase.Examples.Rectifier,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_Rectifier",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.001474/0.001473, allocations: 185.3 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.947/1.947, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001118/0.001118, allocations: 97.98 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003692/0.0003693, allocations: 8 kB / 327.1 MB, free: 128 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3212/0.3216, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1381/0.4598, allocations: 85.32 MB / 459.9 MB, free: 11.32 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002993/0.4601, allocations: 79.95 kB / 460 MB, free: 11.25 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1289/0.589, allocations: 32.06 MB / 492.1 MB, free: 10.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.386e-06/0.589, allocations: 0 / 492.1 MB, free: 10.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001675/0.5892, allocations: 63.81 kB / 492.1 MB, free: 10.92 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 531 * Number of variables: 531 Notification: Performance of Generate backend data structure: time 0.007634/0.5969, allocations: 2.101 MB / 494.2 MB, free: 8.754 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.321e-05/0.5969, allocations: 8.031 kB / 494.3 MB, free: 8.746 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009531/0.5979, allocations: 303.5 kB / 494.6 MB, free: 8.438 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006925/0.5986, allocations: 233.3 kB / 494.8 MB, free: 8.207 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003747/0.6024, allocations: 1.216 MB / 496 MB, free: 6.945 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001922/0.6026, allocations: 156.2 kB / 496.1 MB, free: 6.789 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006079/0.6032, allocations: 203.9 kB / 496.3 MB, free: 6.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007638/0.6109, allocations: 2.594 MB / 498.9 MB, free: 3.844 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.35e-05/0.611, allocations: 3.938 kB / 498.9 MB, free: 3.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000309/0.6113, allocations: 88 kB / 499 MB, free: 3.754 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.857e-05/0.6114, allocations: 52 kB / 499.1 MB, free: 3.703 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006366/0.6178, allocations: 1.949 MB / 0.4893 GB, free: 1.738 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2891/0.9069, allocations: 7.516 MB / 0.4966 GB, free: 90.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.9104, allocations: 2.35 MB / 0.4989 GB, free: 89.05 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001283/0.9106, allocations: 17.58 kB / 0.4989 GB, free: 89.05 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.315e-05/0.9106, allocations: 49.91 kB / 0.499 GB, free: 89.01 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 3.306e-06/0.9107, allocations: 0 / 0.499 GB, free: 89.01 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.01528/0.9259, allocations: 4.291 MB / 0.5032 GB, free: 87.92 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.08e-05/0.9261, allocations: 62.25 kB / 0.5032 GB, free: 87.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.9282, allocations: 0.7638 MB / 0.504 GB, free: 87.73 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002541/0.9285, allocations: 39.86 kB / 0.504 GB, free: 87.7 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007439/0.9293, allocations: 0.8341 MB / 0.5048 GB, free: 87.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005256/0.9298, allocations: 324.8 kB / 0.5051 GB, free: 87.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001384/0.93, allocations: 17.25 kB / 0.5052 GB, free: 87.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001303/0.9301, allocations: 358.9 kB / 0.5055 GB, free: 86.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001773/0.9319, allocations: 0.4979 MB / 0.506 GB, free: 86.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001828/0.9338, allocations: 0.6737 MB / 0.5066 GB, free: 86.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001984/0.9358, allocations: 0.5788 MB / 0.5072 GB, free: 86.61 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.9358, allocations: 3.438 kB / 0.5072 GB, free: 86.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.005598/0.9414, allocations: 1.585 MB / 0.5088 GB, free: 86.49 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/0.9415, allocations: 10.83 kB / 0.5088 GB, free: 86.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.496e-05/0.9416, allocations: 7.5 kB / 0.5088 GB, free: 86.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002411/0.944, allocations: 474.2 kB / 0.5092 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001905/0.946, allocations: 174.2 kB / 0.5094 GB, free: 86.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01365/0.9596, allocations: 8.604 MB / 0.5178 GB, free: 79.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.9608, allocations: 50.16 kB / 0.5179 GB, free: 79.74 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001072/0.961, allocations: 38.5 kB / 0.5179 GB, free: 79.73 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (88): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of prepare postOptimizeDAE: time 0.001628/0.9626, allocations: 0.6348 MB / 0.5185 GB, free: 79.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003911/0.963, allocations: 108 kB / 0.5186 GB, free: 79.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005194/0.9682, allocations: 1.548 MB / 0.5201 GB, free: 78.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.003e-05/0.9683, allocations: 9.781 kB / 0.5201 GB, free: 78.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.225e-05/0.9683, allocations: 7.516 kB / 0.5201 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.729e-05/0.9684, allocations: 3.609 kB / 0.5201 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.013/0.9814, allocations: 3.532 MB / 0.5236 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.361e-05/0.9815, allocations: 7.281 kB / 0.5236 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001439/0.9829, allocations: 125.3 kB / 0.5237 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002219/0.9852, allocations: 461.8 kB / 0.5242 GB, free: 77.11 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002029/0.9854, allocations: 26.77 kB / 0.5242 GB, free: 77.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01524/1.001, allocations: 8.529 MB / 0.5325 GB, free: 70.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/1.001, allocations: 4.062 kB / 0.5325 GB, free: 70.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007555/1.008, allocations: 2.355 MB / 0.5348 GB, free: 69.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001172/1.01, allocations: 278.4 kB / 0.5351 GB, free: 69.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002868/1.01, allocations: 26.64 kB / 0.5351 GB, free: 69.12 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001274/1.011, allocations: 49.08 kB / 0.5352 GB, free: 69.11 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004477/1.012, allocations: 92.41 kB / 0.5352 GB, free: 69.09 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/1.012, allocations: 22.69 kB / 0.5353 GB, free: 69.08 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001693/1.013, allocations: 0.6015 MB / 0.5359 GB, free: 68.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.01e-07/1.013, allocations: 0 / 0.5359 GB, free: 68.84 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003243/1.017, allocations: 398.1 kB / 0.5362 GB, free: 68.81 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (supplyL.inductor[2].i,supplyL.inductor[3].i,cDC1.v,cDC2.v) * Number of discrete variables: 6 (idealDiode1.idealDiode[1].off,idealDiode1.idealDiode[2].off,idealDiode1.idealDiode[3].off,idealDiode2.idealDiode[1].off,idealDiode2.idealDiode[2].off,idealDiode2.idealDiode[3].off) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (62): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(1,100.0%) 9} * Non-linear torn systems: 3 {2 7,2 7,2 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.00909/1.026, allocations: 3.098 MB / 0.5393 GB, free: 67.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.006206/1.032, allocations: 1.894 MB / 0.5411 GB, free: 65.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/1.032, allocations: 0 / 0.5411 GB, free: 65.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00389/1.036, allocations: 1.305 MB / 0.5424 GB, free: 64.72 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003269/1.039, allocations: 266.5 kB / 0.5426 GB, free: 64.52 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03272/1.072, allocations: 12.6 MB / 0.5549 GB, free: 52.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002196/1.074, allocations: 1.719 MB / 0.5566 GB, free: 51.42 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001115/1.076, allocations: 0.6323 MB / 0.5572 GB, free: 50.84 MB / 378.7 MB Notification: Performance of SimCode: time 8.22e-07/1.076, allocations: 0 / 0.5572 GB, free: 50.84 MB / 378.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=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_Electrical_MultiPhase_Examples_RectifierCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFunctions.cpp:90:38: error: use of undeclared identifier '_omcQ_24tmpVar12_'; did you mean '_omcQ_24tmpVar13_'? _omcQ_24tmpVar13_ = std::cos(_omcQ_24tmpVar12_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFunctions.cpp:67:12: note: '_omcQ_24tmpVar13_' declared here double _omcQ_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFunctions.cpp:127:38: error: use of undeclared identifier '_omcQ_24tmpVar15_'; did you mean '_omcQ_24tmpVar16_'? _omcQ_24tmpVar16_ = std::sin(_omcQ_24tmpVar15_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFunctions.cpp:104:12: note: '_omcQ_24tmpVar16_' declared here double _omcQ_24tmpVar16_; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFMU.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) { ^ 1 warning and 2 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierCalcHelperMain.o] Error 1