Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=200,variableFilter="time|source.plug_p.reference.gamma",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench") Notification: Performance of loadModel(Modelica): time 1.823/1.823, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003512/0.0003513, allocations: 8 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07951/0.07989, allocations: 44.52 MB / 308.4 MB, free: 1.004 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench): time 0.0362/0.1161, allocations: 25.09 MB / 333.5 MB, free: 7.816 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01776/0.1339, allocations: 7.031 MB / 340.5 MB, free: 0.7656 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005645/0.1396, allocations: 207.3 kB / 340.7 MB, free: 0.5625 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005939/0.1456, allocations: 1.57 MB / 342.3 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01133/0.157, allocations: 2.501 MB / 344.8 MB, free: 12.48 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006443/0.1635, allocations: 1.407 MB / 346.2 MB, free: 11.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.03401/0.1975, allocations: 18.66 MB / 364.8 MB, free: 8.359 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.5012/0.6987, allocations: 35.52 MB / 400.4 MB, free: 12.52 MB / 314.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009219/0.708, allocations: 6.443 MB / 406.8 MB, free: 12.52 MB / 314.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01106/0.7191, allocations: 7.849 MB / 414.6 MB, free: 10.77 MB / 314.8 MB Notification: Performance of NFPackage.collectConstants: time 0.003714/0.7228, allocations: 1.168 MB / 415.8 MB, free: 9.602 MB / 314.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0058/0.7286, allocations: 1.355 MB / 417.2 MB, free: 8.312 MB / 314.8 MB Notification: Performance of NFScalarize.scalarize: time 0.004574/0.7333, allocations: 3.379 MB / 420.5 MB, free: 6.898 MB / 314.8 MB Notification: Performance of NFVerifyModel.verify: time 0.00504/0.7383, allocations: 3.719 MB / 424.3 MB, free: 5.059 MB / 314.8 MB Notification: Performance of NFConvertDAE.convert: time 0.04393/0.7823, allocations: 33.69 MB / 458 MB, free: 4.773 MB / 346.8 MB Notification: Performance of FrontEnd - DAE generated: time 4.441e-06/0.7823, allocations: 0 / 458 MB, free: 4.773 MB / 346.8 MB Notification: Performance of FrontEnd: time 2.848e-06/0.7824, allocations: 4 kB / 458 MB, free: 4.77 MB / 346.8 MB Notification: Performance of Transformations before backend: time 0.0006509/0.783, allocations: 0 / 458 MB, free: 4.77 MB / 346.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5161 * Number of variables: 5161 Notification: Performance of Generate backend data structure: time 0.06218/0.8452, allocations: 18.98 MB / 476.9 MB, free: 1.957 MB / 362.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.577e-05/0.8453, allocations: 8.031 kB / 476.9 MB, free: 1.949 MB / 362.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.08705/0.9323, allocations: 12.33 MB / 489.3 MB, free: 5.715 MB / 378.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02775/0.9601, allocations: 10.45 MB / 499.7 MB, free: 11.3 MB / 394.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.002184/0.9624, allocations: 1.397 MB / 0.4894 GB, free: 9.914 MB / 394.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00668/0.9691, allocations: 1.826 MB / 0.4912 GB, free: 8.105 MB / 394.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5579/1.527, allocations: 30.74 MB / 0.5212 GB, free: 93.54 MB / 410.9 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008457/1.528, allocations: 18.78 kB / 0.5212 GB, free: 93.54 MB / 410.9 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0048/1.533, allocations: 0.7607 MB / 0.5219 GB, free: 93.09 MB / 410.9 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001322/1.534, allocations: 0.9875 MB / 0.5229 GB, free: 93 MB / 410.9 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.06711/1.601, allocations: 27.76 MB / 0.55 GB, free: 81.69 MB / 410.9 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.171/1.772, allocations: 94.58 MB / 0.6424 GB, free: 14.21 MB / 426.9 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3026/2.075, allocations: 53.35 MB / 0.6945 GB, free: 119.9 MB / 458.9 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04004/2.115, allocations: 16.83 MB / 0.7109 GB, free: 113.9 MB / 458.9 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.177e-05/2.115, allocations: 77.94 kB / 0.711 GB, free: 113.8 MB / 458.9 MB Notification: Performance of pre-optimization done (n=445): time 9.667e-06/2.115, allocations: 0 / 0.711 GB, free: 113.8 MB / 458.9 MB Notification: Performance of matching and sorting (n=445): time 0.04289/2.158, allocations: 14.8 MB / 0.7254 GB, free: 109.1 MB / 458.9 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.342e-05/2.158, allocations: 120.9 kB / 0.7255 GB, free: 109 MB / 458.9 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01476/2.173, allocations: 7.418 MB / 0.7328 GB, free: 106.3 MB / 458.9 MB Notification: Performance of collectPreVariables (initialization): time 0.0006727/2.174, allocations: 96.58 kB / 0.7329 GB, free: 106.2 MB / 458.9 MB Notification: Performance of collectInitialEqns (initialization): time 0.004841/2.179, allocations: 8.302 MB / 0.741 GB, free: 99.87 MB / 458.9 MB Notification: Performance of collectInitialBindings (initialization): time 0.001828/2.18, allocations: 1.614 MB / 0.7426 GB, free: 98.67 MB / 458.9 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000993/2.181, allocations: 222.2 kB / 0.7428 GB, free: 98.5 MB / 458.9 MB Notification: Performance of setup shared object (initialization): time 0.0006709/2.182, allocations: 0.7718 MB / 0.7435 GB, free: 97.98 MB / 458.9 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008827/2.191, allocations: 4.761 MB / 0.7482 GB, free: 96.27 MB / 458.9 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01231/2.203, allocations: 10.44 MB / 0.7584 GB, free: 86.84 MB / 458.9 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01291/2.216, allocations: 7.33 MB / 0.7655 GB, free: 83.65 MB / 458.9 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000179/2.216, allocations: 58.41 kB / 0.7656 GB, free: 83.65 MB / 458.9 MB Notification: Performance of matching and sorting (n=1413) (initialization): time 0.03483/2.251, allocations: 15.96 MB / 0.7812 GB, free: 73.58 MB / 458.9 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001703/2.252, allocations: 88 kB / 0.7813 GB, free: 73.49 MB / 458.9 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002614/2.252, allocations: 196 kB / 0.7814 GB, free: 73.3 MB / 458.9 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007456/2.259, allocations: 1.828 MB / 0.7832 GB, free: 71.47 MB / 458.9 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01048/2.27, allocations: 2.492 MB / 0.7857 GB, free: 68.98 MB / 458.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02039/2.29, allocations: 12.34 MB / 0.7977 GB, free: 56.52 MB / 458.9 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01133/2.302, allocations: 1.552 MB / 0.7992 GB, free: 54.95 MB / 458.9 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002055/2.304, allocations: 0.6015 MB / 0.7998 GB, free: 54.35 MB / 458.9 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 894 * 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 (1308): * Single equations (assignments): 1299 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.01445/2.318, allocations: 7.394 MB / 0.807 GB, free: 46.94 MB / 458.9 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001303/2.32, allocations: 0.6325 MB / 0.8077 GB, free: 46.3 MB / 458.9 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01814/2.338, allocations: 8.368 MB / 0.8158 GB, free: 37.89 MB / 458.9 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01326/2.351, allocations: 6.745 MB / 0.8224 GB, free: 31.13 MB / 458.9 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.258e-05/2.351, allocations: 16 kB / 0.8224 GB, free: 31.12 MB / 458.9 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-05/2.351, allocations: 23.91 kB / 0.8224 GB, free: 31.09 MB / 458.9 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04884/2.4, allocations: 21.12 MB / 0.8431 GB, free: 9.996 MB / 458.9 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.661e-05/2.4, allocations: 0 / 0.8431 GB, free: 9.996 MB / 458.9 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004269/2.404, allocations: 0.745 MB / 0.8438 GB, free: 9.25 MB / 458.9 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006924/2.411, allocations: 1.563 MB / 0.8453 GB, free: 7.684 MB / 458.9 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000758/2.412, allocations: 91.97 kB / 0.8454 GB, free: 7.594 MB / 458.9 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2831/2.695, allocations: 11.96 MB / 0.8571 GB, free: 118.4 MB / 458.9 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.41e-06/2.695, allocations: 1.781 kB / 0.8571 GB, free: 118.4 MB / 458.9 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02364/2.719, allocations: 12.04 MB / 0.8689 GB, free: 114.2 MB / 458.9 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003647/2.723, allocations: 1.376 MB / 0.8702 GB, free: 113.4 MB / 458.9 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001572/2.724, allocations: 76.38 kB / 0.8703 GB, free: 113.3 MB / 458.9 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003912/2.728, allocations: 305.5 kB / 0.8706 GB, free: 113.3 MB / 458.9 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009913/2.729, allocations: 300.9 kB / 0.8709 GB, free: 113.2 MB / 458.9 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005171/2.73, allocations: 128.2 kB / 0.871 GB, free: 113.2 MB / 458.9 MB Notification: Performance of sorting global known variables: time 0.009439/2.739, allocations: 4.863 MB / 0.8757 GB, free: 111.5 MB / 458.9 MB Notification: Performance of sort global known variables: time 2.033e-06/2.739, allocations: 0 / 0.8757 GB, free: 111.5 MB / 458.9 MB Notification: Performance of remove unused functions: time 0.01391/2.753, allocations: 4.203 MB / 0.8798 GB, free: 110.1 MB / 458.9 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (source.plug_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 (377): * Single equations (assignments): 368 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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,77.8%) 92} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001171/2.754, allocations: 291.1 kB / 0.8801 GB, free: 109.9 MB / 458.9 MB Notification: Performance of simCode: created initialization part: time 0.02041/2.775, allocations: 11.22 MB / 0.8911 GB, free: 105.7 MB / 458.9 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/2.775, allocations: 4 kB / 0.8911 GB, free: 105.7 MB / 458.9 MB Notification: Performance of simCode: created simulation system equations: time 0.007921/2.783, allocations: 4.157 MB / 0.8951 GB, free: 104 MB / 458.9 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007164/2.79, allocations: 1.4 MB / 0.8965 GB, free: 103.5 MB / 458.9 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0623/2.852, allocations: 34.97 MB / 0.9306 GB, free: 80.13 MB / 458.9 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02053/2.873, allocations: 11.51 MB / 0.9419 GB, free: 71.45 MB / 458.9 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002742/2.876, allocations: 0.5864 MB / 0.9425 GB, free: 70.89 MB / 458.9 MB Notification: Performance of SimCode: time 1.821e-06/2.876, allocations: 0 / 0.9425 GB, free: 70.89 MB / 458.9 MB Notification: Performance of Templates: time 0.933/3.809, allocations: 277.9 MB / 1.214 GB, free: 161.9 MB / 0.495 GB make -j1 -f Modelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbenchCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbenchCalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbenchCalcHelperMain.cpp:33:\n./OMCppModelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.cpp:4932:28: error: use of undeclared identifier \'tmp137\'\n _transformerData_P_C1_ = tmp137;\n ^\n./OMCppModelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbench.cpp:4933:28: error: use of undeclared identifier \'tmp138\'\n _transformerData_P_C2_ = tmp138;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbenchCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Electrical.QuasiStationary.Machines.Examples.TransformerTestbenchCalcHelperMain.o] Error 1\n'