Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|Core.B|Core.Hstat|Core.MagRel|Winding.i",fileNamePrefix="Modelica_trunk_cpp_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis") Notification: Performance of loadModel(Modelica): time 2.092/2.092, allocations: 224.7 MB / 241.1 MB, free: 1.676 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.8e-05/2.805e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1324/0.1324, allocations: 50.41 MB / 345 MB, free: 8.938 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.005276/0.1378, allocations: 2.271 MB / 347.3 MB, free: 6.652 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003494/0.1413, allocations: 1.064 MB / 348.3 MB, free: 5.582 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003335/0.1417, allocations: 8 kB / 348.3 MB, free: 5.574 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002674/0.142, allocations: 47.59 kB / 348.4 MB, free: 5.527 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0009767/0.143, allocations: 179.4 kB / 348.5 MB, free: 5.352 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004691/0.1435, allocations: 91.81 kB / 348.6 MB, free: 5.262 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005277/0.1441, allocations: 223.9 kB / 348.9 MB, free: 5.043 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.1443, allocations: 40.55 kB / 348.9 MB, free: 5.004 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004081/0.1447, allocations: 151.6 kB / 349 MB, free: 4.855 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005248/0.1452, allocations: 179.5 kB / 349.2 MB, free: 4.68 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006381/0.1459, allocations: 139.9 kB / 349.4 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001556/0.1461, allocations: 28 kB / 349.4 MB, free: 4.516 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001215/0.1462, allocations: 71.66 kB / 349.5 MB, free: 4.445 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001186/0.1463, allocations: 32 kB / 349.5 MB, free: 4.414 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008867/0.1472, allocations: 367.2 kB / 349.8 MB, free: 4.055 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1473, allocations: 3.938 kB / 349.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1473, allocations: 0 / 349.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.628e-05/0.1473, allocations: 4 kB / 349.9 MB, free: 4.047 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002331/0.1497, allocations: 0.5772 MB / 350.4 MB, free: 3.418 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.1497, allocations: 12.03 kB / 350.4 MB, free: 3.406 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001741/0.1499, allocations: 35.53 kB / 350.5 MB, free: 3.371 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007875/0.1507, allocations: 324.1 kB / 350.8 MB, free: 3.012 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001101/0.1509, allocations: 54.27 kB / 350.8 MB, free: 2.953 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003229/0.1512, allocations: 35.98 kB / 350.9 MB, free: 2.918 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.1525, allocations: 324.4 kB / 351.2 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.39e-05/0.1526, allocations: 0 / 351.2 MB, free: 2.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.466e-05/0.1526, allocations: 16 kB / 351.2 MB, free: 2.574 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.99e-05/0.1527, allocations: 7.984 kB / 351.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001534/0.1542, allocations: 310 kB / 351.5 MB, free: 2.262 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00372/0.158, allocations: 1.175 MB / 352.7 MB, free: 1.012 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.1595, allocations: 311.5 kB / 353 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.111e-05/0.1596, allocations: 0 / 353 MB, free: 0.6914 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.686e-05/0.1597, allocations: 42.56 kB / 353 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of pre-optimization done (n=31): time 2.384e-06/0.1597, allocations: 0 / 353 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of matching and sorting (n=42): time 0.02201/0.1817, allocations: 2.518 MB / 355.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.968e-05/0.1819, allocations: 93.09 kB / 355.7 MB, free: 13.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006784/0.1826, allocations: 252.2 kB / 355.9 MB, free: 13.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001036/0.1827, allocations: 33.7 kB / 355.9 MB, free: 13.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001992/0.1829, allocations: 230.8 kB / 356.2 MB, free: 13.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002344/0.1831, allocations: 141.9 kB / 356.3 MB, free: 13.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.395e-05/0.1832, allocations: 8 kB / 356.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.1834, allocations: 326.8 kB / 356.6 MB, free: 12.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001089/0.1845, allocations: 176.8 kB / 356.8 MB, free: 12.77 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001075/0.1856, allocations: 234.7 kB / 357 MB, free: 12.52 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001142/0.1868, allocations: 193.5 kB / 357.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.021e-05/0.1869, allocations: 4 kB / 357.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.002618/0.1895, allocations: 492.8 kB / 357.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.022e-05/0.1896, allocations: 4 kB / 357.7 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.601e-05/0.1896, allocations: 8.078 kB / 357.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.912e-05/0.1897, allocations: 8 kB / 357.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001638/0.1913, allocations: 123.8 kB / 357.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.412e-05/0.1914, allocations: 7.984 kB / 357.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00123/0.1926, allocations: 51.91 kB / 357.9 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.701e-05/0.1927, allocations: 12 kB / 357.9 MB, free: 11.63 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003889/0.1932, allocations: 153.8 kB / 358.1 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002208/0.1934, allocations: 35.56 kB / 358.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004617/0.198, allocations: 0.6799 MB / 358.8 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.582e-05/0.1981, allocations: 8 kB / 358.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.493e-05/0.1982, allocations: 4 kB / 358.8 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/0.1982, allocations: 3.953 kB / 358.8 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00909/0.2073, allocations: 1.306 MB / 360.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.647e-05/0.2074, allocations: 3.938 kB / 360.1 MB, free: 9.363 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001558/0.209, allocations: 99.83 kB / 360.2 MB, free: 9.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003687/0.2127, allocations: 280.5 kB / 360.5 MB, free: 8.988 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001014/0.2128, allocations: 19.98 kB / 360.5 MB, free: 8.969 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006662/0.2195, allocations: 2.299 MB / 362.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.521e-06/0.2196, allocations: 0 / 362.8 MB, free: 6.531 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004126/0.2237, allocations: 1.07 MB / 363.9 MB, free: 5.434 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000308/0.2241, allocations: 148.6 kB / 364 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001139/0.2242, allocations: 12 kB / 364 MB, free: 5.258 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007693/0.225, allocations: 35.98 kB / 364.1 MB, free: 5.223 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001668/0.2252, allocations: 36.38 kB / 364.1 MB, free: 5.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.432e-05/0.2252, allocations: 12 kB / 364.1 MB, free: 5.176 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003637/0.2256, allocations: 208.5 kB / 364.3 MB, free: 4.969 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2256, allocations: 0 / 364.3 MB, free: 4.969 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0007731/0.2264, allocations: 124.2 kB / 364.4 MB, free: 4.848 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 39 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003654/0.2268, allocations: 139.1 kB / 364.6 MB, free: 4.703 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001664/0.2285, allocations: 446.2 kB / 365 MB, free: 4.27 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.2285, allocations: 4.125 kB / 365 MB, free: 4.266 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001161/0.2297, allocations: 389.1 kB / 365.4 MB, free: 3.875 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000535/0.2302, allocations: 36.44 kB / 365.4 MB, free: 3.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.2332, allocations: 1.221 MB / 366.6 MB, free: 2.578 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004278/0.2336, allocations: 0.7933 MB / 367.4 MB, free: 1.754 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003186/0.234, allocations: 43.41 kB / 367.5 MB, free: 1.711 MB / 298.7 MB Notification: Performance of SimCode: time 1.122e-06/0.234, allocations: 0 / 367.5 MB, free: 1.711 MB / 298.7 MB Notification: Performance of Templates: time 0.0141/0.2481, allocations: 5.544 MB / 373 MB, free: 12.16 MB / 314.7 MB