Running command: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking,tolerance=1e-06,outputFormat="empty",numberOfIntervals=16000,variableFilter="",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Braking") Notification: Performance of loadModel(Modelica): time 1.767/1.767, allocations: 194.9 MB / 208.4 MB, free: 3.242 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.706e-05/3.721e-05, allocations: 7.938 kB / 255.4 MB, free: 3.176 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07883/0.0789, allocations: 44.5 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3766/0.4555, allocations: 109.5 MB / 409.4 MB, free: 14.22 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002587/0.4559, allocations: 89.72 kB / 409.5 MB, free: 14.2 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2868/0.7427, allocations: 76.77 MB / 486.2 MB, free: 1.977 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.389e-06/0.7428, allocations: 0 / 486.2 MB, free: 1.977 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0003624/0.7431, allocations: 87.92 kB / 486.3 MB, free: 1.891 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 817 * Number of variables: 817 Notification: Performance of Generate backend data structure: time 0.01186/0.755, allocations: 3.184 MB / 489.5 MB, free: 14.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.958e-05/0.7551, allocations: 16.03 kB / 489.5 MB, free: 14.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004591/0.7597, allocations: 0.5897 MB / 490.1 MB, free: 14.03 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0119/0.7717, allocations: 3.139 MB / 493.3 MB, free: 10.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003798/0.7721, allocations: 234.2 kB / 493.5 MB, free: 10.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001252/0.7734, allocations: 307.9 kB / 493.8 MB, free: 10.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/0.7868, allocations: 4.015 MB / 497.8 MB, free: 6.129 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001518/0.787, allocations: 8 kB / 497.8 MB, free: 6.121 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009724/0.788, allocations: 136 kB / 497.9 MB, free: 5.988 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002015/0.7882, allocations: 134.1 kB / 498.1 MB, free: 5.855 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01029/0.7985, allocations: 3.218 MB / 0.4895 GB, free: 2.633 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03608/0.8347, allocations: 13.82 MB / 0.503 GB, free: 4.434 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.244/1.079, allocations: 5.827 MB / 0.5087 GB, free: 68.03 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002884/1.082, allocations: 1.327 MB / 0.51 GB, free: 68.02 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008464/1.09, allocations: 3.178 MB / 0.5131 GB, free: 67.54 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.196e-05/1.09, allocations: 51.41 kB / 0.5132 GB, free: 67.5 MB / 394.7 MB Notification: Performance of pre-optimization done (n=137): time 5.688e-06/1.09, allocations: 1.219 kB / 0.5132 GB, free: 67.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=141): time 0.01088/1.101, allocations: 4.538 MB / 0.5176 GB, free: 66.6 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.717e-05/1.101, allocations: 92.36 kB / 0.5177 GB, free: 66.5 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00403/1.105, allocations: 1.67 MB / 0.5193 GB, free: 66.28 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002698/1.106, allocations: 50.27 kB / 0.5194 GB, free: 66.25 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001054/1.107, allocations: 1.379 MB / 0.5207 GB, free: 65.7 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006298/1.107, allocations: 483.1 kB / 0.5212 GB, free: 65.46 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/1.108, allocations: 35.94 kB / 0.5212 GB, free: 65.46 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/1.108, allocations: 382.4 kB / 0.5216 GB, free: 65.15 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001592/1.109, allocations: 0.715 MB / 0.5223 GB, free: 65.15 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001916/1.111, allocations: 1.227 MB / 0.5235 GB, free: 64.54 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002015/1.113, allocations: 0.9119 MB / 0.5244 GB, free: 64.53 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.953e-05/1.113, allocations: 7.297 kB / 0.5244 GB, free: 64.53 MB / 394.7 MB Notification: Performance of matching and sorting (n=222) (initialization): time 0.00567/1.119, allocations: 2.501 MB / 0.5268 GB, free: 64.29 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001311/1.12, allocations: 6.359 MB / 0.533 GB, free: 57.68 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.728e-05/1.12, allocations: 15.81 kB / 0.533 GB, free: 57.68 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001815/1.122, allocations: 0.5119 MB / 0.5335 GB, free: 57.65 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001947/1.124, allocations: 369.2 kB / 0.5339 GB, free: 57.65 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008805/1.133, allocations: 7.238 MB / 0.541 GB, free: 53.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002313/1.135, allocations: 89.73 kB / 0.541 GB, free: 53.66 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003406/1.136, allocations: 75.62 kB / 0.5411 GB, free: 53.66 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.337e-05/1.136, allocations: 3.875 kB / 0.5411 GB, free: 53.66 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005158/1.141, allocations: 2.424 MB / 0.5435 GB, free: 53.49 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.301e-05/1.141, allocations: 15.5 kB / 0.5435 GB, free: 53.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/1.143, allocations: 0.5087 MB / 0.544 GB, free: 53.46 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/1.145, allocations: 367.5 kB / 0.5443 GB, free: 53.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008675/1.153, allocations: 7.291 MB / 0.5515 GB, free: 49.47 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0013/1.155, allocations: 88.73 kB / 0.5516 GB, free: 49.47 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002132/1.155, allocations: 75.56 kB / 0.5516 GB, free: 49.47 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 73 * Number of states: 0 () * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (187): * Single equations (assignments): 183 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 8,(1,100.0%) 1} * Non-linear torn systems: 1 {6 20} Notification: Performance of prepare postOptimizeDAE: time 0.0004823/1.155, allocations: 217.6 kB / 0.5518 GB, free: 49.36 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005922/1.156, allocations: 213.5 kB / 0.552 GB, free: 49.25 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005021/1.161, allocations: 2.429 MB / 0.5544 GB, free: 48.91 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.74e-05/1.161, allocations: 11.94 kB / 0.5544 GB, free: 48.91 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.397e-05/1.161, allocations: 6.375 kB / 0.5544 GB, free: 48.91 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.918e-05/1.161, allocations: 12.41 kB / 0.5544 GB, free: 48.91 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/1.173, allocations: 5.282 MB / 0.5596 GB, free: 47.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-05/1.173, allocations: 3.156 kB / 0.5596 GB, free: 47.21 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001249/1.174, allocations: 181.3 kB / 0.5598 GB, free: 47.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002047/1.176, allocations: 0.646 MB / 0.5604 GB, free: 46.99 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/1.177, allocations: 36.98 kB / 0.5604 GB, free: 46.97 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01313/1.19, allocations: 11.28 MB / 0.5715 GB, free: 38.1 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.721e-06/1.19, allocations: 3.875 kB / 0.5715 GB, free: 38.1 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006845/1.197, allocations: 3.656 MB / 0.575 GB, free: 36.18 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001409/1.198, allocations: 474.8 kB / 0.5755 GB, free: 35.86 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004441/1.199, allocations: 33.75 kB / 0.5755 GB, free: 35.84 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001411/1.2, allocations: 77.06 kB / 0.5756 GB, free: 35.82 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003474/1.2, allocations: 118.8 kB / 0.5757 GB, free: 35.8 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001323/1.201, allocations: 39.36 kB / 0.5757 GB, free: 35.8 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002815/1.203, allocations: 1.277 MB / 0.577 GB, free: 35.25 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.106e-06/1.203, allocations: 0 / 0.577 GB, free: 35.25 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005866/1.209, allocations: 1.103 MB / 0.5781 GB, free: 35.15 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 5 (smpm.inertiaRotor.phi,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.stator.zeroInductor.i0,inertiaLoad.w) * Number of discrete variables: 6 (diodeBridge2mPulse.diode_p.idealDiode[1].off,diodeBridge2mPulse.diode_p.idealDiode[2].off,diodeBridge2mPulse.diode_p.idealDiode[3].off,diodeBridge2mPulse.diode_n.idealDiode[1].off,diodeBridge2mPulse.diode_n.idealDiode[2].off,diodeBridge2mPulse.diode_n.idealDiode[3].off) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 85 * 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: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 8,(1,100.0%) 8,(2,100.0%) 8} * Non-linear torn systems: 1 {6 20} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009229/1.21, allocations: 0.5077 MB / 0.5786 GB, free: 34.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.007652/1.218, allocations: 3.963 MB / 0.5824 GB, free: 33 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 9.685e-06/1.218, allocations: 0 / 0.5824 GB, free: 33 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00317/1.221, allocations: 1.699 MB / 0.5841 GB, free: 32 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003695/1.225, allocations: 0.5865 MB / 0.5847 GB, free: 31.84 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01194/1.237, allocations: 4.716 MB / 0.5893 GB, free: 29.83 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00273/1.24, allocations: 2.338 MB / 0.5915 GB, free: 28.79 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007335/1.24, allocations: 142.2 kB / 0.5917 GB, free: 28.78 MB / 394.7 MB Notification: Performance of SimCode: time 1.676e-06/1.24, allocations: 0 / 0.5917 GB, free: 28.78 MB / 394.7 MB Notification: Performance of Templates: time 0.3735/1.614, allocations: 105.8 MB / 0.695 GB, free: 84.52 MB / 410.7 MB