Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.945/1.945, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.57e-05/6.607e-05, allocations: 4 kB / 292.1 MB, free: 8.824 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09936/0.09947, allocations: 50.42 MB / 342.5 MB, free: 6.398 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4326/0.5321, allocations: 104.6 MB / 447.2 MB, free: 5.715 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002104/0.5323, allocations: 75.8 kB / 447.3 MB, free: 5.676 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.8893/1.422, allocations: 219.8 MB / 0.6514 GB, free: 36.98 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.605e-06/1.422, allocations: 0 / 0.6514 GB, free: 36.98 MB / 442.7 MB Notification: Performance of Transformations before backend: time 0.0003872/1.422, allocations: 88 kB / 0.6515 GB, free: 36.9 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.009032/1.431, allocations: 4.655 MB / 0.656 GB, free: 32.18 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/1.431, allocations: 12.02 kB / 0.656 GB, free: 32.17 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001221/1.432, allocations: 0.743 MB / 0.6568 GB, free: 31.42 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01008/1.443, allocations: 4.477 MB / 0.6611 GB, free: 26.86 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.309e-05/1.443, allocations: 77.94 kB / 0.6612 GB, free: 26.78 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003454/1.443, allocations: 99.89 kB / 0.6613 GB, free: 26.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/1.446, allocations: 1.433 MB / 0.6627 GB, free: 25.18 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.036e-05/1.446, allocations: 3.984 kB / 0.6627 GB, free: 25.17 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/1.446, allocations: 40 kB / 0.6628 GB, free: 25.13 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.904e-05/1.446, allocations: 35.98 kB / 0.6628 GB, free: 25.1 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002476/1.448, allocations: 1.352 MB / 0.6641 GB, free: 23.75 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01263/1.461, allocations: 5.847 MB / 0.6698 GB, free: 17.8 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001582/1.463, allocations: 0.8792 MB / 0.6707 GB, free: 16.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001661/1.464, allocations: 1.16 MB / 0.6718 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3409/1.805, allocations: 71.68 MB / 0.7418 GB, free: 22.91 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009057/1.806, allocations: 0.5074 MB / 0.7423 GB, free: 22.85 MB / 442.7 MB Notification: Performance of pre-optimization done (n=85): time 5.326e-06/1.806, allocations: 0 / 0.7423 GB, free: 22.85 MB / 442.7 MB Notification: Performance of matching and sorting (n=85): time 0.002774/1.809, allocations: 1.454 MB / 0.7437 GB, free: 22.45 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001114/1.809, allocations: 483.2 kB / 0.7442 GB, free: 21.88 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00901/1.818, allocations: 4.762 MB / 0.7488 GB, free: 21.42 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001929/1.819, allocations: 46.5 kB / 0.7489 GB, free: 21.39 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002278/1.821, allocations: 2.368 MB / 0.7512 GB, free: 21.01 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003879/1.821, allocations: 300.5 kB / 0.7515 GB, free: 20.86 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/1.821, allocations: 29.94 kB / 0.7515 GB, free: 20.86 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000103/1.821, allocations: 368.3 kB / 0.7519 GB, free: 20.55 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000754/1.822, allocations: 344.5 kB / 0.7522 GB, free: 20.55 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001074/1.823, allocations: 1.112 MB / 0.7533 GB, free: 19.56 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00101/1.824, allocations: 0.5161 MB / 0.7538 GB, free: 19.55 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.597e-05/1.824, allocations: 9.75 kB / 0.7538 GB, free: 19.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002882/1.827, allocations: 1.416 MB / 0.7552 GB, free: 19.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.367e-05/1.827, allocations: 17.95 kB / 0.7552 GB, free: 19.46 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002247/1.828, allocations: 162.1 kB / 0.7553 GB, free: 19.46 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.172e-05/1.828, allocations: 44.39 kB / 0.7554 GB, free: 19.46 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001466/1.829, allocations: 369 kB / 0.7557 GB, free: 19.46 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.55e-05/1.829, allocations: 51.47 kB / 0.7558 GB, free: 19.46 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003377/1.833, allocations: 204.4 kB / 0.756 GB, free: 19.41 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003133/1.833, allocations: 122.1 kB / 0.7561 GB, free: 19.41 MB / 442.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.0003541/1.833, allocations: 216.2 kB / 0.7563 GB, free: 19.31 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/1.834, allocations: 0.7139 MB / 0.757 GB, free: 18.94 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006894/1.841, allocations: 2.118 MB / 0.7591 GB, free: 18.81 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/1.841, allocations: 11.16 kB / 0.7591 GB, free: 18.81 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.428e-06/1.841, allocations: 3.953 kB / 0.7591 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.958e-06/1.841, allocations: 3.609 kB / 0.7591 GB, free: 18.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008106/1.849, allocations: 3.708 MB / 0.7627 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001987/1.85, allocations: 141.6 kB / 0.7628 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009318/1.851, allocations: 162.9 kB / 0.763 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.106e-05/1.851, allocations: 3.938 kB / 0.763 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001214/1.851, allocations: 64.5 kB / 0.7631 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.67e-06/1.851, allocations: 11.09 kB / 0.7631 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.7e-06/1.851, allocations: 0 / 0.7631 GB, free: 18.34 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003437/1.854, allocations: 2.092 MB / 0.7651 GB, free: 17.64 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002385/1.857, allocations: 0.9303 MB / 0.766 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009574/1.858, allocations: 15.88 kB / 0.766 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0021/1.86, allocations: 51.3 kB / 0.7661 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002467/1.86, allocations: 107.9 kB / 0.7662 GB, free: 17.11 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000158/1.86, allocations: 69.77 kB / 0.7663 GB, free: 17.11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.007009/1.867, allocations: 3.609 MB / 0.7698 GB, free: 16.82 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.012e-06/1.867, allocations: 3.188 kB / 0.7698 GB, free: 16.82 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.003513/1.871, allocations: 1.171 MB / 0.7709 GB, free: 16.8 MB / 442.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.002489/1.873, allocations: 1.245 MB / 0.7721 GB, free: 32.69 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.002322/1.876, allocations: 1.281 MB / 0.7734 GB, free: 32.42 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.778e-06/1.876, allocations: 3.938 kB / 0.7734 GB, free: 32.42 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001101/1.877, allocations: 0.7099 MB / 0.7741 GB, free: 32.17 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006009/1.883, allocations: 1.15 MB / 0.7752 GB, free: 32.11 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/1.895, allocations: 6.109 MB / 0.7812 GB, free: 30.21 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002686/1.897, allocations: 2.714 MB / 0.7838 GB, free: 29.43 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007714/1.898, allocations: 311.6 kB / 0.7841 GB, free: 29.42 MB / 458.7 MB Notification: Performance of SimCode: time 1.687e-06/1.898, allocations: 0 / 0.7841 GB, free: 29.42 MB / 458.7 MB Notification: Performance of Templates: time 0.1177/2.016, allocations: 68.24 MB / 0.8508 GB, free: 14.5 MB / 490.7 MB