Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.896/1.896, allocations: 194.9 MB / 208.4 MB, free: 3.176 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.752e-05/2.762e-05, allocations: 4 kB / 255.4 MB, free: 3.098 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09317/0.09323, allocations: 44.51 MB / 299.9 MB, free: 6.535 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.47/0.5632, allocations: 87.77 MB / 387.7 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003582/0.5636, allocations: 85.41 kB / 387.8 MB, free: 12.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3094/0.8731, allocations: 74.91 MB / 462.7 MB, free: 3.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.8731, allocations: 0 / 462.7 MB, free: 3.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003857/0.8735, allocations: 87.81 kB / 462.8 MB, free: 3.684 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.01149/0.885, allocations: 2.868 MB / 465.7 MB, free: 0.7617 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.237e-05/0.8851, allocations: 11.97 kB / 465.7 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001725/0.8868, allocations: 425.7 kB / 466.1 MB, free: 332 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0024/0.8892, allocations: 400 kB / 466.5 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008203/0.8975, allocations: 2.164 MB / 468.6 MB, free: 13.74 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003682/0.8979, allocations: 225.8 kB / 468.9 MB, free: 13.52 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001355/0.8993, allocations: 283.5 kB / 469.1 MB, free: 13.24 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01456/0.9138, allocations: 4.059 MB / 473.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001246/0.914, allocations: 0 / 473.2 MB, free: 9.023 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001239/0.9153, allocations: 131.5 kB / 473.3 MB, free: 8.898 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/0.9156, allocations: 137.8 kB / 473.5 MB, free: 8.762 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01149/0.9271, allocations: 3.124 MB / 476.6 MB, free: 5.629 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03515/0.9623, allocations: 11 MB / 487.6 MB, free: 10.53 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005302/0.9677, allocations: 2.584 MB / 490.2 MB, free: 7.734 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004584/0.9723, allocations: 1.452 MB / 491.6 MB, free: 6.285 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005831/0.973, allocations: 149.8 kB / 491.8 MB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.544e-05/0.973, allocations: 47.56 kB / 491.8 MB, free: 6.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 4.068e-06/0.9731, allocations: 4 kB / 491.8 MB, free: 6.066 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.01549/0.9886, allocations: 4.374 MB / 496.2 MB, free: 1.633 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.289e-05/0.9887, allocations: 94.36 kB / 496.3 MB, free: 1.523 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00449/0.9932, allocations: 1.691 MB / 498 MB, free: 15.83 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003631/0.9936, allocations: 49.7 kB / 498 MB, free: 15.78 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.9949, allocations: 1.263 MB / 499.3 MB, free: 14.5 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007442/0.9957, allocations: 456.3 kB / 499.7 MB, free: 14.06 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/0.9958, allocations: 32 kB / 499.8 MB, free: 14.03 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002228/0.9961, allocations: 366.8 kB / 0.4884 GB, free: 13.66 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002051/0.9981, allocations: 0.7809 MB / 0.4892 GB, free: 12.88 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002375/1.001, allocations: 1.126 MB / 0.4903 GB, free: 11.61 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002443/1.003, allocations: 0.9808 MB / 0.4912 GB, free: 10.64 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.263e-05/1.003, allocations: 4 kB / 0.4912 GB, free: 10.63 MB / 394.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.007024/1.01, allocations: 2.321 MB / 0.4935 GB, free: 8.301 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/1.01, allocations: 9.562 kB / 0.4935 GB, free: 8.293 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.424e-05/1.01, allocations: 15.98 kB / 0.4935 GB, free: 8.277 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001687/1.012, allocations: 367.3 kB / 0.4939 GB, free: 7.918 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002871/1.015, allocations: 335.5 kB / 0.4942 GB, free: 7.59 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00955/1.024, allocations: 4.037 MB / 0.4981 GB, free: 3.418 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00351/1.028, allocations: 95.89 kB / 0.4982 GB, free: 3.324 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003591/1.028, allocations: 63.98 kB / 0.4983 GB, free: 3.262 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 152 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006152/1.029, allocations: 187.5 kB / 0.4985 GB, free: 3.074 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001046/1.03, allocations: 193.6 kB / 0.4986 GB, free: 2.883 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008969/1.039, allocations: 2.11 MB / 0.5007 GB, free: 0.7578 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.289e-05/1.039, allocations: 12 kB / 0.5007 GB, free: 0.7461 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.707e-05/1.039, allocations: 8 kB / 0.5007 GB, free: 0.7383 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.922e-05/1.039, allocations: 11.95 kB / 0.5007 GB, free: 0.7266 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0215/1.061, allocations: 5.163 MB / 0.5058 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.252e-05/1.061, allocations: 4 kB / 0.5058 GB, free: 11.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002841/1.064, allocations: 235.6 kB / 0.506 GB, free: 11.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002357/1.066, allocations: 341.3 kB / 0.5063 GB, free: 10.93 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002297/1.066, allocations: 35.98 kB / 0.5064 GB, free: 10.89 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01274/1.079, allocations: 3.95 MB / 0.5102 GB, free: 6.816 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.03e-05/1.079, allocations: 4.031 kB / 0.5102 GB, free: 6.812 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01232/1.092, allocations: 3.277 MB / 0.5134 GB, free: 3.449 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002391/1.094, allocations: 474.6 kB / 0.5139 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006265/1.095, allocations: 31.98 kB / 0.5139 GB, free: 2.934 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002831/1.097, allocations: 99.97 kB / 0.514 GB, free: 2.836 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005525/1.098, allocations: 96.8 kB / 0.5141 GB, free: 2.742 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002451/1.098, allocations: 47.98 kB / 0.5141 GB, free: 2.695 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.004952/1.103, allocations: 1.311 MB / 0.5154 GB, free: 1.391 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.262e-06/1.103, allocations: 0 / 0.5154 GB, free: 1.391 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004907/1.108, allocations: 0.5741 MB / 0.516 GB, free: 0.8164 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.3431/1.451, allocations: 4.406 MB / 0.5203 GB, free: 89.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0059/1.457, allocations: 2.231 MB / 0.5225 GB, free: 88.93 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.015e-05/1.457, allocations: 1.531 kB / 0.5225 GB, free: 88.93 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003524/1.461, allocations: 1.29 MB / 0.5237 GB, free: 88.67 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004132/1.465, allocations: 486.4 kB / 0.5242 GB, free: 88.66 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01749/1.483, allocations: 5.482 MB / 0.5295 GB, free: 87.61 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003171/1.486, allocations: 2.419 MB / 0.5319 GB, free: 86.88 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002339/1.488, allocations: 1.067 MB / 0.5329 GB, free: 86.87 MB / 410.7 MB Notification: Performance of SimCode: time 1.412e-06/1.488, allocations: 3.844 kB / 0.5329 GB, free: 86.87 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/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_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.o OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp:28: ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:134:34: error: use of undeclared identifier 'D_24tmpVar10_'; did you mean 'D_24tmpVar11_'? D_24tmpVar11_ = std::cos(D_24tmpVar10_); ^~~~~~~~~~~~~ D_24tmpVar11_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:111:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:171:34: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? D_24tmpVar14_ = std::sin(D_24tmpVar13_); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:148:12: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ In file included from OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFMU.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_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.o] Error 1