Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.859/1.859, allocations: 225.8 MB / 238.8 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.318e-05/2.338e-05, allocations: 2.969 kB / 292.1 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09015/0.09019, allocations: 50.41 MB / 342.5 MB, free: 5.902 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4092/0.4995, allocations: 104.6 MB / 447.1 MB, free: 5.895 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002199/0.4997, allocations: 68.78 kB / 447.2 MB, free: 5.859 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.949/1.449, allocations: 219.8 MB / 0.6514 GB, free: 36.78 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.922e-06/1.449, allocations: 0 / 0.6514 GB, free: 36.78 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.000225/1.449, allocations: 84 kB / 0.6514 GB, free: 36.7 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.006593/1.456, allocations: 4.655 MB / 0.656 GB, free: 31.98 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/1.456, allocations: 12.03 kB / 0.656 GB, free: 31.97 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008299/1.457, allocations: 0.743 MB / 0.6567 GB, free: 31.22 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007906/1.465, allocations: 4.477 MB / 0.6611 GB, free: 26.66 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.529e-05/1.465, allocations: 73.94 kB / 0.6612 GB, free: 26.59 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002936/1.465, allocations: 95.91 kB / 0.6613 GB, free: 26.49 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00254/1.467, allocations: 1.437 MB / 0.6627 GB, free: 24.98 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.693e-05/1.468, allocations: 0 / 0.6627 GB, free: 24.98 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001734/1.468, allocations: 40 kB / 0.6627 GB, free: 24.94 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.664e-05/1.468, allocations: 39.97 kB / 0.6627 GB, free: 24.9 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002499/1.47, allocations: 1.344 MB / 0.6641 GB, free: 23.56 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01082/1.481, allocations: 5.855 MB / 0.6698 GB, free: 17.61 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/1.483, allocations: 0.8747 MB / 0.6706 GB, free: 16.73 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001594/1.484, allocations: 1.16 MB / 0.6718 GB, free: 15.57 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3341/1.818, allocations: 71.68 MB / 0.7418 GB, free: 21.3 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009416/1.819, allocations: 0.5025 MB / 0.7422 GB, free: 21.25 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 4.294e-06/1.819, allocations: 0 / 0.7422 GB, free: 21.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.002686/1.822, allocations: 1.458 MB / 0.7437 GB, free: 20.85 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001095/1.822, allocations: 484.8 kB / 0.7441 GB, free: 20.28 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008101/1.83, allocations: 4.764 MB / 0.7488 GB, free: 19.82 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001793/1.831, allocations: 45.77 kB / 0.7488 GB, free: 19.79 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002815/1.833, allocations: 2.939 MB / 0.7517 GB, free: 19.45 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003314/1.834, allocations: 298.7 kB / 0.752 GB, free: 19.3 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001115/1.834, allocations: 31.81 kB / 0.752 GB, free: 19.3 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0006332/1.834, allocations: 365.8 kB / 0.7524 GB, free: 35 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007746/1.835, allocations: 347.9 kB / 0.7527 GB, free: 34.99 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001128/1.836, allocations: 1.117 MB / 0.7538 GB, free: 34 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/1.838, allocations: 0.5137 MB / 0.7543 GB, free: 33.99 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.571e-05/1.838, allocations: 7.906 kB / 0.7543 GB, free: 33.99 MB / 458.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003827/1.841, allocations: 2.014 MB / 0.7563 GB, free: 33.6 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.374e-05/1.841, allocations: 15.56 kB / 0.7563 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002293/1.842, allocations: 162.8 kB / 0.7564 GB, free: 33.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.067e-05/1.842, allocations: 40.77 kB / 0.7565 GB, free: 33.59 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001528/1.843, allocations: 373.7 kB / 0.7568 GB, free: 33.59 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.421e-05/1.843, allocations: 47.27 kB / 0.7569 GB, free: 33.59 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003047/1.846, allocations: 207 kB / 0.7571 GB, free: 33.54 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002275/1.847, allocations: 126 kB / 0.7572 GB, free: 33.54 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0003473/1.847, allocations: 213.8 kB / 0.7574 GB, free: 33.44 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007117/1.848, allocations: 0.7139 MB / 0.7581 GB, free: 33.07 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006717/1.854, allocations: 2.123 MB / 0.7602 GB, free: 32.94 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/1.854, allocations: 7.828 kB / 0.7602 GB, free: 32.94 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.311e-06/1.855, allocations: 8.375 kB / 0.7602 GB, free: 32.93 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.569e-06/1.855, allocations: 0 / 0.7602 GB, free: 32.93 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006814/1.861, allocations: 3.72 MB / 0.7638 GB, free: 32.47 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002006/1.862, allocations: 146 kB / 0.764 GB, free: 32.46 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009202/1.863, allocations: 163 kB / 0.7641 GB, free: 32.46 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.026e-05/1.863, allocations: 2.969 kB / 0.7641 GB, free: 32.46 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001192/1.863, allocations: 57.66 kB / 0.7642 GB, free: 32.46 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.144e-06/1.863, allocations: 3.812 kB / 0.7642 GB, free: 32.46 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.996e-06/1.863, allocations: 5.172 kB / 0.7642 GB, free: 32.46 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003291/1.866, allocations: 2.09 MB / 0.7662 GB, free: 31.77 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001755/1.868, allocations: 0.9292 MB / 0.7671 GB, free: 31.24 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007711/1.869, allocations: 18.12 kB / 0.7671 GB, free: 31.24 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001783/1.87, allocations: 51.84 kB / 0.7672 GB, free: 31.24 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00023/1.871, allocations: 99.03 kB / 0.7673 GB, free: 31.24 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001475/1.871, allocations: 66.56 kB / 0.7673 GB, free: 31.24 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006174/1.877, allocations: 3.619 MB / 0.7709 GB, free: 30.95 MB / 458.7 MB Notification: Performance of sort global known variables: time 9.29e-07/1.877, allocations: 3.406 kB / 0.7709 GB, free: 30.95 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003142/1.88, allocations: 1.166 MB / 0.772 GB, free: 30.93 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.vinternal) * 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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 6 * 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.001935/1.882, allocations: 1.232 MB / 0.7732 GB, free: 30.83 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002363/1.884, allocations: 1.288 MB / 0.7745 GB, free: 30.57 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.089e-06/1.885, allocations: 3.344 kB / 0.7745 GB, free: 30.57 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001097/1.886, allocations: 0.71 MB / 0.7752 GB, free: 30.32 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005229/1.891, allocations: 1.157 MB / 0.7763 GB, free: 30.25 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/1.901, allocations: 6.001 MB / 0.7822 GB, free: 28.38 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002526/1.904, allocations: 2.711 MB / 0.7848 GB, free: 27.6 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003711/1.908, allocations: 0.7281 MB / 0.7855 GB, free: 27.55 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00101/1.909, allocations: 301.8 kB / 0.7858 GB, free: 27.55 MB / 458.7 MB Notification: Performance of SimCode: time 2.255e-06/1.909, allocations: 0 / 0.7858 GB, free: 27.55 MB / 458.7 MB Notification: Performance of Templates: time 0.1592/2.068, allocations: 55.78 MB / 0.8403 GB, free: 6.699 MB / 474.7 MB