Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer.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.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.567/1.567, allocations: 171.2 MB / 186.7 MB, free: 1.141 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005134/0.0005139, allocations: 12 kB / 233.3 MB, free: 2.973 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09574/0.0963, allocations: 38.77 MB / 272 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.AsynchronousInductionMachines.AIMC_Transformer): time 0.02086/0.1172, allocations: 10.5 MB / 282.5 MB, free: 1.57 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01062/0.1279, allocations: 4.105 MB / 286.6 MB, free: 13.46 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002275/0.1303, allocations: 59.69 kB / 286.7 MB, free: 13.4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003543/0.1338, allocations: 0.8047 MB / 287.5 MB, free: 12.59 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004655/0.1385, allocations: 0.9891 MB / 288.5 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001927/0.1405, allocations: 323.6 kB / 288.8 MB, free: 11.28 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.007214/0.1478, allocations: 2.994 MB / 291.8 MB, free: 8.281 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005131/0.153, allocations: 2.522 MB / 294.3 MB, free: 5.711 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003632/0.1566, allocations: 1.471 MB / 295.8 MB, free: 4.234 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00426/0.161, allocations: 1.809 MB / 297.6 MB, free: 2.418 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001059/0.1621, allocations: 244 kB / 297.8 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001884/0.164, allocations: 311.9 kB / 298.1 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002201/0.1662, allocations: 1.083 MB / 299.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.2849/0.4512, allocations: 0.8363 MB / 300.1 MB, free: 13.18 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00992/0.4611, allocations: 5.939 MB / 306 MB, free: 12.45 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4612, allocations: 0 / 306 MB, free: 12.45 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.146e-06/0.4612, allocations: 0.5 kB / 306 MB, free: 12.45 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.000302/0.4615, allocations: 2.875 kB / 306 MB, free: 12.45 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 929 * Number of variables: 929 Notification: Performance of Generate backend data structure: time 0.01585/0.4774, allocations: 3.965 MB / 310 MB, free: 10.2 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.104e-05/0.4775, allocations: 9.344 kB / 310 MB, free: 10.2 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002516/0.48, allocations: 499.2 kB / 310.5 MB, free: 10.06 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00351/0.4836, allocations: 0.5002 MB / 311 MB, free: 9.812 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008198/0.4918, allocations: 2.288 MB / 313.3 MB, free: 9 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004323/0.4923, allocations: 261.5 kB / 313.5 MB, free: 8.992 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001794/0.4941, allocations: 358.2 kB / 313.9 MB, free: 8.984 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01752/0.5116, allocations: 4.979 MB / 318.8 MB, free: 7.762 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001511/0.5118, allocations: 7.047 kB / 318.8 MB, free: 7.762 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000622/0.5125, allocations: 142.2 kB / 319 MB, free: 7.762 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002381/0.5127, allocations: 182.4 kB / 319.2 MB, free: 7.742 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01406/0.5268, allocations: 4.262 MB / 323.4 MB, free: 7.023 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04455/0.5714, allocations: 14.89 MB / 338.3 MB, free: 10.52 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00895/0.5804, allocations: 4.188 MB / 342.5 MB, free: 6.039 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006009/0.5811, allocations: 133.2 kB / 342.6 MB, free: 5.895 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.83e-05/0.5812, allocations: 56.56 kB / 342.7 MB, free: 5.832 MB / 266.7 MB Notification: Performance of pre-optimization done (n=198): time 6.382e-06/0.5812, allocations: 6.188 kB / 342.7 MB, free: 5.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=218): time 0.04088/0.6221, allocations: 10.31 MB / 353 MB, free: 11.42 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.112e-05/0.6222, allocations: 73.41 kB / 353.1 MB, free: 11.34 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007111/0.6293, allocations: 2.424 MB / 355.5 MB, free: 8.891 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006213/0.63, allocations: 65.7 kB / 355.6 MB, free: 8.82 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00186/0.6319, allocations: 1.487 MB / 357 MB, free: 7.324 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001462/0.6334, allocations: 0.7357 MB / 357.8 MB, free: 6.594 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002938/0.6337, allocations: 44 kB / 357.8 MB, free: 6.551 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003255/0.634, allocations: 415.4 kB / 358.2 MB, free: 6.137 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004237/0.6383, allocations: 1.316 MB / 359.5 MB, free: 4.816 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005097/0.6434, allocations: 1.802 MB / 361.4 MB, free: 2.832 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00503/0.6485, allocations: 1.57 MB / 362.9 MB, free: 1.277 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.212e-05/0.6486, allocations: 8 kB / 362.9 MB, free: 1.27 MB / 282.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.01312/0.6617, allocations: 3.937 MB / 366.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.27e-05/0.6618, allocations: 12 kB / 366.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.502e-05/0.6619, allocations: 15.98 kB / 366.9 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005482/0.6673, allocations: 0.8891 MB / 367.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004522/0.6719, allocations: 0.5306 MB / 368.3 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01778/0.6898, allocations: 8.934 MB / 377.2 MB, free: 2.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003652/0.6935, allocations: 116 kB / 377.4 MB, free: 2.562 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006032/0.6941, allocations: 91.98 kB / 377.5 MB, free: 2.473 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (252): * Single equations (assignments): 247 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 25,(2,100.0%) 12,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004469/0.6986, allocations: 1.214 MB / 378.7 MB, free: 1.277 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001106/0.6997, allocations: 280.7 kB / 378.9 MB, free: 1 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01309/0.7128, allocations: 3.754 MB / 382.7 MB, free: 13.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.809e-05/0.7129, allocations: 20 kB / 382.7 MB, free: 13.22 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-05/0.7129, allocations: 10.19 kB / 382.7 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.66e-05/0.713, allocations: 15.95 kB / 382.7 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02651/0.7395, allocations: 8.081 MB / 390.8 MB, free: 5.105 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.688e-05/0.7396, allocations: 4 kB / 390.8 MB, free: 5.102 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003344/0.743, allocations: 387.1 kB / 391.2 MB, free: 4.738 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005948/0.7489, allocations: 0.9306 MB / 392.1 MB, free: 3.797 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004675/0.7495, allocations: 55.97 kB / 392.2 MB, free: 3.742 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01992/0.7694, allocations: 10.43 MB / 402.6 MB, free: 8.816 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.458e-06/0.7694, allocations: 10.61 kB / 402.6 MB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01729/0.7867, allocations: 5.589 MB / 408.2 MB, free: 3.18 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002893/0.7897, allocations: 0.6421 MB / 408.9 MB, free: 2.516 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001429/0.7912, allocations: 51.98 kB / 408.9 MB, free: 2.465 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003496/0.7947, allocations: 127.9 kB / 409 MB, free: 2.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001008/0.7958, allocations: 174.9 kB / 409.2 MB, free: 2.176 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002832/0.7961, allocations: 63.98 kB / 409.3 MB, free: 2.113 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.005231/0.8013, allocations: 1.668 MB / 410.9 MB, free: 444 kB / 330.7 MB Notification: Performance of sort global known variables: time 1.463e-06/0.8014, allocations: 4 kB / 410.9 MB, free: 440 kB / 330.7 MB Notification: Performance of remove unused functions: time 0.005189/0.8066, allocations: 0.793 MB / 411.7 MB, free: 15.63 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 9 (aimc.inertiaRotor.w,aimc.i_0_s,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (booleanStep1[1].y,booleanStep1[2].y,booleanStep1[3].y,booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (175): * Single equations (assignments): 170 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(2,100.0%) 12,(1,100.0%) 1,(3,88.9%) 25,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01823/0.8248, allocations: 6.243 MB / 418 MB, free: 9.371 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.01186/0.8368, allocations: 3.93 MB / 421.9 MB, free: 5.414 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.285e-05/0.8368, allocations: 4 kB / 421.9 MB, free: 5.41 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00769/0.8445, allocations: 2.504 MB / 424.4 MB, free: 2.875 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006547/0.8511, allocations: 0.7207 MB / 425.1 MB, free: 2.152 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3102/1.161, allocations: 24.05 MB / 449.2 MB, free: 128.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005623/1.167, allocations: 2.791 MB / 452 MB, free: 127.2 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003889/1.171, allocations: 1.402 MB / 453.4 MB, free: 126 MB / 362.7 MB Notification: Performance of SimCode: time 1.202e-06/1.171, allocations: 2.625 kB / 453.4 MB, free: 126 MB / 362.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=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_Machines_Examples_AsynchronousInductionMachines_AIMC_TransformerCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_TransformerCalcHelperMain.cpp:34: ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer.cpp:3178:28: error: use of undeclared identifier 'tmp37' _transformerData_P_C1_ = tmp37; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_Transformer.cpp:3179:28: error: use of undeclared identifier 'tmp38' _transformerData_P_C2_ = tmp38; ^ In file included from OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_TransformerCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_TransformerFMU.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_Machines_Examples_AsynchronousInductionMachines_AIMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_1_cpp_Modelica_Electrical_Machines_Examples_AsynchronousInductionMachines_AIMC_TransformerCalcHelperMain.o] Error 1