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_trunk_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 2.159/2.159, allocations: 224.7 MB / 241.1 MB, free: 1.688 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.766e-05/2.749e-05, allocations: 4 kB / 294.6 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1091, allocations: 50.41 MB / 345 MB, free: 8.957 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01714/0.1263, allocations: 11.34 MB / 356.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04013/0.1665, allocations: 16.94 MB / 373.2 MB, free: 12.6 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003146/0.1697, allocations: 31.81 kB / 373.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004509/0.1743, allocations: 0.8195 MB / 374.1 MB, free: 11.75 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01033/0.1846, allocations: 1.787 MB / 375.9 MB, free: 9.953 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005657/0.1904, allocations: 0.9927 MB / 376.9 MB, free: 8.957 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0206/0.211, allocations: 5.581 MB / 382.5 MB, free: 3.367 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007495/0.2118, allocations: 142.6 kB / 382.6 MB, free: 3.219 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002556/0.2144, allocations: 0.8178 MB / 383.4 MB, free: 2.398 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002177/0.2166, allocations: 0.8943 MB / 384.3 MB, free: 1.5 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00633/0.223, allocations: 1.421 MB / 385.7 MB, free: 80 kB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000689/0.2238, allocations: 72 kB / 385.8 MB, free: 8 kB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004315/0.2242, allocations: 270.1 kB / 386.1 MB, free: 15.74 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00105/0.2253, allocations: 260 kB / 386.3 MB, free: 15.48 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005345/0.2306, allocations: 2.598 MB / 388.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2307, allocations: 4 kB / 388.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2307, allocations: 0 / 388.9 MB, free: 12.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.0001259/0.2308, allocations: 0 / 388.9 MB, free: 12.88 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.006138/0.237, allocations: 2.564 MB / 391.5 MB, free: 10.25 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.804e-05/0.2371, allocations: 8.031 kB / 391.5 MB, free: 10.24 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009112/0.238, allocations: 399.2 kB / 391.9 MB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006765/0.2448, allocations: 2.246 MB / 394.1 MB, free: 7.531 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.749e-05/0.2449, allocations: 37 kB / 394.2 MB, free: 7.496 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003956/0.2453, allocations: 52 kB / 394.2 MB, free: 7.445 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003902/0.2493, allocations: 0.7538 MB / 395 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.197e-05/0.2494, allocations: 0 / 395 MB, free: 6.688 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001742/0.2496, allocations: 16 kB / 395 MB, free: 6.672 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.683e-05/0.2496, allocations: 23.94 kB / 395 MB, free: 6.648 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004513/0.2542, allocations: 0.8554 MB / 395.9 MB, free: 5.793 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00925/0.2635, allocations: 3.063 MB / 398.9 MB, free: 2.645 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003137/0.2667, allocations: 0.6181 MB / 399.5 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3451/0.6118, allocations: 30.28 MB / 429.8 MB, free: 27.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001155/0.613, allocations: 386.5 kB / 430.2 MB, free: 27.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 3.978e-06/0.6131, allocations: 2.25 kB / 430.2 MB, free: 27.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.003889/0.617, allocations: 1.464 MB / 431.7 MB, free: 26.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.617, allocations: 56.91 kB / 431.7 MB, free: 26.38 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004746/0.6218, allocations: 2.444 MB / 434.2 MB, free: 25.13 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001384/0.622, allocations: 37.67 kB / 434.2 MB, free: 25.09 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001244/0.6232, allocations: 1.225 MB / 435.4 MB, free: 23.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002715/0.6235, allocations: 171.7 kB / 435.6 MB, free: 23.8 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.722e-05/0.6236, allocations: 19.72 kB / 435.6 MB, free: 23.79 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.997e-05/0.6237, allocations: 338.7 kB / 435.9 MB, free: 23.46 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009741/0.6247, allocations: 262 kB / 436.2 MB, free: 23.36 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001107/0.6258, allocations: 0.6131 MB / 436.8 MB, free: 22.77 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001159/0.627, allocations: 349.1 kB / 437.1 MB, free: 22.64 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.054e-05/0.627, allocations: 3.812 kB / 437.2 MB, free: 22.64 MB / 330.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002809/0.6299, allocations: 0.9574 MB / 438.1 MB, free: 22.04 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.218e-05/0.6299, allocations: 11.98 kB / 438.1 MB, free: 22.03 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/0.6301, allocations: 76 kB / 438.2 MB, free: 21.96 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.806e-05/0.6301, allocations: 20 kB / 438.2 MB, free: 21.94 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.6314, allocations: 216.3 kB / 438.4 MB, free: 21.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.813e-05/0.6315, allocations: 27.86 kB / 438.5 MB, free: 21.7 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001697/0.6332, allocations: 111.1 kB / 438.6 MB, free: 21.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001774/0.6334, allocations: 64 kB / 438.6 MB, free: 21.53 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.001094/0.6345, allocations: 431.7 kB / 439 MB, free: 21.1 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000634/0.6352, allocations: 387.4 kB / 439.4 MB, free: 20.72 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004782/0.64, allocations: 1.256 MB / 440.7 MB, free: 19.47 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.311e-05/0.64, allocations: 4 kB / 440.7 MB, free: 19.47 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.273e-06/0.64, allocations: 0 / 440.7 MB, free: 19.47 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.686e-06/0.64, allocations: 0 / 440.7 MB, free: 19.47 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004974/0.645, allocations: 2.139 MB / 442.8 MB, free: 17.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000129/0.6452, allocations: 68.86 kB / 442.9 MB, free: 17.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008545/0.6461, allocations: 103.9 kB / 443 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.179e-05/0.6461, allocations: 4 kB / 443 MB, free: 17.11 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.466e-05/0.6462, allocations: 31.98 kB / 443 MB, free: 17.07 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.324e-06/0.6462, allocations: 4 kB / 443 MB, free: 17.07 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6462, allocations: 0 / 443 MB, free: 17.07 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003564/0.6498, allocations: 1.414 MB / 444.4 MB, free: 15.61 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.6509, allocations: 468.2 kB / 444.9 MB, free: 15.13 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006401/0.6516, allocations: 8 kB / 444.9 MB, free: 15.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001325/0.6529, allocations: 48.02 kB / 445 MB, free: 15.07 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002155/0.6531, allocations: 59.94 kB / 445 MB, free: 15.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001064/0.6533, allocations: 43.94 kB / 445.1 MB, free: 14.97 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.003665/0.6569, allocations: 1.872 MB / 446.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of sort global known variables: time 6.81e-07/0.657, allocations: 0 / 446.9 MB, free: 13.1 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00202/0.659, allocations: 0.5777 MB / 447.5 MB, free: 12.55 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.001458/0.6605, allocations: 0.7442 MB / 448.3 MB, free: 11.97 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002597/0.6631, allocations: 0.8532 MB / 449.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.6632, allocations: 0 / 449.1 MB, free: 11.1 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001192/0.6644, allocations: 472.5 kB / 449.6 MB, free: 10.62 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00414/0.6686, allocations: 0.5803 MB / 450.1 MB, free: 10.04 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009077/0.6777, allocations: 4.943 MB / 455.1 MB, free: 5.055 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/0.6789, allocations: 1.723 MB / 456.8 MB, free: 3.305 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000504/0.6794, allocations: 155.4 kB / 457 MB, free: 3.152 MB / 330.7 MB Notification: Performance of SimCode: time 1.052e-06/0.6794, allocations: 0 / 457 MB, free: 3.152 MB / 330.7 MB Notification: Performance of Templates: time 0.08462/0.764, allocations: 35.96 MB / 492.9 MB, free: 15.35 MB / 378.7 MB