Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadModel(Modelica): time 1.919/1.919, allocations: 225.8 MB / 239.3 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.215e-05/3.226e-05, allocations: 0 / 292.1 MB, free: 8.805 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09332/0.09338, allocations: 50.42 MB / 342.6 MB, free: 6.367 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4648/0.5583, allocations: 105.9 MB / 448.5 MB, free: 4.598 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000232/0.5585, allocations: 80.33 kB / 448.6 MB, free: 4.559 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2217/0.7803, allocations: 46.29 MB / 494.9 MB, free: 10.51 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.01e-06/0.7803, allocations: 0 / 494.9 MB, free: 10.51 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001742/0.7805, allocations: 55.88 kB / 494.9 MB, free: 10.45 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.005991/0.7865, allocations: 2.259 MB / 497.2 MB, free: 8.137 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.966e-05/0.7865, allocations: 12.03 kB / 497.2 MB, free: 8.125 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001609/0.7882, allocations: 300.7 kB / 497.5 MB, free: 7.828 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005047/0.7932, allocations: 1.588 MB / 499.1 MB, free: 6.18 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002344/0.7935, allocations: 160.2 kB / 499.2 MB, free: 6.02 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007205/0.7943, allocations: 211.9 kB / 499.4 MB, free: 5.812 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007143/0.8014, allocations: 2.683 MB / 0.4903 GB, free: 2.992 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.041e-05/0.8015, allocations: 7.906 kB / 0.4903 GB, free: 2.984 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000347/0.8019, allocations: 91.98 kB / 0.4904 GB, free: 2.895 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001547/0.8021, allocations: 100.2 kB / 0.4905 GB, free: 2.793 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005604/0.8077, allocations: 2.097 MB / 0.4926 GB, free: 0.6875 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01935/0.8271, allocations: 8.624 MB / 0.501 GB, free: 7.816 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00325/0.8304, allocations: 1.672 MB / 0.5026 GB, free: 6.023 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001715/0.8321, allocations: 0.7848 MB / 0.5034 GB, free: 5.242 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004331/0.8326, allocations: 223.1 kB / 0.5036 GB, free: 4.984 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.252e-05/0.8326, allocations: 43.56 kB / 0.5037 GB, free: 4.934 MB / 426.7 MB Notification: Performance of pre-optimization done (n=104): time 4.66e-06/0.8327, allocations: 4 kB / 0.5037 GB, free: 4.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=126): time 0.01841/0.8511, allocations: 5.978 MB / 0.5095 GB, free: 14.9 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.684e-05/0.8512, allocations: 64.41 kB / 0.5096 GB, free: 14.82 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002705/0.8539, allocations: 1.229 MB / 0.5108 GB, free: 13.59 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001777/0.8541, allocations: 57.7 kB / 0.5108 GB, free: 13.52 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009357/0.855, allocations: 0.9837 MB / 0.5118 GB, free: 12.53 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005608/0.8556, allocations: 437.7 kB / 0.5122 GB, free: 12.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.8558, allocations: 32 kB / 0.5122 GB, free: 12.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002522/0.856, allocations: 370.8 kB / 0.5126 GB, free: 11.69 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00156/0.8576, allocations: 0.6989 MB / 0.5133 GB, free: 10.99 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001925/0.8595, allocations: 1.064 MB / 0.5143 GB, free: 9.773 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.8614, allocations: 0.8716 MB / 0.5152 GB, free: 8.902 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.991e-06/0.8615, allocations: 0 / 0.5152 GB, free: 8.902 MB / 442.7 MB Notification: Performance of matching and sorting (n=187) (initialization): time 0.00579/0.8673, allocations: 2.389 MB / 0.5175 GB, free: 6.496 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.195e-05/0.8673, allocations: 8 kB / 0.5175 GB, free: 6.488 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.596e-05/0.8674, allocations: 12 kB / 0.5175 GB, free: 6.477 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002106/0.8695, allocations: 0.5795 MB / 0.5181 GB, free: 5.891 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001884/0.8714, allocations: 339.5 kB / 0.5184 GB, free: 5.559 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2516/1.123, allocations: 6.314 MB / 0.5246 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001744/1.125, allocations: 113 kB / 0.5247 GB, free: 114.4 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002023/1.125, allocations: 62.06 kB / 0.5247 GB, free: 114.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 50 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (158): * Single equations (assignments): 155 * 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: 2 * 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 {(6,72.2%) 22,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003664/1.125, allocations: 192.4 kB / 0.5249 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003984/1.126, allocations: 159.9 kB / 0.5251 GB, free: 114.3 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005397/1.131, allocations: 2.292 MB / 0.5273 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.628e-05/1.131, allocations: 13.5 kB / 0.5273 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.4e-05/1.131, allocations: 5.469 kB / 0.5273 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.203e-05/1.131, allocations: 6.797 kB / 0.5273 GB, free: 114.2 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01078/1.142, allocations: 4.722 MB / 0.5319 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-05/1.142, allocations: 3.031 kB / 0.5319 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001332/1.144, allocations: 215.4 kB / 0.5321 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002364/1.146, allocations: 0.6368 MB / 0.5328 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001728/1.146, allocations: 36.19 kB / 0.5328 GB, free: 113.7 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01135/1.158, allocations: 8.045 MB / 0.5407 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.592e-06/1.158, allocations: 10.28 kB / 0.5407 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007243/1.165, allocations: 3.422 MB / 0.544 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/1.166, allocations: 401.2 kB / 0.5444 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003496/1.166, allocations: 29.69 kB / 0.5444 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001179/1.167, allocations: 96.09 kB / 0.5445 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003127/1.168, allocations: 104 kB / 0.5446 GB, free: 109.2 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001346/1.168, allocations: 38.42 kB / 0.5446 GB, free: 109.2 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001832/1.17, allocations: 0.9478 MB / 0.5456 GB, free: 109.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.79e-06/1.17, allocations: 0 / 0.5456 GB, free: 109.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002224/1.172, allocations: 0.5262 MB / 0.5461 GB, free: 109.1 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,75.0%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005868/1.173, allocations: 317.7 kB / 0.5464 GB, free: 109 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004212/1.177, allocations: 2.212 MB / 0.5485 GB, free: 108.7 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 5.8e-06/1.177, allocations: 0 / 0.5485 GB, free: 108.7 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00302/1.18, allocations: 1.438 MB / 0.55 GB, free: 108.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002252/1.182, allocations: 379.8 kB / 0.5503 GB, free: 108.2 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007617/1.19, allocations: 3.763 MB / 0.554 GB, free: 106.7 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001766/1.192, allocations: 1.845 MB / 0.5558 GB, free: 105.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006696/1.192, allocations: 119.4 kB / 0.5559 GB, free: 105.8 MB / 442.7 MB Notification: Performance of SimCode: time 2.084e-06/1.192, allocations: 2.438 kB / 0.5559 GB, free: 105.8 MB / 442.7 MB Notification: Performance of Templates: time 0.06642/1.259, allocations: 56.75 MB / 0.6113 GB, free: 74.84 MB / 442.7 MB