Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.996/1.996, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.312e-05/4.316e-05, allocations: 4 kB / 292.2 MB, free: 8.715 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1457/0.1458, allocations: 50.41 MB / 342.6 MB, free: 6.289 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4781/0.6239, allocations: 92.93 MB / 435.6 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003037/0.6243, allocations: 86.39 kB / 435.6 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3078/0.9321, allocations: 74.67 MB / 0.4984 GB, free: 10.76 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.9322, allocations: 0 / 0.4984 GB, free: 10.76 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003318/0.9325, allocations: 91.88 kB / 0.4985 GB, free: 10.67 MB / 426.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.01102/0.9436, allocations: 2.904 MB / 0.5013 GB, free: 7.707 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.9436, allocations: 12.03 kB / 0.5013 GB, free: 7.695 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001471/0.9451, allocations: 425.7 kB / 0.5017 GB, free: 7.27 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001777/0.9469, allocations: 399.7 kB / 0.5021 GB, free: 6.875 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007351/0.9543, allocations: 2.158 MB / 0.5042 GB, free: 4.66 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000364/0.9547, allocations: 229.8 kB / 0.5044 GB, free: 4.434 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001299/0.956, allocations: 280 kB / 0.5047 GB, free: 4.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01357/0.9696, allocations: 4.014 MB / 0.5086 GB, free: 15.99 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.352e-05/0.9698, allocations: 0 / 0.5086 GB, free: 15.99 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006726/0.9705, allocations: 136 kB / 0.5087 GB, free: 15.86 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000226/0.9707, allocations: 133.9 kB / 0.5089 GB, free: 15.72 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.9815, allocations: 3.054 MB / 0.5118 GB, free: 12.66 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03287/1.014, allocations: 11.02 MB / 0.5226 GB, free: 1.449 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.308/1.322, allocations: 2.571 MB / 0.5251 GB, free: 95.82 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01429/1.337, allocations: 1.446 MB / 0.5265 GB, free: 95.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006484/1.338, allocations: 139.4 kB / 0.5267 GB, free: 95.71 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.334e-05/1.338, allocations: 48.17 kB / 0.5267 GB, free: 95.67 MB / 442.7 MB Notification: Performance of pre-optimization done (n=128): time 6.943e-06/1.338, allocations: 2.719 kB / 0.5267 GB, free: 95.67 MB / 442.7 MB Notification: Performance of matching and sorting (n=133): time 0.01785/1.356, allocations: 4.367 MB / 0.531 GB, free: 95.08 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.334e-05/1.356, allocations: 94.3 kB / 0.5311 GB, free: 94.99 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004803/1.36, allocations: 1.699 MB / 0.5327 GB, free: 94.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003535/1.361, allocations: 51.44 kB / 0.5328 GB, free: 94.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001199/1.362, allocations: 1.251 MB / 0.534 GB, free: 94.29 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006985/1.363, allocations: 456.4 kB / 0.5344 GB, free: 94.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001634/1.363, allocations: 29.75 kB / 0.5345 GB, free: 94.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001415/1.363, allocations: 378.7 kB / 0.5348 GB, free: 93.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002002/1.365, allocations: 0.7741 MB / 0.5356 GB, free: 93.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002482/1.368, allocations: 1.116 MB / 0.5367 GB, free: 93.37 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002638/1.37, allocations: 0.9853 MB / 0.5376 GB, free: 93.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.502e-05/1.37, allocations: 3.562 kB / 0.5376 GB, free: 93.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.006708/1.377, allocations: 2.293 MB / 0.5399 GB, free: 93.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.693e-05/1.377, allocations: 9.406 kB / 0.5399 GB, free: 93.25 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-05/1.377, allocations: 12.78 kB / 0.5399 GB, free: 93.25 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001619/1.379, allocations: 361.9 kB / 0.5402 GB, free: 93.24 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002838/1.382, allocations: 331.1 kB / 0.5405 GB, free: 93.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007792/1.39, allocations: 4.038 MB / 0.5445 GB, free: 91.84 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002596/1.392, allocations: 87.89 kB / 0.5446 GB, free: 91.84 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004058/1.393, allocations: 65.48 kB / 0.5446 GB, free: 91.84 MB / 442.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.0004482/1.393, allocations: 186.6 kB / 0.5448 GB, free: 91.73 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008127/1.394, allocations: 193.2 kB / 0.545 GB, free: 91.64 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005293/1.399, allocations: 2.109 MB / 0.5471 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.036e-05/1.399, allocations: 19.47 kB / 0.5471 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.376e-06/1.399, allocations: 3.906 kB / 0.5471 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.502e-05/1.399, allocations: 8.203 kB / 0.5471 GB, free: 91.52 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01359/1.413, allocations: 5.155 MB / 0.5521 GB, free: 91.04 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.433e-05/1.413, allocations: 3.688 kB / 0.5521 GB, free: 91.04 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002027/1.415, allocations: 233.5 kB / 0.5524 GB, free: 91.04 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001545/1.417, allocations: 338 kB / 0.5527 GB, free: 91.03 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003188/1.417, allocations: 36.5 kB / 0.5527 GB, free: 91.03 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006848/1.424, allocations: 3.96 MB / 0.5566 GB, free: 89.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.671e-06/1.424, allocations: 6.969 kB / 0.5566 GB, free: 89.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007249/1.431, allocations: 3.269 MB / 0.5598 GB, free: 89.15 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001642/1.433, allocations: 466.4 kB / 0.5602 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006712/1.434, allocations: 33.16 kB / 0.5603 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002298/1.436, allocations: 101.6 kB / 0.5603 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003929/1.436, allocations: 99.95 kB / 0.5604 GB, free: 88.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000151/1.437, allocations: 40.05 kB / 0.5605 GB, free: 88.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002898/1.44, allocations: 1.315 MB / 0.5618 GB, free: 88.61 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.52e-07/1.44, allocations: 0 / 0.5618 GB, free: 88.61 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003224/1.443, allocations: 0.5696 MB / 0.5623 GB, free: 88.57 MB / 442.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.007938/1.451, allocations: 4.411 MB / 0.5666 GB, free: 86.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005197/1.456, allocations: 2.206 MB / 0.5688 GB, free: 85.19 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.456, allocations: 0 / 0.5688 GB, free: 85.19 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003036/1.459, allocations: 1.268 MB / 0.57 GB, free: 84.59 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004071/1.463, allocations: 492.1 kB / 0.5705 GB, free: 84.46 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01603/1.479, allocations: 5.47 MB / 0.5758 GB, free: 82.43 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003034/1.482, allocations: 2.42 MB / 0.5782 GB, free: 81.38 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00276/1.485, allocations: 1.066 MB / 0.5792 GB, free: 80.5 MB / 442.7 MB Notification: Performance of SimCode: time 1.893e-06/1.485, allocations: 0 / 0.5792 GB, free: 80.5 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_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp:28: ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:111:12: note: '_omcQuot_24746D705661723131_' declared here double _omcQuot_24746D705661723131_; ^ ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:148:12: note: '_omcQuot_24746D705661723134_' declared here double _omcQuot_24746D705661723134_; ^ In file included from OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_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_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchCalcHelperMain.o] Error 1