Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.835/1.835, allocations: 195 MB / 203.2 MB, free: 13.79 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.023e-05/4.042e-05, allocations: 7.938 kB / 249.6 MB, free: 15.3 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2699, allocations: 44.5 MB / 294.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1719/0.4418, allocations: 97.11 MB / 391.2 MB, free: 0.832 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003614/0.4423, allocations: 75.8 kB / 391.3 MB, free: 0.7617 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5601/1.002, allocations: 120.1 MB / 0.4994 GB, free: 36.98 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.464e-06/1.002, allocations: 0 / 0.4994 GB, free: 36.98 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.923e-05/1.003, allocations: 44 kB / 0.4995 GB, free: 36.94 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.004744/1.007, allocations: 2.703 MB / 0.5021 GB, free: 34.18 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/1.007, allocations: 11.97 kB / 0.5021 GB, free: 34.17 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006225/1.008, allocations: 399.2 kB / 0.5025 GB, free: 33.78 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004812/1.013, allocations: 2.368 MB / 0.5048 GB, free: 31.34 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/1.013, allocations: 19.98 kB / 0.5048 GB, free: 31.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001684/1.013, allocations: 35.91 kB / 0.5049 GB, free: 31.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001279/1.014, allocations: 0.6861 MB / 0.5055 GB, free: 30.6 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001246/1.016, allocations: 0.7245 MB / 0.5062 GB, free: 29.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.943e-05/1.016, allocations: 0 / 0.5062 GB, free: 29.84 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.232e-05/1.016, allocations: 0 / 0.5062 GB, free: 29.84 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.442e-05/1.016, allocations: 19.98 kB / 0.5062 GB, free: 29.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006589/1.022, allocations: 3.073 MB / 0.5093 GB, free: 26.67 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007783/1.023, allocations: 475.9 kB / 0.5097 GB, free: 26.2 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007851/1.024, allocations: 0.5694 MB / 0.5103 GB, free: 25.62 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04128/1.065, allocations: 36.16 MB / 0.5456 GB, free: 340 kB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006488/1.066, allocations: 309.3 kB / 0.5459 GB, free: 12 kB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 4.758e-06/1.066, allocations: 0 / 0.5459 GB, free: 12 kB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.00194/1.068, allocations: 0.7859 MB / 0.5466 GB, free: 15.22 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001761/1.068, allocations: 265 kB / 0.5469 GB, free: 14.9 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005144/1.073, allocations: 2.326 MB / 0.5492 GB, free: 12.57 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000128/1.073, allocations: 29.64 kB / 0.5492 GB, free: 12.54 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001481/1.075, allocations: 1.236 MB / 0.5504 GB, free: 11.29 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002357/1.075, allocations: 165.6 kB / 0.5505 GB, free: 11.13 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.434e-05/1.075, allocations: 0 / 0.5505 GB, free: 11.13 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001994/1.076, allocations: 346.8 kB / 0.5509 GB, free: 10.78 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004398/1.076, allocations: 174.6 kB / 0.551 GB, free: 10.61 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008105/1.077, allocations: 0.5746 MB / 0.5516 GB, free: 9.836 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006674/1.077, allocations: 272.4 kB / 0.5519 GB, free: 9.566 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.404e-05/1.077, allocations: 4 kB / 0.5519 GB, free: 9.562 MB / 394.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001768/1.079, allocations: 0.7141 MB / 0.5526 GB, free: 8.844 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.708e-05/1.079, allocations: 8 kB / 0.5526 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001581/1.079, allocations: 79.98 kB / 0.5527 GB, free: 8.758 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.381e-05/1.08, allocations: 23.95 kB / 0.5527 GB, free: 8.734 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009368/1.08, allocations: 216.1 kB / 0.5529 GB, free: 8.523 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.15e-05/1.081, allocations: 28 kB / 0.5529 GB, free: 8.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/1.082, allocations: 103.1 kB / 0.553 GB, free: 8.395 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001956/1.083, allocations: 71.97 kB / 0.5531 GB, free: 8.324 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.000266/1.083, allocations: 140.6 kB / 0.5532 GB, free: 8.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000694/1.084, allocations: 383.3 kB / 0.5536 GB, free: 7.801 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004124/1.088, allocations: 1.123 MB / 0.5547 GB, free: 6.676 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.539e-05/1.088, allocations: 11.89 kB / 0.5547 GB, free: 6.664 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.268e-06/1.088, allocations: 0 / 0.5547 GB, free: 6.664 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.312e-06/1.088, allocations: 3.984 kB / 0.5547 GB, free: 6.66 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007257/1.095, allocations: 2.002 MB / 0.5566 GB, free: 4.598 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002313/1.095, allocations: 75.92 kB / 0.5567 GB, free: 4.523 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001052/1.096, allocations: 103.9 kB / 0.5568 GB, free: 4.422 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.029e-05/1.096, allocations: 7.953 kB / 0.5568 GB, free: 4.414 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001503/1.097, allocations: 27.98 kB / 0.5568 GB, free: 4.387 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.034e-06/1.097, allocations: 0 / 0.5568 GB, free: 4.387 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.096e-06/1.097, allocations: 4 kB / 0.5569 GB, free: 4.383 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003973/1.101, allocations: 1.186 MB / 0.558 GB, free: 3.148 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002233/1.103, allocations: 0.5568 MB / 0.5586 GB, free: 2.559 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008123/1.104, allocations: 7.984 kB / 0.5586 GB, free: 2.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002182/1.106, allocations: 31.97 kB / 0.5586 GB, free: 2.52 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00031/1.106, allocations: 71.98 kB / 0.5587 GB, free: 2.449 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001717/1.107, allocations: 32 kB / 0.5587 GB, free: 2.418 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00654/1.113, allocations: 1.721 MB / 0.5604 GB, free: 0.6992 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.634e-06/1.113, allocations: 4 kB / 0.5604 GB, free: 0.6953 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004184/1.117, allocations: 0.6165 MB / 0.561 GB, free: 80 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.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 (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.2689/1.386, allocations: 0.9239 MB / 0.5619 GB, free: 89.16 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001459/1.388, allocations: 0.6676 MB / 0.5625 GB, free: 89.04 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.995e-06/1.388, allocations: 2.219 kB / 0.5625 GB, free: 89.04 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006388/1.389, allocations: 390.8 kB / 0.5629 GB, free: 88.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002691/1.391, allocations: 496.9 kB / 0.5634 GB, free: 88.87 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007545/1.399, allocations: 3.179 MB / 0.5665 GB, free: 87.85 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001486/1.4, allocations: 1.733 MB / 0.5682 GB, free: 87.12 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004898/1.401, allocations: 165 kB / 0.5683 GB, free: 87.12 MB / 394.7 MB Notification: Performance of SimCode: time 2.321e-06/1.401, allocations: 0 / 0.5683 GB, free: 87.12 MB / 394.7 MB Notification: Performance of Templates: time 0.05913/1.46, allocations: 36.85 MB / 0.6043 GB, free: 82.18 MB / 394.7 MB