Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8000,variableFilter="time|dcse.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadModel(Modelica): time 1.894/1.894, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.96e-05/2.962e-05, allocations: 4 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08724, allocations: 38.77 MB / 266.9 MB, free: 1.129 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01136/0.09867, allocations: 6.435 MB / 273.3 MB, free: 10.66 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.006289/0.105, allocations: 2.375 MB / 275.7 MB, free: 8.273 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001275/0.1064, allocations: 35.94 kB / 275.7 MB, free: 8.238 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001677/0.1081, allocations: 397.7 kB / 276.1 MB, free: 7.848 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002246/0.1104, allocations: 458.5 kB / 276.6 MB, free: 7.398 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007757/0.1112, allocations: 159.8 kB / 276.7 MB, free: 7.242 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002663/0.1138, allocations: 0.8194 MB / 277.6 MB, free: 6.422 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008111/0.1147, allocations: 296.2 kB / 277.8 MB, free: 6.129 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008325/0.1156, allocations: 386.8 kB / 278.2 MB, free: 5.75 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008767/0.1165, allocations: 438.4 kB / 278.7 MB, free: 5.32 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004631/0.1169, allocations: 87.91 kB / 278.7 MB, free: 5.234 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002393/0.1172, allocations: 44 kB / 278.8 MB, free: 5.191 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002095/0.1174, allocations: 167.2 kB / 278.9 MB, free: 5.027 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003487/0.1178, allocations: 112 kB / 279.1 MB, free: 4.918 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002284/0.1201, allocations: 1.328 MB / 280.4 MB, free: 3.586 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.608e-06/0.1201, allocations: 4 kB / 280.4 MB, free: 3.582 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1202, allocations: 0 / 280.4 MB, free: 3.582 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.276e-05/0.1202, allocations: 0 / 280.4 MB, free: 3.582 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.003132/0.1234, allocations: 1.146 MB / 281.5 MB, free: 2.387 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.027e-05/0.1234, allocations: 11.97 kB / 281.5 MB, free: 2.375 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009986/0.1244, allocations: 174.4 kB / 281.7 MB, free: 2.203 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002029/0.1265, allocations: 0.7192 MB / 282.4 MB, free: 1.441 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001036/0.1266, allocations: 74 kB / 282.5 MB, free: 1.367 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002456/0.1269, allocations: 103.9 kB / 282.6 MB, free: 1.266 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002738/0.1297, allocations: 0.9346 MB / 283.5 MB, free: 312 kB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.109e-05/0.1298, allocations: 7.984 kB / 283.5 MB, free: 304 kB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001401/0.1299, allocations: 44 kB / 283.6 MB, free: 260 kB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.194e-05/0.13, allocations: 24 kB / 283.6 MB, free: 236 kB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00242/0.1324, allocations: 0.652 MB / 284.3 MB, free: 15.58 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009173/0.1416, allocations: 3.922 MB / 288.2 MB, free: 11.44 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00124/0.1429, allocations: 448.4 kB / 288.6 MB, free: 10.97 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.663e-05/0.143, allocations: 4.688 kB / 288.6 MB, free: 10.96 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.316e-05/0.1431, allocations: 46.48 kB / 288.7 MB, free: 10.91 MB / 250.7 MB Notification: Performance of pre-optimization done (n=41): time 3.436e-06/0.1431, allocations: 0 / 288.7 MB, free: 10.91 MB / 250.7 MB Notification: Performance of matching and sorting (n=45): time 0.004646/0.1477, allocations: 1.445 MB / 290.1 MB, free: 9.391 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.295e-05/0.1479, allocations: 85.11 kB / 290.2 MB, free: 9.289 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001543/0.1494, allocations: 0.688 MB / 290.9 MB, free: 8.594 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 9.979e-05/0.1496, allocations: 33.7 kB / 290.9 MB, free: 8.555 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005797/0.1501, allocations: 0.5783 MB / 291.5 MB, free: 7.969 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002477/0.1504, allocations: 161.7 kB / 291.7 MB, free: 7.809 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.403e-05/0.1505, allocations: 12 kB / 291.7 MB, free: 7.797 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001826/0.1507, allocations: 346.8 kB / 292 MB, free: 7.449 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000663/0.1513, allocations: 173.9 kB / 292.2 MB, free: 7.277 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009011/0.1523, allocations: 467.6 kB / 292.6 MB, free: 6.684 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008293/0.1531, allocations: 259.6 kB / 292.9 MB, free: 6.43 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.943e-06/0.1531, allocations: 0 / 292.9 MB, free: 6.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002177/0.1553, allocations: 0.7134 MB / 293.6 MB, free: 5.703 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.782e-05/0.1554, allocations: 9.406 kB / 293.6 MB, free: 5.695 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.491e-05/0.1555, allocations: 16.17 kB / 293.6 MB, free: 5.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003668/0.1558, allocations: 77.62 kB / 293.7 MB, free: 5.598 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001036/0.1569, allocations: 159.7 kB / 293.9 MB, free: 5.441 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003363/0.1603, allocations: 2.814 MB / 296.7 MB, free: 2.359 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.1613, allocations: 43.89 kB / 296.7 MB, free: 2.316 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-05/0.1615, allocations: 32.06 kB / 296.8 MB, free: 2.285 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 84 * 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006867/0.1622, allocations: 261.5 kB / 297 MB, free: 2.02 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002753/0.1624, allocations: 87.2 kB / 297.1 MB, free: 1.934 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.1641, allocations: 0.4913 MB / 297.6 MB, free: 1.422 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.1642, allocations: 4 kB / 297.6 MB, free: 1.418 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1642, allocations: 4 kB / 297.6 MB, free: 1.414 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.228e-05/0.1642, allocations: 3.984 kB / 297.6 MB, free: 1.41 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2238/0.388, allocations: 1.417 MB / 299 MB, free: 28.7 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/0.3881, allocations: 4.375 kB / 299 MB, free: 28.7 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007171/0.3888, allocations: 82.66 kB / 299.1 MB, free: 28.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003192/0.3892, allocations: 57.45 kB / 299.2 MB, free: 28.68 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.245e-05/0.3892, allocations: 11.95 kB / 299.2 MB, free: 28.68 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002662/0.3919, allocations: 2.792 MB / 302 MB, free: 26.13 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.913e-06/0.392, allocations: 3.359 kB / 302 MB, free: 26.13 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.3944, allocations: 0.8748 MB / 302.8 MB, free: 25.8 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005297/0.395, allocations: 191.6 kB / 303 MB, free: 25.71 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001929/0.3952, allocations: 12.78 kB / 303 MB, free: 25.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007396/0.396, allocations: 36.78 kB / 303.1 MB, free: 25.71 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000166/0.3961, allocations: 37.89 kB / 303.1 MB, free: 25.71 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.592e-05/0.3962, allocations: 14.73 kB / 303.1 MB, free: 25.71 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001179/0.3974, allocations: 0.5229 MB / 303.6 MB, free: 25.61 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3974, allocations: 3.094 kB / 303.6 MB, free: 25.61 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.001416/0.3988, allocations: 208 kB / 303.9 MB, free: 25.61 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 38 * 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%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003257/0.3992, allocations: 124.2 kB / 304 MB, free: 25.52 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00212/0.4013, allocations: 0.7004 MB / 304.7 MB, free: 25.21 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/0.4014, allocations: 0.5625 kB / 304.7 MB, free: 25.21 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.4025, allocations: 452 kB / 305.1 MB, free: 24.92 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001914/0.4045, allocations: 203.8 kB / 305.3 MB, free: 24.86 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004979/0.4095, allocations: 2.154 MB / 307.5 MB, free: 23.52 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008314/0.4104, allocations: 1.039 MB / 308.5 MB, free: 22.8 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003221/0.4108, allocations: 60.61 kB / 308.6 MB, free: 22.79 MB / 250.7 MB Notification: Performance of SimCode: time 1.643e-06/0.4108, allocations: 0 / 308.6 MB, free: 22.79 MB / 250.7 MB Notification: Performance of Templates: time 0.03772/0.4485, allocations: 19.99 MB / 328.6 MB, free: 9.699 MB / 250.7 MB