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 2.053/2.053, allocations: 194.9 MB / 208.4 MB, free: 3.164 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.902e-05/3.908e-05, allocations: 4 kB / 255.5 MB, free: 3.094 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1093, allocations: 44.5 MB / 300 MB, free: 6.516 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4596/0.569, allocations: 87.78 MB / 387.7 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002939/0.5693, allocations: 87.98 kB / 387.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2942/0.8636, allocations: 74.89 MB / 462.7 MB, free: 3.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.8636, allocations: 0 / 462.7 MB, free: 3.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003948/0.864, allocations: 95.81 kB / 462.8 MB, free: 3.656 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.01205/0.8761, allocations: 2.868 MB / 465.7 MB, free: 0.7344 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/0.8762, allocations: 15.97 kB / 465.7 MB, free: 0.7188 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00197/0.8782, allocations: 421.7 kB / 466.1 MB, free: 304 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002729/0.8809, allocations: 396 kB / 466.5 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008013/0.889, allocations: 2.167 MB / 468.7 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003541/0.8894, allocations: 225.7 kB / 468.9 MB, free: 13.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001357/0.8907, allocations: 280 kB / 469.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/0.9043, allocations: 4.036 MB / 473.2 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.813e-05/0.9045, allocations: 3.984 kB / 473.2 MB, free: 9.027 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000658/0.9051, allocations: 120 kB / 473.3 MB, free: 8.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00022/0.9054, allocations: 141.8 kB / 473.4 MB, free: 8.77 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0111/0.9165, allocations: 3.085 MB / 476.5 MB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03536/0.9519, allocations: 11.01 MB / 487.5 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005549/0.9575, allocations: 2.561 MB / 490.1 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004583/0.9622, allocations: 1.46 MB / 491.6 MB, free: 6.352 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005623/0.9628, allocations: 142 kB / 491.7 MB, free: 6.191 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.462e-05/0.9628, allocations: 43.56 kB / 491.7 MB, free: 6.141 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 3.907e-06/0.9629, allocations: 3.938 kB / 491.7 MB, free: 6.137 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.01599/0.9789, allocations: 4.378 MB / 496.1 MB, free: 1.699 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.998e-05/0.979, allocations: 90.42 kB / 496.2 MB, free: 1.594 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005274/0.9843, allocations: 1.702 MB / 497.9 MB, free: 15.89 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003914/0.9847, allocations: 45.7 kB / 498 MB, free: 15.84 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001457/0.9862, allocations: 1.256 MB / 499.2 MB, free: 14.57 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008477/0.9871, allocations: 464.6 kB / 499.7 MB, free: 14.12 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001732/0.9873, allocations: 28 kB / 499.7 MB, free: 14.1 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002387/0.9875, allocations: 370.8 kB / 0.4883 GB, free: 13.73 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002345/0.9899, allocations: 0.7809 MB / 0.4891 GB, free: 12.95 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002678/0.9926, allocations: 1.115 MB / 0.4902 GB, free: 11.69 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003104/0.9957, allocations: 0.9886 MB / 0.4912 GB, free: 10.7 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.906e-05/0.9958, allocations: 7.938 kB / 0.4912 GB, free: 10.7 MB / 394.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.006672/1.002, allocations: 2.29 MB / 0.4934 GB, free: 8.395 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.167e-05/1.003, allocations: 13.56 kB / 0.4934 GB, free: 8.383 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.985e-05/1.003, allocations: 12 kB / 0.4934 GB, free: 8.371 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001664/1.004, allocations: 359.3 kB / 0.4938 GB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00295/1.007, allocations: 335.5 kB / 0.4941 GB, free: 7.691 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008688/1.016, allocations: 4.047 MB / 0.498 GB, free: 3.508 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002624/1.019, allocations: 91.98 kB / 0.4981 GB, free: 3.418 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003954/1.019, allocations: 63.98 kB / 0.4982 GB, free: 3.355 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.0004735/1.02, allocations: 187.5 kB / 0.4984 GB, free: 3.168 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007775/1.02, allocations: 189.7 kB / 0.4985 GB, free: 2.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006258/1.027, allocations: 2.114 MB / 0.5006 GB, free: 0.8516 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.078e-05/1.027, allocations: 19.89 kB / 0.5006 GB, free: 0.832 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.086e-05/1.027, allocations: 4 kB / 0.5006 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.201e-05/1.027, allocations: 11.97 kB / 0.5006 GB, free: 0.8164 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0159/1.043, allocations: 5.154 MB / 0.5057 GB, free: 11.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.315e-05/1.043, allocations: 8 kB / 0.5057 GB, free: 11.59 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002013/1.045, allocations: 227.7 kB / 0.5059 GB, free: 11.37 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/1.047, allocations: 337.3 kB / 0.5062 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002806/1.047, allocations: 35.98 kB / 0.5063 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008218/1.055, allocations: 3.958 MB / 0.5101 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/1.055, allocations: 0 / 0.5101 GB, free: 6.91 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00872/1.064, allocations: 3.277 MB / 0.5133 GB, free: 3.547 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001803/1.066, allocations: 466.7 kB / 0.5138 GB, free: 3.07 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004755/1.066, allocations: 39.94 kB / 0.5138 GB, free: 3.031 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001954/1.068, allocations: 99.97 kB / 0.5139 GB, free: 2.934 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003441/1.069, allocations: 96.8 kB / 0.514 GB, free: 2.84 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001632/1.069, allocations: 39.98 kB / 0.514 GB, free: 2.801 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003291/1.072, allocations: 1.315 MB / 0.5153 GB, free: 1.492 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.91e-07/1.072, allocations: 0 / 0.5153 GB, free: 1.492 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003152/1.075, allocations: 0.5741 MB / 0.5159 GB, free: 0.918 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.3146/1.39, allocations: 4.405 MB / 0.5202 GB, free: 89.15 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006157/1.396, allocations: 2.2 MB / 0.5223 GB, free: 88.89 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.526e-06/1.396, allocations: 1.406 kB / 0.5223 GB, free: 88.89 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003449/1.4, allocations: 1.264 MB / 0.5236 GB, free: 88.63 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004874/1.404, allocations: 487.6 kB / 0.524 GB, free: 88.62 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01889/1.423, allocations: 5.473 MB / 0.5294 GB, free: 87.57 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005038/1.428, allocations: 2.423 MB / 0.5317 GB, free: 86.84 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003754/1.432, allocations: 1.068 MB / 0.5328 GB, free: 86.83 MB / 410.7 MB Notification: Performance of SimCode: time 1.503e-06/1.432, allocations: 3.281 kB / 0.5328 GB, free: 86.83 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:49: error: use of undeclared identifier '_omcQuot_24746D705661723130_'; did you mean '_omcQuot_24746D705661723131_'? _omcQuot_24746D705661723131_ = std::cos(_omcQuot_24746D705661723130_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723131_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:111:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:171:49: error: use of undeclared identifier '_omcQuot_24746D705661723133_'; did you mean '_omcQuot_24746D705661723134_'? _omcQuot_24746D705661723134_ = std::sin(_omcQuot_24746D705661723133_); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ _omcQuot_24746D705661723134_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:148:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ 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