Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.652/1.652, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003414/0.0003416, allocations: 8 kB / 233.3 MB, free: 2.957 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08171/0.08209, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench): time 0.05686/0.139, allocations: 23.8 MB / 295.8 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2385/0.3775, allocations: 5.887 MB / 301.7 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004831/0.3824, allocations: 212.6 kB / 301.9 MB, free: 7.766 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.006461/0.3889, allocations: 1.466 MB / 303.4 MB, free: 7.762 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008434/0.3974, allocations: 1.618 MB / 305 MB, free: 7.758 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.007051/0.4045, allocations: 1.369 MB / 306.4 MB, free: 7.703 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.02119/0.4257, allocations: 10.77 MB / 317.1 MB, free: 7.266 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1046/0.5304, allocations: 39.11 MB / 356.2 MB, free: 10.75 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01422/0.5446, allocations: 6.025 MB / 362.3 MB, free: 5.176 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01687/0.5615, allocations: 6.871 MB / 369.1 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004391/0.566, allocations: 1.133 MB / 370.3 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008234/0.5743, allocations: 1.279 MB / 371.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00532/0.5796, allocations: 2.842 MB / 374.4 MB, free: 9.027 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.007833/0.5875, allocations: 3.552 MB / 378 MB, free: 5.461 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.04775/0.6353, allocations: 32.71 MB / 410.7 MB, free: 4.73 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.6354, allocations: 0 / 410.7 MB, free: 4.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.876e-06/0.6354, allocations: 0 / 410.7 MB, free: 4.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0009364/0.6363, allocations: 0 / 410.7 MB, free: 4.73 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4707 * Number of variables: 4707 Notification: Performance of Generate backend data structure: time 0.06977/0.7061, allocations: 16.74 MB / 427.4 MB, free: 3.984 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.356e-05/0.7062, allocations: 16.03 kB / 427.4 MB, free: 3.969 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01015/0.7164, allocations: 2.48 MB / 429.9 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.481/1.197, allocations: 2.38 MB / 432.3 MB, free: 79.31 MB / 346.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02604/1.223, allocations: 9.214 MB / 441.5 MB, free: 75.34 MB / 346.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001579/1.225, allocations: 1.33 MB / 442.8 MB, free: 74.73 MB / 346.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006488/1.232, allocations: 1.744 MB / 444.6 MB, free: 74.14 MB / 346.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0779/1.31, allocations: 26.4 MB / 471 MB, free: 59.46 MB / 346.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008125/1.31, allocations: 22.72 kB / 471 MB, free: 59.44 MB / 346.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.005027/1.315, allocations: 0.7266 MB / 471.7 MB, free: 58.71 MB / 346.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003452/1.316, allocations: 443.6 kB / 472.1 MB, free: 58.29 MB / 346.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05897/1.375, allocations: 20.25 MB / 492.4 MB, free: 38.01 MB / 346.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1815/1.556, allocations: 82.93 MB / 0.5618 GB, free: 1.641 MB / 394.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009051/1.565, allocations: 5.123 MB / 0.5668 GB, free: 12.11 MB / 410.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002841/1.566, allocations: 36.02 kB / 0.5669 GB, free: 12.07 MB / 410.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.215e-05/1.566, allocations: 68.5 kB / 0.5669 GB, free: 12 MB / 410.8 MB Notification: Performance of pre-optimization done (n=198): time 5.209e-06/1.566, allocations: 0 / 0.5669 GB, free: 12 MB / 410.8 MB Notification: Performance of matching and sorting (n=198): time 0.05356/1.619, allocations: 9.487 MB / 0.5762 GB, free: 2.438 MB / 410.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001001/1.62, allocations: 154.5 kB / 0.5764 GB, free: 2.258 MB / 410.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.51/2.13, allocations: 6.31 MB / 0.5825 GB, free: 125.3 MB / 410.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0003937/2.13, allocations: 60.58 kB / 0.5826 GB, free: 125.2 MB / 410.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.005925/2.136, allocations: 7.648 MB / 0.59 GB, free: 120.1 MB / 410.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.001153/2.137, allocations: 0.7852 MB / 0.5908 GB, free: 119.5 MB / 410.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000739/2.138, allocations: 150.7 kB / 0.5909 GB, free: 119.4 MB / 410.9 MB Notification: Performance of setup shared object (initialization): time 0.0005657/2.139, allocations: 0.6356 MB / 0.5916 GB, free: 118.9 MB / 410.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007406/2.146, allocations: 2.927 MB / 0.5944 GB, free: 117.9 MB / 410.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01023/2.156, allocations: 7.646 MB / 0.6019 GB, free: 110.4 MB / 410.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009891/2.166, allocations: 5.061 MB / 0.6068 GB, free: 108.2 MB / 410.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001521/2.166, allocations: 46.75 kB / 0.6069 GB, free: 108.2 MB / 410.9 MB Notification: Performance of matching and sorting (n=984) (initialization): time 0.02559/2.192, allocations: 11.07 MB / 0.6177 GB, free: 103.8 MB / 410.9 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001236/2.192, allocations: 78.22 kB / 0.6178 GB, free: 103.8 MB / 410.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003453/2.193, allocations: 165.1 kB / 0.6179 GB, free: 103.8 MB / 410.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009819/2.202, allocations: 1.819 MB / 0.6197 GB, free: 103.4 MB / 410.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008786/2.211, allocations: 1.641 MB / 0.6213 GB, free: 103.2 MB / 410.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02491/2.236, allocations: 12.63 MB / 0.6336 GB, free: 96.54 MB / 410.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008092/2.244, allocations: 1.051 MB / 0.6347 GB, free: 95.88 MB / 410.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001212/2.246, allocations: 455.4 kB / 0.6351 GB, free: 95.82 MB / 410.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 759 * 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 (885): * Single equations (assignments): 882 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,75.0%) 92} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.01387/2.259, allocations: 6.98 MB / 0.6419 GB, free: 92.43 MB / 410.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001096/2.261, allocations: 497.6 kB / 0.6424 GB, free: 91.94 MB / 410.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009916/2.27, allocations: 4.289 MB / 0.6466 GB, free: 88.36 MB / 410.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007582/2.278, allocations: 3.335 MB / 0.6498 GB, free: 85.2 MB / 410.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-05/2.278, allocations: 16 kB / 0.6498 GB, free: 85.19 MB / 410.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.563e-05/2.278, allocations: 8.484 kB / 0.6499 GB, free: 85.18 MB / 410.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03851/2.317, allocations: 14.97 MB / 0.6645 GB, free: 70.16 MB / 410.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-05/2.317, allocations: 4 kB / 0.6645 GB, free: 70.15 MB / 410.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001732/2.319, allocations: 207.8 kB / 0.6647 GB, free: 69.95 MB / 410.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009608/2.328, allocations: 1.584 MB / 0.6662 GB, free: 68.36 MB / 410.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003733/2.329, allocations: 43.95 kB / 0.6663 GB, free: 68.32 MB / 410.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02422/2.353, allocations: 12.18 MB / 0.6782 GB, free: 56.02 MB / 410.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/2.353, allocations: 6.469 kB / 0.6782 GB, free: 56.01 MB / 410.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01241/2.365, allocations: 5.954 MB / 0.684 GB, free: 50.02 MB / 410.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002497/2.368, allocations: 0.8146 MB / 0.6848 GB, free: 49.18 MB / 410.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00144/2.369, allocations: 40 kB / 0.6848 GB, free: 49.14 MB / 410.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003431/2.373, allocations: 115.8 kB / 0.6849 GB, free: 49.03 MB / 410.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005553/2.373, allocations: 150.8 kB / 0.6851 GB, free: 48.88 MB / 410.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001765/2.374, allocations: 52.86 kB / 0.6851 GB, free: 48.83 MB / 410.9 MB Notification: Performance of sorting global known variables: time 0.009804/2.383, allocations: 4.204 MB / 0.6892 GB, free: 44.66 MB / 410.9 MB Notification: Performance of sort global known variables: time 8.12e-07/2.383, allocations: 0 / 0.6892 GB, free: 44.66 MB / 410.9 MB Notification: Performance of remove unused functions: time 0.01258/2.396, allocations: 3.657 MB / 0.6928 GB, free: 40.98 MB / 410.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 3 (source.voltageSource[3].pin_p.reference.gamma,source.voltageSource[2].pin_p.reference.gamma,source.voltageSource[1].pin_p.reference.gamma) * 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 (100): * Single equations (assignments): 97 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(6,72.2%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01337/2.409, allocations: 6.626 MB / 0.6993 GB, free: 34.34 MB / 410.9 MB Notification: Performance of simCode: created initialization part: time 0.01509/2.425, allocations: 6.933 MB / 0.706 GB, free: 27.41 MB / 410.9 MB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/2.425, allocations: 4.188 kB / 0.706 GB, free: 27.4 MB / 410.9 MB Notification: Performance of simCode: created simulation system equations: time 0.005211/2.43, allocations: 2.198 MB / 0.7082 GB, free: 25.18 MB / 410.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01024/2.44, allocations: 1.36 MB / 0.7095 GB, free: 23.84 MB / 410.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4407/2.881, allocations: 68.88 MB / 0.7768 GB, free: 87.73 MB / 410.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02224/2.903, allocations: 10.82 MB / 0.7873 GB, free: 81.11 MB / 410.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01067/2.914, allocations: 5.453 MB / 0.7927 GB, free: 75.99 MB / 410.9 MB Notification: Performance of SimCode: time 1.462e-06/2.914, allocations: 0 / 0.7927 GB, free: 75.99 MB / 410.9 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=5 -DSUNDIALS_MINOR_VERSION=4 -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_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbenchCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbenchCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbenchCalcHelperMain.cpp:34: ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench.cpp:2013:28: error: use of undeclared identifier 'tmp27' _transformerData_P_C1_ = tmp27; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbench.cpp:2014:28: error: use of undeclared identifier 'tmp28' _transformerData_P_C2_ = tmp28; ^ In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbenchCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_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_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbenchCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_1_cpp_Modelica_Electrical_QuasiStationary_Machines_Examples_TransformerTestbenchCalcHelperMain.o] Error 1