Running command: translateModel(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|aimc.i_0_s|aimc.idq_rr.1.|aimc.idq_rr.2.|aimc.idq_sr.1.|aimc.idq_sr.2.|loadInertia.phi|loadInertia.w|transformer.l2sigma.inductor.2..i|transformer.l2sigma.inductor.3..i",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer") Notification: Performance of loadModel(Modelica): time 1.684/1.684, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.293e-05/3.287e-05, allocations: 7.984 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08021/0.08027, allocations: 38.77 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer): time 0.01731/0.09764, allocations: 10.2 MB / 277.1 MB, free: 6.879 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.01005/0.1077, allocations: 3.742 MB / 280.8 MB, free: 3.129 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002267/0.1101, allocations: 83.69 kB / 280.9 MB, free: 3.047 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003034/0.1131, allocations: 0.7226 MB / 281.6 MB, free: 2.32 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004365/0.1175, allocations: 0.9033 MB / 282.6 MB, free: 1.414 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001711/0.1193, allocations: 311.6 kB / 282.9 MB, free: 1.109 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.005798/0.1251, allocations: 2.238 MB / 285.1 MB, free: 14.87 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004113/0.1293, allocations: 1.908 MB / 287 MB, free: 12.94 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002772/0.1321, allocations: 1.18 MB / 288.2 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003688/0.1359, allocations: 1.577 MB / 289.8 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.1378, allocations: 231.9 kB / 290 MB, free: 9.949 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001106/0.1389, allocations: 160 kB / 290.1 MB, free: 9.793 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002101/0.1411, allocations: 0.9774 MB / 291.1 MB, free: 8.812 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001787/0.1429, allocations: 372 kB / 291.5 MB, free: 8.449 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00926/0.1522, allocations: 5.933 MB / 297.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1523, allocations: 0 / 297.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1523, allocations: 0 / 297.4 MB, free: 2.5 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002363/0.1525, allocations: 0 / 297.4 MB, free: 2.5 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.2494/0.402, allocations: 3.583 MB / 301 MB, free: 25.38 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.935e-05/0.402, allocations: 10.41 kB / 301 MB, free: 25.38 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002846/0.4049, allocations: 0.4953 MB / 301.5 MB, free: 25.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007733/0.4127, allocations: 2.293 MB / 303.8 MB, free: 24.15 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004305/0.4132, allocations: 264 kB / 304.1 MB, free: 24.04 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001302/0.4145, allocations: 350.8 kB / 304.4 MB, free: 23.92 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01707/0.4316, allocations: 4.949 MB / 309.3 MB, free: 21.95 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002079/0.4318, allocations: 10.02 kB / 309.4 MB, free: 21.95 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009886/0.4328, allocations: 146.6 kB / 309.5 MB, free: 21.84 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00029/0.4331, allocations: 175.8 kB / 309.7 MB, free: 21.81 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01392/0.4471, allocations: 4.266 MB / 313.9 MB, free: 19.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03594/0.4831, allocations: 14.88 MB / 328.8 MB, free: 6.66 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006445/0.4896, allocations: 4.198 MB / 333 MB, free: 2.156 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004663/0.4901, allocations: 133.5 kB / 333.1 MB, free: 2.012 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.284e-05/0.4901, allocations: 64.45 kB / 333.2 MB, free: 1.941 MB / 250.7 MB Notification: Performance of pre-optimization done (n=198): time 5.2e-06/0.4902, allocations: 0 / 333.2 MB, free: 1.941 MB / 250.7 MB Notification: Performance of matching and sorting (n=218): time 0.036/0.5262, allocations: 10.32 MB / 343.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.114e-05/0.5263, allocations: 73.41 kB / 343.6 MB, free: 7.395 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005395/0.5317, allocations: 2.154 MB / 345.8 MB, free: 5.223 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005237/0.5323, allocations: 61.7 kB / 345.8 MB, free: 5.156 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001591/0.5339, allocations: 1.494 MB / 347.3 MB, free: 3.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.00116/0.5351, allocations: 0.7264 MB / 348 MB, free: 2.934 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002381/0.5353, allocations: 47.94 kB / 348.1 MB, free: 2.887 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002568/0.5356, allocations: 407.5 kB / 348.5 MB, free: 2.48 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003811/0.5394, allocations: 1.32 MB / 349.8 MB, free: 1.156 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004477/0.5439, allocations: 1.782 MB / 351.6 MB, free: 15.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004561/0.5485, allocations: 1.577 MB / 353.2 MB, free: 13.61 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.749e-05/0.5486, allocations: 4 kB / 353.2 MB, free: 13.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=295) (initialization): time 0.01237/0.561, allocations: 3.944 MB / 357.1 MB, free: 9.633 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.905e-05/0.5611, allocations: 8.469 kB / 357.1 MB, free: 9.625 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.689e-05/0.5611, allocations: 20 kB / 357.1 MB, free: 9.605 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004773/0.5659, allocations: 0.8755 MB / 358 MB, free: 8.715 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004377/0.5703, allocations: 0.5266 MB / 358.5 MB, free: 8.188 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02424/0.5946, allocations: 8.954 MB / 367.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004879/0.5996, allocations: 115.9 kB / 367.6 MB, free: 14.74 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006356/0.6002, allocations: 87.98 kB / 367.7 MB, free: 14.66 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 () * 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.0052/0.6055, allocations: 1.212 MB / 368.9 MB, free: 13.43 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001413/0.6069, allocations: 280.6 kB / 369.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01183/0.6188, allocations: 3.759 MB / 372.9 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.189e-05/0.6189, allocations: 20 kB / 373 MB, free: 9.348 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.561e-05/0.6189, allocations: 11.95 kB / 373 MB, free: 9.336 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.113e-05/0.619, allocations: 11.95 kB / 373 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02425/0.6432, allocations: 8.066 MB / 381 MB, free: 1.188 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.114e-05/0.6433, allocations: 4 kB / 381 MB, free: 1.184 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003504/0.6468, allocations: 387.8 kB / 381.4 MB, free: 0.8047 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005435/0.6523, allocations: 0.9321 MB / 382.4 MB, free: 15.86 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00047/0.6528, allocations: 55.97 kB / 382.4 MB, free: 15.8 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01923/0.6721, allocations: 10.42 MB / 392.8 MB, free: 4.863 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.894e-06/0.6721, allocations: 3.953 kB / 392.8 MB, free: 4.859 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01648/0.6886, allocations: 5.804 MB / 398.6 MB, free: 14.92 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00248/0.6911, allocations: 0.6382 MB / 399.3 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/0.6923, allocations: 51.98 kB / 399.3 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002984/0.6954, allocations: 127.9 kB / 399.5 MB, free: 14.08 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007567/0.6962, allocations: 177.7 kB / 399.6 MB, free: 13.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/0.6965, allocations: 63.98 kB / 399.7 MB, free: 13.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00441/0.7009, allocations: 1.66 MB / 401.4 MB, free: 12.17 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.7009, allocations: 0 / 401.4 MB, free: 12.17 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.004116/0.7051, allocations: 0.7994 MB / 402.2 MB, free: 11.38 MB / 330.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 () * 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.000902/0.706, allocations: 198.7 kB / 402.3 MB, free: 11.18 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.01134/0.7174, allocations: 3.934 MB / 406.3 MB, free: 7.176 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/0.7174, allocations: 0 / 406.3 MB, free: 7.176 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.007433/0.7249, allocations: 2.504 MB / 408.8 MB, free: 4.598 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005858/0.7308, allocations: 0.7189 MB / 409.5 MB, free: 3.875 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/0.754, allocations: 9.081 MB / 418.6 MB, free: 10.73 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004993/0.7591, allocations: 2.776 MB / 421.4 MB, free: 7.926 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001492/0.7606, allocations: 187.4 kB / 421.5 MB, free: 7.746 MB / 346.7 MB Notification: Performance of SimCode: time 1.503e-06/0.7607, allocations: 0 / 421.5 MB, free: 7.746 MB / 346.7 MB Notification: Performance of Templates: time 0.4471/1.208, allocations: 133.3 MB / 0.5419 GB, free: 11.23 MB / 362.7 MB make -j1 -f Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.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 -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -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.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.cpp In file included from OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.cpp:36: ./OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.cpp:3187:28: error: use of undeclared identifier 'tmp353' _transformerData_P_C1_ = tmp353; ^ ./OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_Transformer.cpp:3188:28: error: use of undeclared identifier 'tmp354' _transformerData_P_C2_ = tmp354; ^ 2 errors generated. : recipe for target 'OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.Transformers.AIMC_TransformerCalcHelperMain.o] Error 1