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.863/1.863, allocations: 195 MB / 203.2 MB, free: 13.8 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 1.98e-05/2.011e-05, allocations: 4 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2518/0.2519, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.3965, allocations: 96.79 MB / 390.9 MB, free: 1.152 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002098/0.3967, allocations: 75.91 kB / 391 MB, free: 1.078 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.45/0.8467, allocations: 84.86 MB / 475.8 MB, free: 73.46 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.8467, allocations: 0 / 475.8 MB, free: 73.46 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.8468, allocations: 20 kB / 475.9 MB, free: 73.45 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.002733/0.8495, allocations: 1.613 MB / 477.5 MB, free: 71.78 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.8496, allocations: 8.031 kB / 477.5 MB, free: 71.77 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002732/0.8499, allocations: 197.7 kB / 477.7 MB, free: 71.57 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002134/0.852, allocations: 1.22 MB / 478.9 MB, free: 70.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.498e-05/0.8521, allocations: 8 kB / 478.9 MB, free: 70.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.407e-05/0.8522, allocations: 19.94 kB / 478.9 MB, free: 70.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007035/0.8529, allocations: 369.3 kB / 479.3 MB, free: 69.94 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007127/0.8536, allocations: 406.5 kB / 479.7 MB, free: 69.52 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.509e-05/0.8536, allocations: 0 / 479.7 MB, free: 69.52 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.7e-05/0.8537, allocations: 0 / 479.7 MB, free: 69.52 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.8537, allocations: 15.98 kB / 479.7 MB, free: 69.5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003368/0.8571, allocations: 1.59 MB / 481.3 MB, free: 67.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004762/0.8576, allocations: 269.9 kB / 481.5 MB, free: 67.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005206/0.8582, allocations: 349.9 kB / 481.9 MB, free: 67.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01787/0.8761, allocations: 18.17 MB / 0.4883 GB, free: 46.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003798/0.8765, allocations: 211.1 kB / 0.4885 GB, free: 46.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 3.902e-06/0.8765, allocations: 0 / 0.4885 GB, free: 46.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=29): time 0.001006/0.8775, allocations: 487.6 kB / 0.489 GB, free: 45.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.726e-05/0.8776, allocations: 166.2 kB / 0.4892 GB, free: 45.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/0.8793, allocations: 1.11 MB / 0.4903 GB, free: 44.48 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.065e-05/0.8794, allocations: 33.7 kB / 0.4903 GB, free: 44.44 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004898/0.8799, allocations: 0.631 MB / 0.4909 GB, free: 43.8 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001002/0.88, allocations: 94.69 kB / 0.491 GB, free: 43.71 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.377e-05/0.88, allocations: 4 kB / 0.491 GB, free: 43.7 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 6.527e-05/0.8801, allocations: 330.8 kB / 0.4913 GB, free: 43.37 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002259/0.8803, allocations: 97.12 kB / 0.4914 GB, free: 43.28 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003148/0.8807, allocations: 322.7 kB / 0.4917 GB, free: 42.86 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003282/0.881, allocations: 144.4 kB / 0.4918 GB, free: 42.72 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.223e-06/0.881, allocations: 0 / 0.4918 GB, free: 42.72 MB / 362.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0009598/0.882, allocations: 452.6 kB / 0.4923 GB, free: 42.27 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.882, allocations: 8 kB / 0.4923 GB, free: 42.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.47e-05/0.8821, allocations: 43.98 kB / 0.4923 GB, free: 42.22 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003597/0.8825, allocations: 136.8 kB / 0.4925 GB, free: 42.08 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.883, allocations: 115.8 kB / 0.4926 GB, free: 41.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006439/0.8837, allocations: 0.7052 MB / 0.4933 GB, free: 41.24 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001016/0.8847, allocations: 67.55 kB / 0.4933 GB, free: 41.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.77e-05/0.8848, allocations: 36.06 kB / 0.4934 GB, free: 41.14 MB / 362.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.0001589/0.885, allocations: 136.5 kB / 0.4935 GB, free: 41 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002081/0.8852, allocations: 197.7 kB / 0.4937 GB, free: 40.8 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002118/0.8873, allocations: 0.6387 MB / 0.4943 GB, free: 40.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.801e-06/0.8874, allocations: 8 kB / 0.4943 GB, free: 40.15 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.983e-06/0.8874, allocations: 0 / 0.4943 GB, free: 40.15 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.018e-06/0.8874, allocations: 3.984 kB / 0.4943 GB, free: 40.14 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002358/0.8898, allocations: 1.171 MB / 0.4955 GB, free: 38.92 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.553e-05/0.8899, allocations: 40 kB / 0.4955 GB, free: 38.88 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003361/0.8902, allocations: 63.94 kB / 0.4956 GB, free: 38.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002946/0.8906, allocations: 120.8 kB / 0.4957 GB, free: 38.7 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.778e-05/0.8906, allocations: 12 kB / 0.4957 GB, free: 38.69 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006219/0.8913, allocations: 0.6929 MB / 0.4964 GB, free: 37.97 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.423e-06/0.8913, allocations: 4.062 kB / 0.4964 GB, free: 37.96 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009796/0.8923, allocations: 0.6357 MB / 0.497 GB, free: 37.29 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005155/0.8928, allocations: 282.8 kB / 0.4973 GB, free: 36.99 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002173/0.893, allocations: 7.984 kB / 0.4973 GB, free: 36.98 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006953/0.8937, allocations: 31.97 kB / 0.4973 GB, free: 36.95 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.8939, allocations: 47.88 kB / 0.4973 GB, free: 36.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.043e-05/0.894, allocations: 24 kB / 0.4974 GB, free: 36.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001418/0.8954, allocations: 0.8366 MB / 0.4982 GB, free: 36.02 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.021e-06/0.8954, allocations: 0 / 0.4982 GB, free: 36.02 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001379/0.8968, allocations: 339.6 kB / 0.4985 GB, free: 35.69 MB / 362.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.001081/0.8979, allocations: 0.7299 MB / 0.4992 GB, free: 35.02 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009039/0.8988, allocations: 396.3 kB / 0.4996 GB, free: 34.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.903e-06/0.8989, allocations: 0 / 0.4996 GB, free: 34.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004535/0.8993, allocations: 235.5 kB / 0.4998 GB, free: 34.38 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001194/0.9006, allocations: 238.9 kB / 0.5 GB, free: 34.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003148/0.9037, allocations: 1.544 MB / 0.5016 GB, free: 32.55 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000617/0.9044, allocations: 1.184 MB / 0.5027 GB, free: 31.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.9046, allocations: 83.42 kB / 0.5028 GB, free: 31.26 MB / 362.7 MB Notification: Performance of SimCode: time 1.947e-06/0.9046, allocations: 3.938 kB / 0.5028 GB, free: 31.25 MB / 362.7 MB Notification: Performance of Templates: time 0.03333/0.938, allocations: 24.14 MB / 0.5264 GB, free: 7.109 MB / 362.7 MB