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: translateModel(Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|transformer.l2sigma.inductor.1..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench") Notification: Performance of loadModel(Modelica): time 1.949/1.949, allocations: 194.8 MB / 212.3 MB, free: 3.02 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003627/0.0003629, allocations: 8 kB / 264.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09621/0.0966, allocations: 44.51 MB / 309 MB, free: 1.047 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4509/0.5475, allocations: 87.86 MB / 396.8 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003402/0.5479, allocations: 93.77 kB / 396.9 MB, free: 14.76 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2977/0.8456, allocations: 74.68 MB / 471.6 MB, free: 304 kB / 346.7 MB Notification: Performance of FrontEnd: time 3.186e-06/0.8457, allocations: 0 / 471.6 MB, free: 304 kB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0003837/0.8461, allocations: 91.81 kB / 471.7 MB, free: 212 kB / 346.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.01434/0.8605, allocations: 3.194 MB / 474.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.393e-05/0.8605, allocations: 8.031 kB / 474.9 MB, free: 12.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002582/0.8631, allocations: 396 kB / 475.3 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008816/0.872, allocations: 2.196 MB / 477.5 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003355/0.8724, allocations: 221.6 kB / 477.7 MB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001213/0.8736, allocations: 280 kB / 478 MB, free: 9.84 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01363/0.8873, allocations: 4.16 MB / 482.1 MB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.262e-05/0.8874, allocations: 0 / 482.1 MB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005437/0.888, allocations: 124 kB / 482.3 MB, free: 5.402 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002197/0.8882, allocations: 133.9 kB / 482.4 MB, free: 5.27 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01178/0.9, allocations: 3.217 MB / 485.6 MB, free: 2.043 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03475/0.9348, allocations: 11.02 MB / 496.6 MB, free: 6.934 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005294/0.9401, allocations: 2.626 MB / 499.2 MB, free: 4.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006105/0.9408, allocations: 137.8 kB / 499.4 MB, free: 3.941 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.321e-05/0.9409, allocations: 59.52 kB / 499.4 MB, free: 3.875 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 4.809e-06/0.9409, allocations: 0 / 499.4 MB, free: 3.875 MB / 378.7 MB Notification: Performance of matching and sorting (n=132): time 0.01821/0.9591, allocations: 5.656 MB / 0.4932 GB, free: 14.08 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.08e-05/0.9593, allocations: 90.42 kB / 0.4933 GB, free: 13.97 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004777/0.964, allocations: 1.898 MB / 0.4952 GB, free: 12.07 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003801/0.9645, allocations: 49.7 kB / 0.4952 GB, free: 12.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001512/0.966, allocations: 1.263 MB / 0.4965 GB, free: 10.74 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008362/0.9669, allocations: 456.2 kB / 0.4969 GB, free: 10.3 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001909/0.9671, allocations: 28 kB / 0.4969 GB, free: 10.27 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002405/0.9673, allocations: 370.8 kB / 0.4973 GB, free: 9.902 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002559/0.9699, allocations: 0.8198 MB / 0.4981 GB, free: 9.082 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/0.9728, allocations: 1.185 MB / 0.4992 GB, free: 7.754 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002879/0.9758, allocations: 1.021 MB / 0.5002 GB, free: 6.734 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.899e-06/0.9758, allocations: 0 / 0.5002 GB, free: 6.734 MB / 394.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.007764/0.9836, allocations: 2.426 MB / 0.5026 GB, free: 4.297 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.639e-05/0.9837, allocations: 8 kB / 0.5026 GB, free: 4.289 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-05/0.9837, allocations: 20.09 kB / 0.5026 GB, free: 4.27 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001756/0.9855, allocations: 376.5 kB / 0.503 GB, free: 3.898 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002707/0.9882, allocations: 331.5 kB / 0.5033 GB, free: 3.574 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009643/0.9979, allocations: 4.353 MB / 0.5076 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002554/1.001, allocations: 99.88 kB / 0.5077 GB, free: 14.99 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003347/1.001, allocations: 60 kB / 0.5077 GB, free: 14.93 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.003312/1.004, allocations: 1.048 MB / 0.5087 GB, free: 13.87 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009206/1.005, allocations: 193.7 kB / 0.5089 GB, free: 13.68 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006848/1.012, allocations: 2.203 MB / 0.5111 GB, free: 11.46 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.452e-05/1.012, allocations: 12 kB / 0.5111 GB, free: 11.45 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.215e-05/1.012, allocations: 7.953 kB / 0.5111 GB, free: 11.44 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.959e-05/1.012, allocations: 11.97 kB / 0.5111 GB, free: 11.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01621/1.028, allocations: 5.179 MB / 0.5162 GB, free: 6.199 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.114e-05/1.028, allocations: 4 kB / 0.5162 GB, free: 6.195 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002117/1.031, allocations: 223.6 kB / 0.5164 GB, free: 5.977 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001797/1.032, allocations: 361.4 kB / 0.5167 GB, free: 5.621 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003477/1.033, allocations: 35.98 kB / 0.5168 GB, free: 5.586 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009199/1.042, allocations: 4.278 MB / 0.5209 GB, free: 1.18 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.382e-06/1.042, allocations: 3.984 kB / 0.5209 GB, free: 1.176 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3541/1.396, allocations: 3.262 MB / 0.5241 GB, free: 89.55 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00188/1.398, allocations: 471.3 kB / 0.5246 GB, free: 89.46 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009223/1.399, allocations: 34.16 kB / 0.5246 GB, free: 89.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002255/1.401, allocations: 104.2 kB / 0.5247 GB, free: 89.46 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003529/1.402, allocations: 86.14 kB / 0.5248 GB, free: 89.46 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000162/1.402, allocations: 42.31 kB / 0.5248 GB, free: 89.46 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003513/1.405, allocations: 1.334 MB / 0.5261 GB, free: 89.35 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.405, allocations: 2.906 kB / 0.5261 GB, free: 89.35 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003594/1.409, allocations: 0.5622 MB / 0.5267 GB, free: 89.35 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.0009528/1.41, allocations: 228.1 kB / 0.5269 GB, free: 89.27 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00613/1.416, allocations: 2.332 MB / 0.5292 GB, free: 88.98 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.897e-06/1.416, allocations: 1.625 kB / 0.5292 GB, free: 88.98 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00348/1.42, allocations: 1.33 MB / 0.5305 GB, free: 88.71 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004393/1.424, allocations: 480.2 kB / 0.5309 GB, free: 88.7 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01728/1.442, allocations: 6.714 MB / 0.5375 GB, free: 86.09 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003051/1.445, allocations: 2.418 MB / 0.5399 GB, free: 85.36 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001071/1.446, allocations: 132.8 kB / 0.54 GB, free: 85.36 MB / 410.7 MB Notification: Performance of SimCode: time 1.653e-06/1.446, allocations: 0 / 0.54 GB, free: 85.36 MB / 410.7 MB Notification: Performance of Templates: time 0.09394/1.54, allocations: 49.36 MB / 0.5882 GB, free: 80.42 MB / 410.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.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/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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\nIn file included from OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchCalcHelperMain.cpp:28:\n./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_\'?\n _omcQ_24tmpVar11_ = std::cos(_omcQ_24tmpVar10_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar11_\n./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchFunctions.cpp:111:12: note: \'_omcQ_24tmpVar11_\' declared here\n double _omcQ_24tmpVar11_;\n ^\n./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_\'?\n _omcQ_24tmpVar14_ = std::sin(_omcQ_24tmpVar13_);\n ^~~~~~~~~~~~~~~~~\n _omcQ_24tmpVar14_\n./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchFunctions.cpp:148:12: note: \'_omcQ_24tmpVar14_\' declared here\n double _omcQ_24tmpVar14_;\n ^\n2 errors generated.\n: recipe for target \'OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchCalcHelperMain.o] Error 1\n'