Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection") Notification: Performance of loadModel(Modelica): time 2.095/2.095, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.185e-05/3.166e-05, allocations: 4 kB / 294.6 MB, free: 11.39 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1102, allocations: 50.41 MB / 345 MB, free: 8.926 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.ToroidalCoreQuadraticCrossSection): time 0.003883/0.1142, allocations: 2.263 MB / 347.2 MB, free: 6.648 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001528/0.1157, allocations: 0.6547 MB / 347.9 MB, free: 5.988 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.1159, allocations: 8 kB / 347.9 MB, free: 5.98 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001588/0.1161, allocations: 47.67 kB / 347.9 MB, free: 5.934 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003014/0.1164, allocations: 79.73 kB / 348 MB, free: 5.855 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003101/0.1167, allocations: 83.83 kB / 348.1 MB, free: 5.773 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003481/0.1171, allocations: 203.3 kB / 348.3 MB, free: 5.574 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002041/0.1173, allocations: 73.33 kB / 348.4 MB, free: 5.5 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000277/0.1176, allocations: 115.7 kB / 348.5 MB, free: 5.387 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002479/0.1179, allocations: 135.5 kB / 348.6 MB, free: 5.254 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.988e-05/0.118, allocations: 16 kB / 348.6 MB, free: 5.238 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.788e-05/0.118, allocations: 12 kB / 348.7 MB, free: 5.227 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.572e-05/0.1181, allocations: 55.81 kB / 348.7 MB, free: 5.172 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.681e-05/0.1182, allocations: 28 kB / 348.7 MB, free: 5.145 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004077/0.1186, allocations: 295.3 kB / 349 MB, free: 4.855 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.825e-06/0.1186, allocations: 0 / 349 MB, free: 4.855 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.746e-06/0.1187, allocations: 4 kB / 349 MB, free: 4.852 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.1187, allocations: 0 / 349 MB, free: 4.852 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 79 * Number of variables: 79 Notification: Performance of Generate backend data structure: time 0.001531/0.1202, allocations: 0.581 MB / 349.6 MB, free: 4.223 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.787e-05/0.1203, allocations: 8.031 kB / 349.6 MB, free: 4.215 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000117/0.1204, allocations: 39.48 kB / 349.7 MB, free: 4.176 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004505/0.1209, allocations: 271.4 kB / 349.9 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.833e-05/0.1209, allocations: 28.66 kB / 349.9 MB, free: 3.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.549e-05/0.121, allocations: 28 kB / 350 MB, free: 3.812 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009445/0.122, allocations: 298 kB / 350.3 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.122, allocations: 0 / 350.3 MB, free: 3.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.836e-05/0.1221, allocations: 16 kB / 350.3 MB, free: 3.504 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.532e-05/0.1221, allocations: 11.95 kB / 350.3 MB, free: 3.492 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001117/0.1232, allocations: 270.5 kB / 350.6 MB, free: 3.227 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002588/0.1258, allocations: 1.128 MB / 351.7 MB, free: 2 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006238/0.1265, allocations: 158.5 kB / 351.8 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.524e-05/0.1265, allocations: 0 / 351.8 MB, free: 1.836 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/0.1266, allocations: 30.56 kB / 351.9 MB, free: 1.797 MB / 282.7 MB Notification: Performance of pre-optimization done (n=17): time 3.807e-06/0.1266, allocations: 3.984 kB / 351.9 MB, free: 1.793 MB / 282.7 MB Notification: Performance of matching and sorting (n=22): time 0.003589/0.1302, allocations: 0.6747 MB / 352.5 MB, free: 1.109 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.114e-05/0.1303, allocations: 51.59 kB / 352.6 MB, free: 1.047 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004062/0.1307, allocations: 245.8 kB / 352.8 MB, free: 0.8047 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.1307, allocations: 37.7 kB / 352.9 MB, free: 0.7617 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001962/0.1309, allocations: 289.9 kB / 353.2 MB, free: 484 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001115/0.1311, allocations: 71 kB / 353.2 MB, free: 412 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.1311, allocations: 4 kB / 353.2 MB, free: 408 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1312, allocations: 330.8 kB / 353.6 MB, free: 68 kB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000548/0.1318, allocations: 103.9 kB / 353.7 MB, free: 15.96 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005949/0.1324, allocations: 204.1 kB / 353.9 MB, free: 15.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005677/0.133, allocations: 129.8 kB / 354 MB, free: 15.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.133, allocations: 7.938 kB / 354 MB, free: 15.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.001479/0.1345, allocations: 404.8 kB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.416e-05/0.1345, allocations: 4 kB / 354.4 MB, free: 15.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1346, allocations: 8.125 kB / 354.4 MB, free: 15.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003503/0.1349, allocations: 61.67 kB / 354.5 MB, free: 15.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006286/0.1356, allocations: 83.89 kB / 354.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002618/0.1382, allocations: 2.651 MB / 357.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005209/0.1388, allocations: 28.05 kB / 357.2 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.311e-05/0.1388, allocations: 19.98 kB / 357.2 MB, free: 12.06 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002567/0.1391, allocations: 157.1 kB / 357.4 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.145e-05/0.1392, allocations: 23.72 kB / 357.4 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.323e-05/0.1393, allocations: 34.17 kB / 357.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.1393, allocations: 3.953 kB / 357.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.889e-06/0.1393, allocations: 4 kB / 357.5 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.859e-06/0.1393, allocations: 8 kB / 357.5 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005295/0.1399, allocations: 333.6 kB / 357.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.1399, allocations: 0 / 357.8 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003963/0.1403, allocations: 43.97 kB / 357.8 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002767/0.1406, allocations: 57.67 kB / 357.9 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.172e-05/0.1406, allocations: 7.938 kB / 357.9 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.1432, allocations: 2.647 MB / 360.5 MB, free: 8.422 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.1432, allocations: 4.125 kB / 360.5 MB, free: 8.418 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001281/0.1445, allocations: 399.9 kB / 360.9 MB, free: 8.008 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.1447, allocations: 96.83 kB / 361 MB, free: 7.895 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.074e-05/0.1447, allocations: 4.469 kB / 361 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003731/0.1451, allocations: 27.97 kB / 361.1 MB, free: 7.863 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.729e-05/0.1452, allocations: 15.92 kB / 361.1 MB, free: 7.848 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.1453, allocations: 11.98 kB / 361.1 MB, free: 7.836 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002859/0.1455, allocations: 190 kB / 361.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.1456, allocations: 0 / 361.3 MB, free: 7.656 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005371/0.1461, allocations: 76 kB / 361.3 MB, free: 7.582 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001542/0.1463, allocations: 107.2 kB / 361.5 MB, free: 7.469 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001529/0.1478, allocations: 0.4931 MB / 361.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.1478, allocations: 0 / 361.9 MB, free: 6.949 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008329/0.1487, allocations: 358.1 kB / 362.3 MB, free: 6.574 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.1491, allocations: 32.48 kB / 362.3 MB, free: 6.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.1507, allocations: 0.7068 MB / 363 MB, free: 5.809 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004316/0.1512, allocations: 0.783 MB / 363.8 MB, free: 5 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001439/0.1513, allocations: 27.44 kB / 363.8 MB, free: 4.973 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.1513, allocations: 3.938 kB / 363.8 MB, free: 4.969 MB / 298.7 MB Notification: Performance of Templates: time 0.0117/0.1631, allocations: 5.751 MB / 369.6 MB, free: 15.21 MB / 314.7 MB