Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadModel(Modelica): time 2.143/2.143, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.853e-05/2.85e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1106/0.1107, allocations: 50.42 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01879/0.1295, allocations: 11.82 MB / 356.8 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04173/0.1713, allocations: 17 MB / 373.8 MB, free: 12.05 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003202/0.1746, allocations: 39.75 kB / 373.8 MB, free: 12.01 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004575/0.1792, allocations: 0.8311 MB / 374.7 MB, free: 11.18 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01044/0.1898, allocations: 1.833 MB / 376.5 MB, free: 9.336 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005626/0.1954, allocations: 0.985 MB / 377.5 MB, free: 8.348 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.01863/0.2141, allocations: 5.745 MB / 383.2 MB, free: 2.594 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005629/0.2148, allocations: 138.6 kB / 383.4 MB, free: 2.449 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00185/0.2166, allocations: 0.8489 MB / 384.2 MB, free: 1.598 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001977/0.2186, allocations: 0.9254 MB / 385.1 MB, free: 0.668 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006092/0.2247, allocations: 1.417 MB / 386.5 MB, free: 15.25 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000739/0.2255, allocations: 76 kB / 386.6 MB, free: 15.18 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004815/0.226, allocations: 273.9 kB / 386.9 MB, free: 14.91 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001134/0.2272, allocations: 272 kB / 387.2 MB, free: 14.64 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005535/0.2327, allocations: 2.777 MB / 389.9 MB, free: 11.86 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2328, allocations: 3.938 kB / 389.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.966e-06/0.2328, allocations: 0 / 389.9 MB, free: 11.85 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001404/0.233, allocations: 0 / 389.9 MB, free: 11.85 MB / 330.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.006277/0.2393, allocations: 2.654 MB / 392.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.864e-05/0.2393, allocations: 8.031 kB / 392.6 MB, free: 9.125 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009367/0.2403, allocations: 410.9 kB / 393 MB, free: 8.719 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006518/0.2468, allocations: 2.284 MB / 395.3 MB, free: 6.367 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.261e-05/0.2469, allocations: 40.94 kB / 395.3 MB, free: 6.328 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002563/0.2472, allocations: 59.91 kB / 395.4 MB, free: 6.27 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002366/0.2496, allocations: 0.7421 MB / 396.1 MB, free: 5.523 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.846e-05/0.2497, allocations: 0 / 396.1 MB, free: 5.523 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001057/0.2498, allocations: 16 kB / 396.1 MB, free: 5.508 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-05/0.2499, allocations: 27.94 kB / 396.2 MB, free: 5.48 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002938/0.2528, allocations: 0.8554 MB / 397 MB, free: 4.625 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009489/0.2623, allocations: 3.11 MB / 400.1 MB, free: 1.434 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002291/0.2647, allocations: 0.6181 MB / 400.8 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3723/0.637, allocations: 30.28 MB / 431 MB, free: 27.15 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001679/0.6387, allocations: 388.1 kB / 431.4 MB, free: 26.94 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.719e-06/0.6388, allocations: 0 / 431.4 MB, free: 26.94 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.005466/0.6443, allocations: 1.49 MB / 432.9 MB, free: 26.08 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.6444, allocations: 55.34 kB / 433 MB, free: 26.02 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006839/0.6512, allocations: 2.57 MB / 435.5 MB, free: 24.71 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001713/0.6515, allocations: 41.12 kB / 435.6 MB, free: 24.67 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001837/0.6533, allocations: 1.292 MB / 436.9 MB, free: 23.47 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000347/0.6537, allocations: 166.8 kB / 437 MB, free: 23.34 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001005/0.6538, allocations: 15.5 kB / 437 MB, free: 23.32 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.6539, allocations: 349.6 kB / 437.4 MB, free: 22.98 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001406/0.6553, allocations: 257 kB / 437.6 MB, free: 22.89 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001617/0.657, allocations: 0.6196 MB / 438.3 MB, free: 22.3 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001609/0.6586, allocations: 343.3 kB / 438.6 MB, free: 22.17 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.475e-05/0.6587, allocations: 5.375 kB / 438.6 MB, free: 22.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003979/0.6627, allocations: 0.9635 MB / 439.6 MB, free: 21.3 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.6627, allocations: 8 kB / 439.6 MB, free: 21.3 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002009/0.663, allocations: 79.98 kB / 439.6 MB, free: 21.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.214e-05/0.663, allocations: 23.72 kB / 439.7 MB, free: 21.2 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.6648, allocations: 205.9 kB / 439.9 MB, free: 21 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.748e-05/0.6648, allocations: 32.41 kB / 439.9 MB, free: 20.97 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002652/0.6675, allocations: 117.7 kB / 440 MB, free: 20.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001925/0.6677, allocations: 67.98 kB / 440.1 MB, free: 20.79 MB / 330.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.001459/0.6692, allocations: 453.1 kB / 440.5 MB, free: 20.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008167/0.67, allocations: 399.1 kB / 440.9 MB, free: 19.95 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005963/0.676, allocations: 1.281 MB / 442.2 MB, free: 18.67 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.287e-05/0.676, allocations: 4 kB / 442.2 MB, free: 18.66 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.443e-06/0.6761, allocations: 0 / 442.2 MB, free: 18.66 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.6761, allocations: 0 / 442.2 MB, free: 18.66 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005001/0.6811, allocations: 2.179 MB / 444.4 MB, free: 16.43 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001309/0.6813, allocations: 67.98 kB / 444.4 MB, free: 16.37 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008788/0.6822, allocations: 103.9 kB / 444.5 MB, free: 16.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.566e-06/0.6822, allocations: 0 / 444.5 MB, free: 16.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.304e-05/0.6823, allocations: 44.05 kB / 444.6 MB, free: 16.22 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.673e-06/0.6823, allocations: 3.984 kB / 444.6 MB, free: 16.22 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.6823, allocations: 0 / 444.6 MB, free: 16.22 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003554/0.6859, allocations: 1.432 MB / 446 MB, free: 14.74 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00108/0.687, allocations: 488.9 kB / 446.5 MB, free: 14.24 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006033/0.6876, allocations: 15.94 kB / 446.5 MB, free: 14.23 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001319/0.689, allocations: 40.03 kB / 446.6 MB, free: 14.19 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.6892, allocations: 58.98 kB / 446.6 MB, free: 14.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001024/0.6893, allocations: 43.94 kB / 446.7 MB, free: 14.09 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.005119/0.6944, allocations: 1.975 MB / 448.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.6945, allocations: 4 kB / 448.6 MB, free: 12.12 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.002943/0.6974, allocations: 0.5894 MB / 449.2 MB, free: 11.53 MB / 330.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.001971/0.6994, allocations: 0.7335 MB / 450 MB, free: 10.95 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.003548/0.703, allocations: 0.8571 MB / 450.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/0.7031, allocations: 0 / 450.8 MB, free: 10.07 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001709/0.7048, allocations: 471.2 kB / 451.3 MB, free: 9.586 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005881/0.7107, allocations: 0.6076 MB / 451.9 MB, free: 8.977 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02824/0.739, allocations: 5.157 MB / 457 MB, free: 3.773 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001691/0.7408, allocations: 1.773 MB / 458.8 MB, free: 1.973 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006356/0.7414, allocations: 151.4 kB / 459 MB, free: 1.824 MB / 330.7 MB Notification: Performance of SimCode: time 1.302e-06/0.7414, allocations: 7.938 kB / 459 MB, free: 1.816 MB / 330.7 MB Notification: Performance of Templates: time 0.1243/0.8658, allocations: 37 MB / 496 MB, free: 12.98 MB / 378.7 MB