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.73/1.73, allocations: 171.1 MB / 186.3 MB, free: 1.328 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 4.802e-05/4.802e-05, allocations: 2.188 kB / 228.1 MB, free: 7.98 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1013/0.1014, allocations: 38.76 MB / 266.9 MB, free: 1.133 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003071/0.1045, allocations: 1.69 MB / 268.6 MB, free: 15.42 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002013/0.1066, allocations: 0.8387 MB / 269.4 MB, free: 14.58 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001624/0.1068, allocations: 8 kB / 269.4 MB, free: 14.57 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003438/0.1072, allocations: 87.67 kB / 269.5 MB, free: 14.48 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000314/0.1075, allocations: 99.72 kB / 269.6 MB, free: 14.39 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003131/0.1078, allocations: 79.77 kB / 269.7 MB, free: 14.31 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002959/0.1082, allocations: 143.7 kB / 269.8 MB, free: 14.17 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.1084, allocations: 44.41 kB / 269.9 MB, free: 14.12 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001458/0.1085, allocations: 79.83 kB / 269.9 MB, free: 14.04 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1087, allocations: 87.73 kB / 270 MB, free: 13.96 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002052/0.109, allocations: 35.98 kB / 270.1 MB, free: 13.92 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.109, allocations: 12 kB / 270.1 MB, free: 13.91 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.593e-05/0.1091, allocations: 39.84 kB / 270.1 MB, free: 13.87 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.192e-05/0.1092, allocations: 20 kB / 270.1 MB, free: 13.85 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004021/0.1096, allocations: 219.7 kB / 270.3 MB, free: 13.64 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.1096, allocations: 0 / 270.3 MB, free: 13.64 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.945e-06/0.1096, allocations: 0 / 270.3 MB, free: 13.64 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1097, allocations: 0 / 270.3 MB, free: 13.64 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: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.000964/0.1106, allocations: 0.509 MB / 270.9 MB, free: 13.07 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.32e-05/0.1107, allocations: 12.03 kB / 270.9 MB, free: 13.06 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001902/0.1109, allocations: 23.72 kB / 270.9 MB, free: 13.04 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.1113, allocations: 242.7 kB / 271.1 MB, free: 12.76 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.769e-05/0.1113, allocations: 16.28 kB / 271.1 MB, free: 12.74 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.891e-05/0.1114, allocations: 24 kB / 271.2 MB, free: 12.72 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004181/0.1118, allocations: 148.2 kB / 271.3 MB, free: 12.57 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.1119, allocations: 4 kB / 271.3 MB, free: 12.57 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.515e-05/0.1119, allocations: 4 kB / 271.3 MB, free: 12.56 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.19e-05/0.1119, allocations: 4 kB / 271.3 MB, free: 12.56 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/0.1123, allocations: 112.1 kB / 271.4 MB, free: 12.45 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.1135, allocations: 0.5626 MB / 272 MB, free: 11.84 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004182/0.114, allocations: 150.4 kB / 272.1 MB, free: 11.68 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.197e-05/0.114, allocations: 4 kB / 272.1 MB, free: 11.68 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002975/0.1143, allocations: 103.4 kB / 272.2 MB, free: 11.56 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 2.975e-06/0.1143, allocations: 4 kB / 272.3 MB, free: 11.56 MB / 234.7 MB Notification: Performance of matching and sorting (n=18): time 0.0006219/0.115, allocations: 195.7 kB / 272.4 MB, free: 11.36 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.744e-05/0.115, allocations: 55.41 kB / 272.5 MB, free: 11.3 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003573/0.1154, allocations: 239.1 kB / 272.7 MB, free: 11.05 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.1155, allocations: 29.7 kB / 272.8 MB, free: 11.02 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001433/0.1156, allocations: 202.8 kB / 273 MB, free: 10.82 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.581e-05/0.1157, allocations: 55.2 kB / 273 MB, free: 10.77 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.75e-05/0.1157, allocations: 8 kB / 273 MB, free: 10.76 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.1159, allocations: 322.8 kB / 273.3 MB, free: 10.43 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.116, allocations: 51.83 kB / 273.4 MB, free: 10.38 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000188/0.1163, allocations: 77.98 kB / 273.5 MB, free: 10.3 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.1165, allocations: 85.89 kB / 273.5 MB, free: 10.21 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/0.1165, allocations: 0 / 273.5 MB, free: 10.21 MB / 234.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005335/0.117, allocations: 231.9 kB / 273.8 MB, free: 9.973 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.1171, allocations: 37.69 kB / 273.8 MB, free: 9.93 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.274e-06/0.1171, allocations: 0 / 273.8 MB, free: 9.93 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1171, allocations: 0 / 273.8 MB, free: 9.93 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003458/0.1175, allocations: 35.98 kB / 273.8 MB, free: 9.895 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.847e-06/0.1175, allocations: 4 kB / 273.8 MB, free: 9.891 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001975/0.1177, allocations: 27.69 kB / 273.9 MB, free: 9.863 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.102e-05/0.1178, allocations: 12 kB / 273.9 MB, free: 9.852 MB / 234.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.0002045/0.118, allocations: 145.8 kB / 274 MB, free: 9.699 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.48e-05/0.118, allocations: 23.7 kB / 274.1 MB, free: 9.676 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.316e-05/0.1181, allocations: 29.86 kB / 274.1 MB, free: 9.645 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.1182, allocations: 4 kB / 274.1 MB, free: 9.641 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.784e-06/0.1182, allocations: 0 / 274.1 MB, free: 9.641 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.43e-06/0.1182, allocations: 3.938 kB / 274.1 MB, free: 9.637 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003785/0.1186, allocations: 277.4 kB / 274.4 MB, free: 9.316 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.1186, allocations: 0 / 274.4 MB, free: 9.316 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003135/0.1189, allocations: 31.92 kB / 274.4 MB, free: 9.285 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.486e-06/0.119, allocations: 11.95 kB / 274.4 MB, free: 9.273 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/0.119, allocations: 8 kB / 274.4 MB, free: 9.266 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.916e-06/0.119, allocations: 0 / 274.4 MB, free: 9.266 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.119, allocations: 4 kB / 274.4 MB, free: 9.262 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006237/0.1196, allocations: 250.7 kB / 274.7 MB, free: 9 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.599e-05/0.1197, allocations: 100.8 kB / 274.8 MB, free: 8.883 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.18e-05/0.1198, allocations: 4 kB / 274.8 MB, free: 8.879 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.12, allocations: 11.98 kB / 274.8 MB, free: 8.867 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.12, allocations: 12.05 kB / 274.8 MB, free: 8.855 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.536e-05/0.1201, allocations: 4 kB / 274.8 MB, free: 8.852 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002486/0.1203, allocations: 189.8 kB / 275 MB, free: 8.668 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.124e-06/0.1203, allocations: 0 / 275 MB, free: 8.668 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003779/0.1207, allocations: 63.77 kB / 275 MB, free: 8.605 MB / 234.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 (18): * Single equations (assignments): 17 * 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.0008637/0.1216, allocations: 298.5 kB / 275.3 MB, free: 8.352 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0005331/0.1221, allocations: 191.6 kB / 275.5 MB, free: 8.152 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 6.613e-06/0.1222, allocations: 8.125 kB / 275.5 MB, free: 8.145 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.1224, allocations: 59.91 kB / 275.6 MB, free: 8.086 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004182/0.1228, allocations: 32.66 kB / 275.6 MB, free: 8.055 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001455/0.1243, allocations: 0.6528 MB / 276.3 MB, free: 7.363 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003804/0.1247, allocations: 0.7518 MB / 277 MB, free: 6.586 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.1248, allocations: 27.42 kB / 277 MB, free: 6.559 MB / 234.7 MB Notification: Performance of SimCode: time 8.92e-07/0.1248, allocations: 0 / 277 MB, free: 6.559 MB / 234.7 MB Notification: Performance of Templates: time 0.008099/0.1329, allocations: 2.936 MB / 280 MB, free: 3.629 MB / 234.7 MB