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.002439/0.002439, allocations: 181.6 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.133/2.133, allocations: 205.2 MB / 219.4 MB, free: 14.29 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.001102/0.001101, allocations: 94.62 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.367e-05/3.404e-05, allocations: 7.984 kB / 321.6 MB, free: 17.77 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09748/0.09754, allocations: 47.56 MB / 369.2 MB, free: 2.133 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4156/0.5132, allocations: 85.24 MB / 454.4 MB, free: 7.66 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.5136, allocations: 67.47 kB / 454.5 MB, free: 7.629 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1378/0.6514, allocations: 32.14 MB / 486.6 MB, free: 9.422 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.806e-06/0.6515, allocations: 3.938 kB / 486.6 MB, free: 9.418 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002071/0.6517, allocations: 55.94 kB / 486.7 MB, free: 9.363 MB / 362.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.007492/0.6593, allocations: 1.951 MB / 488.6 MB, free: 7.352 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.594e-05/0.6593, allocations: 8.031 kB / 488.6 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001161/0.6605, allocations: 299.5 kB / 488.9 MB, free: 7.039 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009663/0.6615, allocations: 233.3 kB / 489.2 MB, free: 6.809 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003991/0.6655, allocations: 1.22 MB / 490.4 MB, free: 5.543 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002125/0.6658, allocations: 160.1 kB / 490.5 MB, free: 5.383 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006756/0.6665, allocations: 196 kB / 490.7 MB, free: 5.191 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007843/0.6743, allocations: 2.548 MB / 493.3 MB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.219e-05/0.6744, allocations: 0 / 493.3 MB, free: 2.492 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003574/0.6748, allocations: 87.98 kB / 493.4 MB, free: 2.406 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.372e-05/0.6749, allocations: 52 kB / 493.4 MB, free: 2.355 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006555/0.6815, allocations: 1.875 MB / 495.3 MB, free: 476 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02217/0.7037, allocations: 7.517 MB / 0.491 GB, free: 8.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004048/0.7078, allocations: 2.322 MB / 0.4933 GB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002513/0.7104, allocations: 0.9035 MB / 0.4942 GB, free: 5.297 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001409/0.7106, allocations: 20.7 kB / 0.4942 GB, free: 5.277 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.472e-05/0.7106, allocations: 39.34 kB / 0.4942 GB, free: 5.23 MB / 378.7 MB Notification: Performance of pre-optimization done (n=96): time 4.378e-06/0.7106, allocations: 0 / 0.4942 GB, free: 5.23 MB / 378.7 MB Notification: Performance of matching and sorting (n=97): time 0.008466/0.7191, allocations: 2.954 MB / 0.4971 GB, free: 2.199 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.149e-05/0.7192, allocations: 64.19 kB / 0.4972 GB, free: 2.125 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.7211, allocations: 0.7541 MB / 0.4979 GB, free: 1.363 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002392/0.7214, allocations: 37.7 kB / 0.4979 GB, free: 1.32 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007664/0.7222, allocations: 0.8358 MB / 0.4988 GB, free: 484 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005196/0.7227, allocations: 323.3 kB / 0.4991 GB, free: 156 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.547e-05/0.7228, allocations: 24 kB / 0.4991 GB, free: 132 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002155/0.723, allocations: 346.8 kB / 0.4994 GB, free: 15.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001302/0.7243, allocations: 481.8 kB / 0.4999 GB, free: 15.31 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.7258, allocations: 0.6544 MB / 0.5005 GB, free: 14.59 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.7273, allocations: 0.5553 MB / 0.5011 GB, free: 14.04 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.018e-05/0.7274, allocations: 3.984 kB / 0.5011 GB, free: 14.03 MB / 394.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.004198/0.7316, allocations: 1.539 MB / 0.5026 GB, free: 12.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.012e-05/0.7317, allocations: 4 kB / 0.5026 GB, free: 12.47 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.809e-05/0.7317, allocations: 8 kB / 0.5026 GB, free: 12.46 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001842/0.7336, allocations: 463 kB / 0.503 GB, free: 12 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001417/0.735, allocations: 175.7 kB / 0.5032 GB, free: 11.82 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01379/0.7488, allocations: 8.443 MB / 0.5114 GB, free: 2.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001162/0.75, allocations: 47.97 kB / 0.5115 GB, free: 2.793 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001478/0.7502, allocations: 39.98 kB / 0.5115 GB, free: 2.754 MB / 394.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 () * 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.000334/0.7506, allocations: 161.7 kB / 0.5117 GB, free: 2.59 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003579/0.7509, allocations: 102.8 kB / 0.5118 GB, free: 2.488 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00408/0.755, allocations: 1.49 MB / 0.5132 GB, free: 0.9727 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-05/0.7551, allocations: 19.95 kB / 0.5132 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.7551, allocations: 0 / 0.5132 GB, free: 0.9531 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.762e-05/0.7552, allocations: 3.984 kB / 0.5133 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01028/0.7655, allocations: 3.497 MB / 0.5167 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.436e-05/0.7655, allocations: 0 / 0.5167 GB, free: 13.37 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/0.7667, allocations: 127.8 kB / 0.5168 GB, free: 13.24 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001803/0.7685, allocations: 443.1 kB / 0.5172 GB, free: 12.8 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/0.7687, allocations: 27.98 kB / 0.5172 GB, free: 12.77 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01355/0.7823, allocations: 8.358 MB / 0.5254 GB, free: 3.879 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.15e-06/0.7823, allocations: 7.969 kB / 0.5254 GB, free: 3.871 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005915/0.7883, allocations: 2.269 MB / 0.5276 GB, free: 1.555 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009786/0.7893, allocations: 287.8 kB / 0.5279 GB, free: 1.254 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002456/0.7896, allocations: 27.94 kB / 0.5279 GB, free: 1.227 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009161/0.7905, allocations: 39.97 kB / 0.528 GB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003637/0.7909, allocations: 92.58 kB / 0.5281 GB, free: 1.094 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001006/0.791, allocations: 23.94 kB / 0.5281 GB, free: 1.07 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001361/0.7924, allocations: 0.5928 MB / 0.5287 GB, free: 496 kB / 410.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.7924, allocations: 0 / 0.5287 GB, free: 496 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.002387/0.7948, allocations: 403.9 kB / 0.529 GB, free: 92 kB / 410.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 () * 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.2851/1.08, allocations: 3.009 MB / 0.532 GB, free: 111.6 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004601/1.085, allocations: 1.823 MB / 0.5338 GB, free: 111 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.937e-06/1.085, allocations: 0 / 0.5338 GB, free: 111 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002937/1.088, allocations: 1.264 MB / 0.535 GB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/1.09, allocations: 271.5 kB / 0.5352 GB, free: 110.5 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01139/1.101, allocations: 3.378 MB / 0.5385 GB, free: 109.8 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0027/1.104, allocations: 1.723 MB / 0.5402 GB, free: 109.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00139/1.106, allocations: 0.628 MB / 0.5408 GB, free: 109.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.844e-06/1.106, allocations: 0 / 0.5408 GB, free: 109.1 MB / 410.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:34: error: use of undeclared identifier 'D_24tmpVar12_'; did you mean 'D_24tmpVar13_'? D_24tmpVar13_ = std::cos(D_24tmpVar12_); ^~~~~~~~~~~~~ D_24tmpVar13_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFunctions.cpp:67:12: note: 'D_24tmpVar13_' declared here double D_24tmpVar13_; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFunctions.cpp:127:34: error: use of undeclared identifier 'D_24tmpVar15_'; did you mean 'D_24tmpVar16_'? D_24tmpVar16_ = std::sin(D_24tmpVar15_); ^~~~~~~~~~~~~ D_24tmpVar16_ ./OMCppModelica_3_2_3_cpp_Modelica_Electrical_MultiPhase_Examples_RectifierFunctions.cpp:104:12: note: 'D_24tmpVar16_' declared here double D_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