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.728/1.728, allocations: 194.9 MB / 208.4 MB, free: 3.25 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.971e-05/2.984e-05, allocations: 9.969 kB / 255.3 MB, free: 3.203 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07638/0.07643, allocations: 44.5 MB / 299.9 MB, free: 6.641 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/0.4235, allocations: 87.77 MB / 387.6 MB, free: 20.42 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002482/0.4238, allocations: 82.06 kB / 387.7 MB, free: 20.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2683/0.6921, allocations: 74.89 MB / 462.6 MB, free: 9.934 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.155e-06/0.6922, allocations: 3.938 kB / 462.6 MB, free: 9.93 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0002995/0.6925, allocations: 91.81 kB / 462.7 MB, free: 9.84 MB / 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.008847/0.7014, allocations: 2.857 MB / 465.5 MB, free: 6.922 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.7014, allocations: 11.97 kB / 465.6 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001995/0.7034, allocations: 404 kB / 465.9 MB, free: 6.512 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006332/0.7098, allocations: 2.174 MB / 468.1 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002939/0.7101, allocations: 217.8 kB / 468.3 MB, free: 4.066 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001005/0.7112, allocations: 288 kB / 468.6 MB, free: 3.785 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01089/0.7221, allocations: 4.063 MB / 472.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.795e-05/0.7222, allocations: 0 / 472.7 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004624/0.7226, allocations: 124 kB / 472.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001916/0.7229, allocations: 133.9 kB / 472.9 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008884/0.7318, allocations: 3.12 MB / 476.1 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0351/0.7669, allocations: 11.01 MB / 487.1 MB, free: 0.9727 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007668/0.7746, allocations: 2.588 MB / 489.7 MB, free: 14.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006499/0.7812, allocations: 1.449 MB / 491.1 MB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006877/0.782, allocations: 146 kB / 491.2 MB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.92e-05/0.7821, allocations: 43.56 kB / 491.3 MB, free: 12.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=128): time 9.478e-06/0.7821, allocations: 0 / 491.3 MB, free: 12.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=133): time 0.02176/0.8039, allocations: 4.378 MB / 495.7 MB, free: 8.066 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.8041, allocations: 90.42 kB / 495.8 MB, free: 7.961 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007341/0.8115, allocations: 1.698 MB / 497.4 MB, free: 6.262 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000442/0.812, allocations: 45.7 kB / 497.5 MB, free: 6.211 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002085/0.8141, allocations: 1.26 MB / 498.8 MB, free: 4.938 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001112/0.8152, allocations: 461.4 kB / 499.2 MB, free: 4.48 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002545/0.8155, allocations: 28 kB / 499.2 MB, free: 4.453 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0003761/0.8159, allocations: 370.8 kB / 499.6 MB, free: 4.082 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003485/0.8194, allocations: 0.777 MB / 0.4886 GB, free: 3.305 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004083/0.8235, allocations: 1.13 MB / 0.4897 GB, free: 2.031 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00427/0.8278, allocations: 0.9847 MB / 0.4907 GB, free: 1.051 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.97e-05/0.8279, allocations: 4 kB / 0.4907 GB, free: 1.047 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.01114/0.8391, allocations: 2.325 MB / 0.493 GB, free: 14.71 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.276e-05/0.8392, allocations: 8 kB / 0.493 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.368e-05/0.8392, allocations: 12 kB / 0.493 GB, free: 14.69 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00139/0.8406, allocations: 359.2 kB / 0.4933 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.8426, allocations: 331.5 kB / 0.4937 GB, free: 14.02 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007492/0.8501, allocations: 4.058 MB / 0.4976 GB, free: 9.82 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001911/0.8521, allocations: 87.83 kB / 0.4977 GB, free: 9.734 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003283/0.8525, allocations: 68.05 kB / 0.4978 GB, free: 9.668 MB / 394.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (157): * Single equations (assignments): 152 * 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%) 26} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004248/0.8529, allocations: 176.7 kB / 0.4979 GB, free: 9.488 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006681/0.8536, allocations: 193.7 kB / 0.4981 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005164/0.8588, allocations: 2.113 MB / 0.5002 GB, free: 7.168 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.559e-05/0.8588, allocations: 15.95 kB / 0.5002 GB, free: 7.152 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.8589, allocations: 4 kB / 0.5002 GB, free: 7.148 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.068e-05/0.8589, allocations: 11.97 kB / 0.5002 GB, free: 7.137 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01337/0.8723, allocations: 5.163 MB / 0.5053 GB, free: 1.879 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.65e-05/0.8723, allocations: 8.203 kB / 0.5053 GB, free: 1.871 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001502/0.8739, allocations: 235.6 kB / 0.5055 GB, free: 1.641 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001383/0.8753, allocations: 337 kB / 0.5058 GB, free: 1.309 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002104/0.8755, allocations: 35.98 kB / 0.5058 GB, free: 1.273 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2649/1.14, allocations: 3.946 MB / 0.5097 GB, free: 74.81 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.217e-06/1.14, allocations: 1.969 kB / 0.5097 GB, free: 74.81 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007154/1.148, allocations: 3.272 MB / 0.5129 GB, free: 74.44 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001435/1.149, allocations: 470.8 kB / 0.5133 GB, free: 74.35 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003897/1.15, allocations: 37.5 kB / 0.5134 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00146/1.151, allocations: 105.6 kB / 0.5135 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000348/1.151, allocations: 91.42 kB / 0.5136 GB, free: 74.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001605/1.152, allocations: 42.03 kB / 0.5136 GB, free: 74.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003188/1.155, allocations: 1.309 MB / 0.5149 GB, free: 74.23 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.522e-06/1.155, allocations: 2.344 kB / 0.5149 GB, free: 74.23 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.003048/1.158, allocations: 0.571 MB / 0.5155 GB, free: 74.23 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (transformer.l2sigma.inductor[2].i,transformer.l2sigma.inductor[3].i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 99 * 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%) 26} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006623/1.159, allocations: 222.2 kB / 0.5157 GB, free: 74.14 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004578/1.163, allocations: 2.231 MB / 0.5178 GB, free: 73.86 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.082e-06/1.163, allocations: 3.438 kB / 0.5178 GB, free: 73.86 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002612/1.166, allocations: 1.289 MB / 0.5191 GB, free: 73.61 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00302/1.169, allocations: 494.4 kB / 0.5196 GB, free: 73.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01103/1.18, allocations: 4.617 MB / 0.5241 GB, free: 72.61 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003017/1.183, allocations: 2.416 MB / 0.5264 GB, free: 71.87 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008296/1.184, allocations: 143.7 kB / 0.5266 GB, free: 71.86 MB / 394.7 MB Notification: Performance of SimCode: time 2.479e-06/1.184, allocations: 0 / 0.5266 GB, free: 71.86 MB / 394.7 MB Notification: Performance of Templates: time 0.0684/1.252, allocations: 49.36 MB / 0.5748 GB, free: 66.75 MB / 394.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbench.makefile 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=2 -DSUNDIALS_MINOR_VERSION=6 -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.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:34: error: use of undeclared identifier 'D_24tmpVar10_'; did you mean 'D_24tmpVar11_'? D_24tmpVar11_ = std::cos(D_24tmpVar10_); ^~~~~~~~~~~~~ D_24tmpVar11_ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchFunctions.cpp:111:12: note: 'D_24tmpVar11_' declared here double D_24tmpVar11_; ^ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchFunctions.cpp:171:34: error: use of undeclared identifier 'D_24tmpVar13_'; did you mean 'D_24tmpVar14_'? D_24tmpVar14_ = std::sin(D_24tmpVar13_); ^~~~~~~~~~~~~ D_24tmpVar14_ ./OMCppModelica_3.2.2_cpp_Modelica.Electrical.Machines.Examples.Transformers.TransformerTestbenchFunctions.cpp:148:12: note: 'D_24tmpVar14_' declared here double D_24tmpVar14_; ^ 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