Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) 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.918/1.918, allocations: 194.9 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000341/0.0003412, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09818/0.09856, allocations: 44.5 MB / 308.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4417/0.5403, allocations: 87.87 MB / 396.4 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003092/0.5407, allocations: 93.78 kB / 396.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3054/0.8461, allocations: 74.67 MB / 471.2 MB, free: 48 kB / 346.7 MB Notification: Performance of FrontEnd: time 3.036e-06/0.8462, allocations: 0 / 471.2 MB, free: 48 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0004276/0.8466, allocations: 91.86 kB / 471.3 MB, free: 15.95 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: 772 * Number of variables: 772 Notification: Performance of Generate backend data structure: time 0.01433/0.861, allocations: 3.205 MB / 474.5 MB, free: 12.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.861, allocations: 8.031 kB / 474.5 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002112/0.8632, allocations: 437.6 kB / 474.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00228/0.8655, allocations: 396.1 kB / 475.3 MB, free: 11.86 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009062/0.8746, allocations: 2.192 MB / 477.5 MB, free: 9.641 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003904/0.8751, allocations: 221.5 kB / 477.7 MB, free: 9.426 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001378/0.8765, allocations: 280 kB / 478 MB, free: 9.152 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01891/0.8954, allocations: 4.133 MB / 482.1 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001453/0.8956, allocations: 0 / 482.1 MB, free: 4.859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00132/0.897, allocations: 123.8 kB / 482.2 MB, free: 4.742 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003242/0.8973, allocations: 141.9 kB / 482.4 MB, free: 4.602 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01565/0.913, allocations: 3.217 MB / 485.6 MB, free: 1.375 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04291/0.956, allocations: 11.01 MB / 496.6 MB, free: 6.273 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006621/0.9626, allocations: 2.637 MB / 499.2 MB, free: 3.426 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000594/0.9633, allocations: 142.1 kB / 499.4 MB, free: 3.27 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.849e-05/0.9634, allocations: 55.48 kB / 499.4 MB, free: 3.207 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 6.011e-06/0.9634, allocations: 0 / 499.4 MB, free: 3.207 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.0187/0.9821, allocations: 5.659 MB / 0.4932 GB, free: 13.41 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.52e-05/0.9822, allocations: 90.42 kB / 0.4933 GB, free: 13.3 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004356/0.9866, allocations: 1.706 MB / 0.495 GB, free: 11.59 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003747/0.987, allocations: 45.7 kB / 0.495 GB, free: 11.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001306/0.9883, allocations: 1.263 MB / 0.4963 GB, free: 10.27 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007672/0.9891, allocations: 455.9 kB / 0.4967 GB, free: 9.824 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.9893, allocations: 28 kB / 0.4967 GB, free: 9.797 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002481/0.9896, allocations: 374.8 kB / 0.4971 GB, free: 9.422 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002327/0.9919, allocations: 0.8198 MB / 0.4979 GB, free: 8.602 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002657/0.9946, allocations: 1.177 MB / 0.499 GB, free: 7.285 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.9975, allocations: 1.017 MB / 0.5 GB, free: 6.27 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.712e-05/0.9976, allocations: 4 kB / 0.5 GB, free: 6.266 MB / 394.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.007073/1.005, allocations: 2.43 MB / 0.5024 GB, free: 3.824 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.555e-05/1.005, allocations: 12 kB / 0.5024 GB, free: 3.812 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-05/1.005, allocations: 12 kB / 0.5024 GB, free: 3.801 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001667/1.007, allocations: 376.7 kB / 0.5028 GB, free: 3.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002624/1.009, allocations: 323.5 kB / 0.5031 GB, free: 3.113 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009128/1.018, allocations: 4.361 MB / 0.5074 GB, free: 14.62 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/1.021, allocations: 91.83 kB / 0.5074 GB, free: 14.53 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003802/1.021, allocations: 67.92 kB / 0.5075 GB, free: 14.46 MB / 410.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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (153): * Single equations (assignments): 148 * 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%) 29} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00313/1.024, allocations: 1.048 MB / 0.5085 GB, free: 13.4 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009015/1.025, allocations: 185.8 kB / 0.5087 GB, free: 13.22 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0065/1.032, allocations: 2.203 MB / 0.5109 GB, free: 11 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/1.032, allocations: 15.94 kB / 0.5109 GB, free: 10.98 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/1.032, allocations: 11.95 kB / 0.5109 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.318e-05/1.032, allocations: 3.984 kB / 0.5109 GB, free: 10.97 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01513/1.047, allocations: 5.182 MB / 0.516 GB, free: 5.734 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.369e-05/1.047, allocations: 4 kB / 0.516 GB, free: 5.73 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001905/1.049, allocations: 219.8 kB / 0.5162 GB, free: 5.516 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/1.051, allocations: 360.8 kB / 0.5165 GB, free: 5.16 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002516/1.051, allocations: 39.98 kB / 0.5166 GB, free: 5.121 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008842/1.06, allocations: 4.275 MB / 0.5207 GB, free: 0.7227 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.06, allocations: 7.922 kB / 0.5207 GB, free: 0.7148 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2997/1.36, allocations: 3.304 MB / 0.524 GB, free: 88.75 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001633/1.361, allocations: 465.5 kB / 0.5244 GB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006888/1.362, allocations: 30.08 kB / 0.5244 GB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002346/1.364, allocations: 102.5 kB / 0.5245 GB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004434/1.365, allocations: 89.56 kB / 0.5246 GB, free: 88.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/1.365, allocations: 43.19 kB / 0.5247 GB, free: 88.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003494/1.369, allocations: 1.33 MB / 0.526 GB, free: 88.55 MB / 410.7 MB Notification: Performance of sort global known variables: time 6.81e-07/1.369, allocations: 0 / 0.526 GB, free: 88.55 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003258/1.372, allocations: 0.5649 MB / 0.5265 GB, free: 88.55 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (98): * Single equations (assignments): 93 * 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%) 29} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009557/1.382, allocations: 4.115 MB / 0.5305 GB, free: 87.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.006118/1.388, allocations: 2.339 MB / 0.5328 GB, free: 87.37 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/1.388, allocations: 0 / 0.5328 GB, free: 87.37 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003481/1.391, allocations: 1.336 MB / 0.5341 GB, free: 87.11 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004219/1.396, allocations: 485.6 kB / 0.5346 GB, free: 87.09 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04298/1.439, allocations: 23.28 MB / 0.5573 GB, free: 75.32 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003286/1.442, allocations: 2.421 MB / 0.5597 GB, free: 74.58 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002693/1.445, allocations: 1.038 MB / 0.5607 GB, free: 74.57 MB / 410.7 MB Notification: Performance of SimCode: time 1.022e-06/1.445, allocations: 0 / 0.5607 GB, free: 74.57 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:38: error: use of undeclared identifier '_omcQ_24tmpVar10_'; did you mean '_omcQ_24tmpVar11_'? _omcQ_24tmpVar11_ = std::cos(_omcQ_24tmpVar10_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar11_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:111:12: note: '_omcQ_24tmpVar11_' declared here double _omcQ_24tmpVar11_; ^ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:171:38: error: use of undeclared identifier '_omcQ_24tmpVar13_'; did you mean '_omcQ_24tmpVar14_'? _omcQ_24tmpVar14_ = std::sin(_omcQ_24tmpVar13_); ^~~~~~~~~~~~~~~~~ _omcQ_24tmpVar14_ ./OMCppModelica_3_2_2_cpp_Modelica_Electrical_Machines_Examples_Transformers_TransformerTestbenchFunctions.cpp:148:12: note: '_omcQ_24tmpVar14_' declared here double _omcQ_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