Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_ResistiveBraking") Notification: Performance of loadModel(Modelica): time 1.882/1.882, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.213e-05/3.222e-05, allocations: 8 kB / 292.1 MB, free: 8.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08971/0.08976, allocations: 50.41 MB / 342.5 MB, free: 6.375 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3953/0.4851, allocations: 107.9 MB / 450.5 MB, free: 2.625 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000261/0.4854, allocations: 82.77 kB / 450.5 MB, free: 2.582 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3299/0.8154, allocations: 58.23 MB / 0.4968 GB, free: 12.43 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.164e-06/0.8154, allocations: 0 / 0.4968 GB, free: 12.43 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004935/0.816, allocations: 87.81 kB / 0.4969 GB, free: 12.34 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 739 * Number of variables: 739 Notification: Performance of Generate backend data structure: time 0.01518/0.8312, allocations: 2.884 MB / 0.4997 GB, free: 9.395 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.432e-05/0.8313, allocations: 8.031 kB / 0.4997 GB, free: 9.387 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00326/0.8346, allocations: 415.5 kB / 0.5001 GB, free: 8.977 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01113/0.8457, allocations: 2.044 MB / 0.5021 GB, free: 6.879 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004853/0.8463, allocations: 213.7 kB / 0.5023 GB, free: 6.668 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001399/0.8477, allocations: 287.9 kB / 0.5026 GB, free: 6.387 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01682/0.8645, allocations: 3.713 MB / 0.5062 GB, free: 2.512 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.233e-05/0.8647, allocations: 15.84 kB / 0.5063 GB, free: 2.496 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004129/0.8651, allocations: 120 kB / 0.5064 GB, free: 2.379 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001507/0.8652, allocations: 117.5 kB / 0.5065 GB, free: 2.262 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00708/0.8723, allocations: 2.951 MB / 0.5094 GB, free: 15.3 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02491/0.8973, allocations: 11.78 MB / 0.5209 GB, free: 3.215 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2503/1.148, allocations: 3.637 MB / 0.5244 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002731/1.15, allocations: 1.131 MB / 0.5255 GB, free: 105.8 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003363/1.151, allocations: 137 kB / 0.5257 GB, free: 105.7 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.736e-05/1.151, allocations: 49.81 kB / 0.5257 GB, free: 105.6 MB / 442.7 MB Notification: Performance of pre-optimization done (n=139): time 5.567e-06/1.151, allocations: 2 kB / 0.5257 GB, free: 105.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=160): time 0.01753/1.168, allocations: 6.502 MB / 0.5321 GB, free: 104.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.304e-05/1.168, allocations: 68.59 kB / 0.5321 GB, free: 104.9 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003752/1.172, allocations: 1.78 MB / 0.5339 GB, free: 104.6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000283/1.173, allocations: 55.39 kB / 0.5339 GB, free: 104.6 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000876/1.173, allocations: 1.273 MB / 0.5352 GB, free: 104.1 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005196/1.174, allocations: 0.543 MB / 0.5357 GB, free: 103.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001428/1.174, allocations: 42.78 kB / 0.5357 GB, free: 103.8 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001503/1.174, allocations: 381.8 kB / 0.5361 GB, free: 103.5 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001809/1.176, allocations: 0.8817 MB / 0.537 GB, free: 103.5 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002044/1.178, allocations: 1.324 MB / 0.5382 GB, free: 103 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002179/1.18, allocations: 1.115 MB / 0.5393 GB, free: 103 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/1.18, allocations: 7.062 kB / 0.5393 GB, free: 103 MB / 442.7 MB Notification: Performance of matching and sorting (n=238) (initialization): time 0.007259/1.188, allocations: 3.192 MB / 0.5425 GB, free: 102.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.659e-05/1.188, allocations: 9.75 kB / 0.5425 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.605e-05/1.188, allocations: 16.88 kB / 0.5425 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003642/1.191, allocations: 1.034 MB / 0.5435 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001653/1.193, allocations: 335.3 kB / 0.5438 GB, free: 102.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01917/1.212, allocations: 19.19 MB / 0.5626 GB, free: 89.73 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002064/1.214, allocations: 104.3 kB / 0.5627 GB, free: 89.73 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002057/1.215, allocations: 69.16 kB / 0.5627 GB, free: 89.73 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 61 * Number of states: 0 () * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (186): * Single equations (assignments): 176 * 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: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(1,100.0%) 4,(1,100.0%) 3,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004208/1.215, allocations: 225.3 kB / 0.5629 GB, free: 89.61 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004145/1.216, allocations: 220.8 kB / 0.5631 GB, free: 89.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005525/1.221, allocations: 2.789 MB / 0.5659 GB, free: 88.59 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.651e-05/1.221, allocations: 13.88 kB / 0.5659 GB, free: 88.59 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.485e-05/1.221, allocations: 10.5 kB / 0.5659 GB, free: 88.59 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.126e-05/1.221, allocations: 7.781 kB / 0.5659 GB, free: 88.59 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01239/1.234, allocations: 5.996 MB / 0.5718 GB, free: 86.22 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.358e-05/1.234, allocations: 6.688 kB / 0.5718 GB, free: 86.22 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009785/1.235, allocations: 190.3 kB / 0.5719 GB, free: 86.21 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003018/1.238, allocations: 0.9206 MB / 0.5728 GB, free: 85.95 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001742/1.238, allocations: 41.72 kB / 0.5729 GB, free: 85.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0174/1.255, allocations: 17.09 MB / 0.5896 GB, free: 72.14 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.045e-06/1.255, allocations: 3.188 kB / 0.5896 GB, free: 72.14 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007757/1.263, allocations: 4.117 MB / 0.5936 GB, free: 70.3 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001429/1.265, allocations: 495.4 kB / 0.5941 GB, free: 70 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004786/1.265, allocations: 34.14 kB / 0.5941 GB, free: 69.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001449/1.267, allocations: 118.4 kB / 0.5942 GB, free: 69.95 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003891/1.267, allocations: 150.6 kB / 0.5944 GB, free: 69.93 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001498/1.267, allocations: 43.19 kB / 0.5944 GB, free: 69.92 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002417/1.27, allocations: 1.347 MB / 0.5957 GB, free: 69.38 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.8e-07/1.27, allocations: 0 / 0.5957 GB, free: 69.38 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003334/1.273, allocations: 0.7325 MB / 0.5964 GB, free: 69.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 4 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],inertiaLoad.phi) * Number of discrete variables: 2 (booleanReplicator2.y[3],booleanReplicator3.y[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 104 * 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: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 9 {(5,76.0%) 20,(1,100.0%) 1,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(1,100.0%) 3,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007276/1.274, allocations: 418.8 kB / 0.5968 GB, free: 69.16 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.005521/1.279, allocations: 3.417 MB / 0.6002 GB, free: 67.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.635e-06/1.279, allocations: 3.844 kB / 0.6002 GB, free: 67.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003062/1.282, allocations: 2.154 MB / 0.6023 GB, free: 65.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00345/1.286, allocations: 0.6371 MB / 0.6029 GB, free: 65.77 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00931/1.295, allocations: 4.604 MB / 0.6074 GB, free: 63.89 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002355/1.298, allocations: 2.32 MB / 0.6097 GB, free: 62.89 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006788/1.298, allocations: 143.1 kB / 0.6098 GB, free: 62.88 MB / 442.7 MB Notification: Performance of SimCode: time 1.9e-06/1.298, allocations: 0 / 0.6098 GB, free: 62.88 MB / 442.7 MB Notification: Performance of Templates: time 0.4222/1.721, allocations: 165.6 MB / 0.7716 GB, free: 87.51 MB / 458.7 MB