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.2_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadModel(Modelica): time 2.21/2.21, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.306e-05/3.311e-05, allocations: 11.92 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3052/0.3053, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003326/0.3086, allocations: 1.73 MB / 305 MB, free: 11.36 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002041/0.3107, allocations: 0.8081 MB / 305.8 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001971/0.311, allocations: 5.812 kB / 305.8 MB, free: 10.72 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003376/0.3113, allocations: 80.25 kB / 305.9 MB, free: 10.67 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003372/0.3117, allocations: 87.67 kB / 306 MB, free: 10.6 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003344/0.312, allocations: 70.06 kB / 306.1 MB, free: 10.55 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003389/0.3124, allocations: 152.7 kB / 306.2 MB, free: 10.44 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.3126, allocations: 52.75 kB / 306.3 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001746/0.3128, allocations: 79.52 kB / 306.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002276/0.313, allocations: 94.14 kB / 306.4 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.3132, allocations: 29.58 kB / 306.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.981e-05/0.3133, allocations: 8.031 kB / 306.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.819e-05/0.3134, allocations: 41.33 kB / 306.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.386e-05/0.3135, allocations: 21.44 kB / 306.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004283/0.3139, allocations: 207.7 kB / 306.7 MB, free: 10.15 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.57e-06/0.3139, allocations: 4 kB / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.314, allocations: 3.938 kB / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.286e-05/0.314, allocations: 0 / 306.7 MB, free: 10.14 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001091/0.3151, allocations: 0.5212 MB / 307.3 MB, free: 9.621 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.3151, allocations: 9.438 kB / 307.3 MB, free: 9.621 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002009/0.3154, allocations: 35.27 kB / 307.3 MB, free: 9.602 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004523/0.3158, allocations: 249.8 kB / 307.6 MB, free: 9.324 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.416e-05/0.3159, allocations: 12 kB / 307.6 MB, free: 9.312 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.798e-05/0.316, allocations: 20 kB / 307.6 MB, free: 9.293 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004913/0.3165, allocations: 165.3 kB / 307.7 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.763e-05/0.3165, allocations: 0 / 307.7 MB, free: 9.125 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.162e-05/0.3165, allocations: 8 kB / 307.8 MB, free: 9.117 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.708e-06/0.3165, allocations: 4 kB / 307.8 MB, free: 9.113 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003958/0.317, allocations: 111.9 kB / 307.9 MB, free: 9.004 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.3183, allocations: 0.578 MB / 308.4 MB, free: 8.375 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000493/0.3188, allocations: 170.4 kB / 308.6 MB, free: 8.199 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.323e-05/0.3189, allocations: 4 kB / 308.6 MB, free: 8.195 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003496/0.3193, allocations: 115.7 kB / 308.7 MB, free: 8.07 MB / 250.7 MB Notification: Performance of pre-optimization done (n=20): time 2.916e-06/0.3193, allocations: 0 / 308.7 MB, free: 8.07 MB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008171/0.3201, allocations: 240.3 kB / 309 MB, free: 7.832 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.164e-05/0.3202, allocations: 51.41 kB / 309 MB, free: 7.77 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003622/0.3205, allocations: 227.3 kB / 309.2 MB, free: 7.535 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.873e-05/0.3206, allocations: 33.7 kB / 309.3 MB, free: 7.496 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.3208, allocations: 202.8 kB / 309.5 MB, free: 7.297 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.995e-05/0.3209, allocations: 63.02 kB / 309.5 MB, free: 7.234 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.861e-05/0.3209, allocations: 4 kB / 309.5 MB, free: 7.23 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.3211, allocations: 322.8 kB / 309.8 MB, free: 6.906 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000218/0.3213, allocations: 60.2 kB / 309.9 MB, free: 6.848 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002505/0.3216, allocations: 95.86 kB / 310 MB, free: 6.742 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003161/0.3219, allocations: 102.9 kB / 310.1 MB, free: 6.637 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3219, allocations: 0 / 310.1 MB, free: 6.637 MB / 250.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0006855/0.3226, allocations: 252.8 kB / 310.3 MB, free: 6.379 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.272e-05/0.3227, allocations: 43.2 kB / 310.4 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.3227, allocations: 0 / 310.4 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.755e-05/0.3227, allocations: 0 / 310.4 MB, free: 6.332 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.3231, allocations: 51.92 kB / 310.4 MB, free: 6.281 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.3232, allocations: 4.094 kB / 310.4 MB, free: 6.277 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002513/0.3234, allocations: 31.67 kB / 310.5 MB, free: 6.246 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.452e-05/0.3235, allocations: 16 kB / 310.5 MB, free: 6.23 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 26 * 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.0002204/0.3237, allocations: 145.8 kB / 310.6 MB, free: 6.078 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.12e-05/0.3238, allocations: 19.81 kB / 310.7 MB, free: 6.059 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.391e-05/0.3239, allocations: 29.83 kB / 310.7 MB, free: 6.027 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.338e-06/0.3239, allocations: 4 kB / 310.7 MB, free: 6.023 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3239, allocations: 4 kB / 310.7 MB, free: 6.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.3239, allocations: 3.984 kB / 310.7 MB, free: 6.016 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004512/0.3244, allocations: 289.3 kB / 311 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3244, allocations: 0 / 311 MB, free: 5.684 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.3248, allocations: 35.98 kB / 311 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.074e-06/0.3248, allocations: 0 / 311 MB, free: 5.648 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.783e-05/0.3248, allocations: 4 kB / 311 MB, free: 5.645 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.017e-06/0.3249, allocations: 3.953 kB / 311 MB, free: 5.641 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.3249, allocations: 3.938 kB / 311 MB, free: 5.637 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009276/0.3258, allocations: 297.1 kB / 311.3 MB, free: 5.328 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002657/0.3261, allocations: 104.8 kB / 311.4 MB, free: 5.207 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/0.3263, allocations: 7.984 kB / 311.4 MB, free: 5.199 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001988/0.3265, allocations: 4 kB / 311.4 MB, free: 5.195 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.24e-05/0.3266, allocations: 19.94 kB / 311.4 MB, free: 5.176 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.3266, allocations: 4 kB / 311.5 MB, free: 5.172 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000289/0.3269, allocations: 185.6 kB / 311.6 MB, free: 4.992 MB / 250.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.3269, allocations: 64 / 311.6 MB, free: 4.992 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004405/0.3274, allocations: 67.94 kB / 311.7 MB, free: 4.926 MB / 250.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: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.00113/0.3285, allocations: 361.9 kB / 312.1 MB, free: 4.598 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007256/0.3293, allocations: 231.2 kB / 312.3 MB, free: 4.359 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.3293, allocations: 0 / 312.3 MB, free: 4.359 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002299/0.3295, allocations: 75.91 kB / 312.4 MB, free: 4.285 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004696/0.33, allocations: 36.36 kB / 312.4 MB, free: 4.25 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001576/0.3316, allocations: 0.6682 MB / 313.1 MB, free: 3.555 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004334/0.3321, allocations: 0.7517 MB / 313.8 MB, free: 2.773 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.3322, allocations: 23.44 kB / 313.8 MB, free: 2.75 MB / 250.7 MB Notification: Performance of SimCode: time 1.102e-06/0.3322, allocations: 0 / 313.8 MB, free: 2.75 MB / 250.7 MB Notification: Performance of Templates: time 0.008406/0.3407, allocations: 3.088 MB / 316.9 MB, free: 15.65 MB / 266.7 MB