Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 1.865/1.865, allocations: 194.9 MB / 208.4 MB, free: 3.172 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.903e-05/2.912e-05, allocations: 7.984 kB / 255.4 MB, free: 3.168 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07466/0.0747, allocations: 44.49 MB / 299.9 MB, free: 6.617 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3676/0.4424, allocations: 97.47 MB / 397.3 MB, free: 18.6 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002086/0.4426, allocations: 73.45 kB / 397.4 MB, free: 18.6 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2573/0.6999, allocations: 89.31 MB / 486.7 MB, free: 1.441 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.42e-06/0.7, allocations: 0 / 486.7 MB, free: 1.441 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.078e-05/0.7, allocations: 24 kB / 486.7 MB, free: 1.418 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003322/0.7034, allocations: 1.61 MB / 488.3 MB, free: 15.75 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.7034, allocations: 12.03 kB / 488.3 MB, free: 15.74 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003195/0.7038, allocations: 193.7 kB / 488.5 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002484/0.7063, allocations: 1.227 MB / 489.8 MB, free: 14.25 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.479e-05/0.7063, allocations: 16.56 kB / 489.8 MB, free: 14.24 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.7064, allocations: 35.97 kB / 489.8 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009774/0.7074, allocations: 438.4 kB / 490.2 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.7075, allocations: 0 / 490.2 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.468e-05/0.7075, allocations: 12 kB / 490.3 MB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.049e-05/0.7076, allocations: 15.98 kB / 490.3 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008325/0.7084, allocations: 369.3 kB / 490.6 MB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003844/0.7123, allocations: 1.651 MB / 492.3 MB, free: 11.64 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006274/0.7129, allocations: 283.2 kB / 492.6 MB, free: 11.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006916/0.7136, allocations: 361.9 kB / 492.9 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02506/0.7387, allocations: 18.18 MB / 0.4991 GB, free: 6.242 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004881/0.7392, allocations: 207.2 kB / 0.4993 GB, free: 6.027 MB / 394.7 MB Notification: Performance of pre-optimization done (n=29): time 6.213e-06/0.7393, allocations: 4 kB / 0.4993 GB, free: 6.023 MB / 394.7 MB Notification: Performance of matching and sorting (n=29): time 0.001187/0.7405, allocations: 0.4884 MB / 0.4998 GB, free: 5.523 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.7406, allocations: 170.2 kB / 0.4999 GB, free: 5.32 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002232/0.7429, allocations: 1.205 MB / 0.5011 GB, free: 4.078 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.381e-05/0.7429, allocations: 37.7 kB / 0.5012 GB, free: 4.035 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006908/0.7437, allocations: 0.6309 MB / 0.5018 GB, free: 3.402 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/0.7438, allocations: 98.73 kB / 0.5019 GB, free: 3.305 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.708e-05/0.7438, allocations: 8 kB / 0.5019 GB, free: 3.297 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001745/0.744, allocations: 334.8 kB / 0.5022 GB, free: 2.961 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003011/0.7443, allocations: 109.1 kB / 0.5023 GB, free: 2.855 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004887/0.7448, allocations: 326.7 kB / 0.5026 GB, free: 2.434 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003785/0.7452, allocations: 156.3 kB / 0.5028 GB, free: 2.281 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.324e-06/0.7453, allocations: 0 / 0.5028 GB, free: 2.281 MB / 394.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001214/0.7465, allocations: 496.2 kB / 0.5032 GB, free: 1.789 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.7465, allocations: 9.25 kB / 0.5032 GB, free: 1.781 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.255e-05/0.7466, allocations: 43.98 kB / 0.5033 GB, free: 1.738 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004291/0.7471, allocations: 132.8 kB / 0.5034 GB, free: 1.605 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005572/0.7476, allocations: 120 kB / 0.5035 GB, free: 1.488 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008525/0.7485, allocations: 0.6849 MB / 0.5042 GB, free: 0.7773 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009717/0.7495, allocations: 79.56 kB / 0.5043 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.754e-05/0.7496, allocations: 36 kB / 0.5043 GB, free: 0.6641 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 52 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000198/0.7498, allocations: 144 kB / 0.5044 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002689/0.7501, allocations: 193.7 kB / 0.5046 GB, free: 336 kB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002392/0.7525, allocations: 0.6802 MB / 0.5053 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.306e-06/0.7525, allocations: 0 / 0.5053 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.857e-06/0.7525, allocations: 0 / 0.5053 GB, free: 15.64 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.7526, allocations: 11.89 kB / 0.5053 GB, free: 15.63 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002639/0.7552, allocations: 1.234 MB / 0.5065 GB, free: 14.32 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.047e-05/0.7553, allocations: 36.03 kB / 0.5065 GB, free: 14.29 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003432/0.7557, allocations: 55.95 kB / 0.5066 GB, free: 14.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003412/0.756, allocations: 120.8 kB / 0.5067 GB, free: 14.11 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.774e-05/0.7561, allocations: 23.98 kB / 0.5067 GB, free: 14.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000814/0.7569, allocations: 0.6772 MB / 0.5074 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.807e-06/0.7569, allocations: 0 / 0.5074 GB, free: 13.39 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001213/0.7582, allocations: 0.6454 MB / 0.508 GB, free: 12.7 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005862/0.7588, allocations: 282.7 kB / 0.5083 GB, free: 12.4 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002211/0.759, allocations: 8 kB / 0.5083 GB, free: 12.39 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006841/0.7597, allocations: 43.95 kB / 0.5083 GB, free: 12.35 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001449/0.7599, allocations: 39.95 kB / 0.5084 GB, free: 12.31 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.812e-05/0.7599, allocations: 23.98 kB / 0.5084 GB, free: 12.29 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001784/0.7617, allocations: 0.9314 MB / 0.5093 GB, free: 11.33 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.53e-07/0.7618, allocations: 3.938 kB / 0.5093 GB, free: 11.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001343/0.7631, allocations: 363.6 kB / 0.5097 GB, free: 10.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0012/0.7643, allocations: 0.6451 MB / 0.5103 GB, free: 10.31 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.7654, allocations: 400.8 kB / 0.5107 GB, free: 9.906 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.269e-06/0.7654, allocations: 4.125 kB / 0.5107 GB, free: 9.902 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005749/0.766, allocations: 247.2 kB / 0.5109 GB, free: 9.648 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001222/0.7673, allocations: 231.1 kB / 0.5111 GB, free: 9.418 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00355/0.7708, allocations: 1.573 MB / 0.5127 GB, free: 7.801 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001008/0.7719, allocations: 1.18 MB / 0.5138 GB, free: 6.59 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002357/0.7721, allocations: 79.44 kB / 0.5139 GB, free: 6.512 MB / 410.7 MB Notification: Performance of SimCode: time 1.88e-06/0.7721, allocations: 0 / 0.5139 GB, free: 6.512 MB / 410.7 MB Notification: Performance of Templates: time 0.2527/1.025, allocations: 24.12 MB / 0.5375 GB, free: 99.8 MB / 410.7 MB