Running command: "" <> buildModelFMU(Modelica.Electrical.Polyphase.Examples.Rectifier,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_Rectifier",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.96/1.96, allocations: 225.8 MB / 239.3 MB, free: 11.2 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.56e-05/3.561e-05, allocations: 4 kB / 292.2 MB, free: 8.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.436/0.5568, allocations: 86.93 MB / 429.6 MB, free: 6.879 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002623/0.5572, allocations: 75.58 kB / 429.6 MB, free: 6.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1322/0.6894, allocations: 32.88 MB / 462.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.345e-06/0.6894, allocations: 0 / 462.5 MB, free: 10.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001873/0.6896, allocations: 55.94 kB / 462.6 MB, free: 10.84 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.007451/0.6971, allocations: 1.958 MB / 464.5 MB, free: 8.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.6972, allocations: 12.03 kB / 464.5 MB, free: 8.809 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001053/0.6982, allocations: 303.5 kB / 464.8 MB, free: 8.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008882/0.6991, allocations: 237.2 kB / 465.1 MB, free: 8.266 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003776/0.7029, allocations: 1.216 MB / 466.3 MB, free: 7.004 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002031/0.7032, allocations: 156.2 kB / 466.4 MB, free: 6.848 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007171/0.7039, allocations: 200 kB / 466.6 MB, free: 6.652 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007475/0.7114, allocations: 2.509 MB / 469.1 MB, free: 4 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.108e-05/0.7115, allocations: 3.938 kB / 469.1 MB, free: 3.996 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002992/0.7118, allocations: 88 kB / 469.2 MB, free: 3.91 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-05/0.7119, allocations: 52 kB / 469.3 MB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006239/0.7182, allocations: 1.851 MB / 471.1 MB, free: 2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02109/0.7393, allocations: 7.509 MB / 478.6 MB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003736/0.7431, allocations: 2.305 MB / 480.9 MB, free: 7.777 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002447/0.7456, allocations: 0.8955 MB / 481.8 MB, free: 6.879 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001153/0.7458, allocations: 12.77 kB / 481.8 MB, free: 6.867 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.521e-05/0.7458, allocations: 43.34 kB / 481.9 MB, free: 6.816 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.198e-06/0.7458, allocations: 0 / 481.9 MB, free: 6.816 MB / 394.7 MB Notification: Performance of matching and sorting (n=97): time 0.008026/0.7539, allocations: 2.946 MB / 484.8 MB, free: 3.797 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.754, allocations: 60.19 kB / 484.9 MB, free: 3.727 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.7563, allocations: 0.7541 MB / 485.6 MB, free: 2.965 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002607/0.7566, allocations: 41.7 kB / 485.7 MB, free: 2.918 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009196/0.7575, allocations: 0.8397 MB / 486.5 MB, free: 2.066 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005968/0.7581, allocations: 327.2 kB / 486.8 MB, free: 1.742 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.7583, allocations: 16 kB / 486.9 MB, free: 1.727 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002205/0.7585, allocations: 350.8 kB / 487.2 MB, free: 1.375 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0017/0.7602, allocations: 485.8 kB / 487.7 MB, free: 0.8984 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001883/0.7621, allocations: 0.6509 MB / 488.3 MB, free: 188 kB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00197/0.7642, allocations: 0.5514 MB / 488.9 MB, free: 15.63 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.459e-05/0.7642, allocations: 3.953 kB / 488.9 MB, free: 15.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.00601/0.7702, allocations: 1.516 MB / 490.4 MB, free: 14.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.736e-05/0.7703, allocations: 15.89 kB / 490.4 MB, free: 14.08 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.635e-05/0.7704, allocations: 4 kB / 490.4 MB, free: 14.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002611/0.773, allocations: 467 kB / 490.9 MB, free: 13.61 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.7751, allocations: 175.8 kB / 491 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04196/0.8171, allocations: 8.44 MB / 499.5 MB, free: 4.461 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.8187, allocations: 52.14 kB / 499.5 MB, free: 4.41 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001814/0.8189, allocations: 43.98 kB / 499.6 MB, free: 4.367 MB / 410.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.0004145/0.8194, allocations: 160.8 kB / 499.7 MB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004415/0.8198, allocations: 102.8 kB / 499.8 MB, free: 4.102 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01319/0.833, allocations: 1.486 MB / 0.4896 GB, free: 2.586 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.761e-05/0.8331, allocations: 16 kB / 0.4896 GB, free: 2.57 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.8331, allocations: 0 / 0.4896 GB, free: 2.57 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.342e-05/0.8332, allocations: 7.938 kB / 0.4896 GB, free: 2.562 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01476/0.8479, allocations: 3.466 MB / 0.493 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.075e-05/0.848, allocations: 4.062 kB / 0.493 GB, free: 15.01 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002026/0.8501, allocations: 127.8 kB / 0.4931 GB, free: 14.88 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001859/0.852, allocations: 443 kB / 0.4935 GB, free: 14.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/0.8522, allocations: 23.98 kB / 0.4936 GB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01267/0.8649, allocations: 8.361 MB / 0.5017 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.8649, allocations: 0 / 0.5017 GB, free: 5.516 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005509/0.8704, allocations: 2.273 MB / 0.5039 GB, free: 3.195 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008445/0.8713, allocations: 279.8 kB / 0.5042 GB, free: 2.902 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002109/0.8716, allocations: 23.98 kB / 0.5042 GB, free: 2.879 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008695/0.8724, allocations: 44.08 kB / 0.5043 GB, free: 2.836 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003238/0.8728, allocations: 88.66 kB / 0.5044 GB, free: 2.746 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.929e-05/0.8729, allocations: 24 kB / 0.5044 GB, free: 2.723 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001332/0.8742, allocations: 0.6005 MB / 0.505 GB, free: 2.129 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.458e-06/0.8743, allocations: 0 / 0.505 GB, free: 2.129 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002365/0.8766, allocations: 399.9 kB / 0.5053 GB, free: 1.738 MB / 426.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.006222/0.8829, allocations: 3.025 MB / 0.5083 GB, free: 14.66 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004137/0.8871, allocations: 1.78 MB / 0.51 GB, free: 12.83 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.563e-06/0.8871, allocations: 1.781 kB / 0.51 GB, free: 12.83 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002652/0.8898, allocations: 1.227 MB / 0.5112 GB, free: 11.55 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.8921, allocations: 271.1 kB / 0.5115 GB, free: 11.28 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01014/0.9023, allocations: 3.378 MB / 0.5148 GB, free: 7.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001991/0.9044, allocations: 1.726 MB / 0.5165 GB, free: 6.078 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001306/0.9057, allocations: 0.6243 MB / 0.5171 GB, free: 5.453 MB / 442.7 MB Notification: Performance of SimCode: time 1.784e-06/0.9057, allocations: 0 / 0.5171 GB, free: 5.453 MB / 442.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/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_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierFunctions.cpp:90:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierFunctions.cpp:67:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierFunctions.cpp:127:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierFunctions.cpp:104:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierFMU.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_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Polyphase_Examples_RectifierCalcHelperMain.o] Error 1