Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadModel(Modelica): time 1.691/1.691, allocations: 171.2 MB / 183.8 MB, free: 11.95 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.308e-05/3.324e-05, allocations: 3.938 kB / 225 MB, free: 2.707 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.289/0.2891, allocations: 38.76 MB / 263.8 MB, free: 9.871 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1069/0.3961, allocations: 69.56 MB / 333.3 MB, free: 4.207 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002424/0.3964, allocations: 71.95 kB / 333.4 MB, free: 4.137 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02115/0.4175, allocations: 5.104 MB / 338.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 5.234e-06/0.4176, allocations: 3.984 kB / 338.5 MB, free: 15.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.948e-05/0.4176, allocations: 8 kB / 338.5 MB, free: 15.01 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008244/0.4185, allocations: 0.5163 MB / 339 MB, free: 14.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.4185, allocations: 8.031 kB / 339 MB, free: 14.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.4187, allocations: 31.7 kB / 339.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004012/0.4191, allocations: 238.7 kB / 339.3 MB, free: 14.13 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.041e-05/0.4192, allocations: 24.16 kB / 339.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.31e-05/0.4193, allocations: 24 kB / 339.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003699/0.4196, allocations: 139.9 kB / 339.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.485e-05/0.4197, allocations: 0 / 339.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.4197, allocations: 8 kB / 339.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.4197, allocations: 4 kB / 339.5 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003204/0.4201, allocations: 108.6 kB / 339.6 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001213/0.4213, allocations: 0.594 MB / 340.2 MB, free: 13.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00038/0.4217, allocations: 142.6 kB / 340.3 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.4219, allocations: 76.86 kB / 340.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.4219, allocations: 4 kB / 340.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002468/0.4222, allocations: 103.4 kB / 340.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of pre-optimization done (n=18): time 3.042e-06/0.4222, allocations: 3.938 kB / 340.5 MB, free: 12.83 MB / 298.7 MB Notification: Performance of matching and sorting (n=18): time 0.000456/0.4227, allocations: 162.5 kB / 340.7 MB, free: 12.66 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.211e-05/0.4227, allocations: 55.41 kB / 340.7 MB, free: 12.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.4231, allocations: 234.9 kB / 340.9 MB, free: 12.36 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.978e-05/0.4232, allocations: 25.7 kB / 341 MB, free: 12.33 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001453/0.4233, allocations: 202.8 kB / 341.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.759e-05/0.4234, allocations: 63.19 kB / 341.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.307e-05/0.4235, allocations: 0 / 341.2 MB, free: 12.06 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.4236, allocations: 322.8 kB / 341.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.4238, allocations: 52 kB / 341.6 MB, free: 11.69 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000186/0.424, allocations: 89.17 kB / 341.7 MB, free: 11.59 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.4242, allocations: 101.8 kB / 341.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.103e-06/0.4243, allocations: 0 / 341.8 MB, free: 11.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005203/0.4248, allocations: 227.7 kB / 342 MB, free: 11.26 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.611e-05/0.4249, allocations: 37.69 kB / 342 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.065e-06/0.4249, allocations: 0 / 342 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.4249, allocations: 0 / 342 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002672/0.4252, allocations: 47.86 kB / 342.1 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.4252, allocations: 7.938 kB / 342.1 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001866/0.4254, allocations: 27.75 kB / 342.1 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.451e-05/0.4255, allocations: 15.98 kB / 342.1 MB, free: 11.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 1 * 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.0001173/0.4256, allocations: 116.9 kB / 342.3 MB, free: 11 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.324e-05/0.4256, allocations: 15.81 kB / 342.3 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.4262, allocations: 204.7 kB / 342.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.001e-06/0.4262, allocations: 0 / 342.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.864e-06/0.4262, allocations: 0 / 342.5 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.4262, allocations: 7.984 kB / 342.5 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004087/0.4267, allocations: 273.5 kB / 342.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.4267, allocations: 4 kB / 342.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002718/0.427, allocations: 47.91 kB / 342.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.968e-06/0.427, allocations: 3.953 kB / 342.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.366e-05/0.427, allocations: 4 kB / 342.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.228e-06/0.427, allocations: 4 kB / 342.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.962e-06/0.427, allocations: 0 / 342.8 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006276/0.4277, allocations: 265.8 kB / 343.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001441/0.4278, allocations: 104.8 kB / 343.2 MB, free: 9.992 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.525e-05/0.4279, allocations: 16 kB / 343.2 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/0.4281, allocations: 8 kB / 343.2 MB, free: 9.969 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.66e-05/0.4281, allocations: 15.92 kB / 343.2 MB, free: 9.953 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.175e-05/0.4282, allocations: 4 kB / 343.2 MB, free: 9.949 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002843/0.4285, allocations: 189.6 kB / 343.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of sort global known variables: time 8.23e-07/0.4285, allocations: 0 / 343.4 MB, free: 9.766 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004282/0.4289, allocations: 75.92 kB / 343.5 MB, free: 9.691 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 2 ($whenCondition1,lossTable.nextTimeEvent) * Number of discrete states: 1 (lossTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001023/0.43, allocations: 317.1 kB / 343.8 MB, free: 9.414 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004691/0.4304, allocations: 199.5 kB / 344 MB, free: 9.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.4305, allocations: 0 / 344 MB, free: 9.207 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001679/0.4306, allocations: 71.88 kB / 344 MB, free: 9.137 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003664/0.431, allocations: 28.66 kB / 344.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001114/0.4322, allocations: 460.4 kB / 344.5 MB, free: 8.629 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.4327, allocations: 0.7597 MB / 345.3 MB, free: 7.84 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.687e-05/0.4328, allocations: 19.44 kB / 345.3 MB, free: 7.82 MB / 298.7 MB Notification: Performance of SimCode: time 2.044e-06/0.4328, allocations: 0 / 345.3 MB, free: 7.82 MB / 298.7 MB Notification: Performance of Templates: time 0.006956/0.4398, allocations: 3.012 MB / 348.3 MB, free: 4.805 MB / 298.7 MB