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 2.14/2.14, allocations: 194.9 MB / 211.2 MB, free: 8.34 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 4.405e-05/4.39e-05, allocations: 7.938 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3115, allocations: 44.51 MB / 303.3 MB, free: 12.78 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01602/0.3276, allocations: 10.91 MB / 314.2 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0291/0.3567, allocations: 16.18 MB / 330.4 MB, free: 2.543 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002743/0.3596, allocations: 35.81 kB / 330.4 MB, free: 2.508 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003428/0.363, allocations: 0.8078 MB / 331.2 MB, free: 1.695 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007881/0.371, allocations: 1.779 MB / 333 MB, free: 15.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004247/0.3753, allocations: 0.9772 MB / 334 MB, free: 14.93 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.01525/0.3906, allocations: 5.495 MB / 339.5 MB, free: 9.426 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005655/0.3912, allocations: 126.7 kB / 339.6 MB, free: 9.297 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001736/0.393, allocations: 0.7009 MB / 340.3 MB, free: 8.594 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001979/0.395, allocations: 0.8709 MB / 341.2 MB, free: 7.719 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00539/0.4004, allocations: 1.203 MB / 342.4 MB, free: 6.516 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006405/0.4011, allocations: 72 kB / 342.4 MB, free: 6.445 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004051/0.4015, allocations: 273.9 kB / 342.7 MB, free: 6.176 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009969/0.4026, allocations: 260 kB / 343 MB, free: 5.922 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005161/0.4077, allocations: 2.611 MB / 345.6 MB, free: 3.305 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.4078, allocations: 4 kB / 345.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.4078, allocations: 0 / 345.6 MB, free: 3.301 MB / 282.7 MB Notification: Performance of Transformations before backend: time 0.0001129/0.4079, allocations: 0 / 345.6 MB, free: 3.301 MB / 282.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.005927/0.4139, allocations: 2.572 MB / 348.1 MB, free: 0.6641 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.4139, allocations: 12.03 kB / 348.2 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008886/0.4148, allocations: 399.1 kB / 348.5 MB, free: 264 kB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006174/0.421, allocations: 2.262 MB / 350.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.998e-05/0.4211, allocations: 37 kB / 350.8 MB, free: 13.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002047/0.4214, allocations: 51.91 kB / 350.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002243/0.4236, allocations: 0.746 MB / 351.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/0.4237, allocations: 0 / 351.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.4238, allocations: 27.98 kB / 351.7 MB, free: 13.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.248e-05/0.4238, allocations: 20 kB / 351.7 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002714/0.4266, allocations: 0.8592 MB / 352.5 MB, free: 12.18 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008224/0.4348, allocations: 3.071 MB / 355.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002186/0.4371, allocations: 0.619 MB / 356.2 MB, free: 8.391 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04639/0.4835, allocations: 30.34 MB / 386.6 MB, free: 5.949 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001353/0.4849, allocations: 389.4 kB / 387 MB, free: 5.555 MB / 330.7 MB Notification: Performance of pre-optimization done (n=49): time 4.669e-06/0.4849, allocations: 4 kB / 387 MB, free: 5.551 MB / 330.7 MB Notification: Performance of matching and sorting (n=49): time 0.004355/0.4893, allocations: 1.458 MB / 388.4 MB, free: 4.008 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.45e-05/0.4894, allocations: 63.39 kB / 388.5 MB, free: 3.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005964/0.4954, allocations: 2.458 MB / 390.9 MB, free: 1.473 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000165/0.4956, allocations: 37.7 kB / 391 MB, free: 1.43 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001817/0.4975, allocations: 1.232 MB / 392.2 MB, free: 196 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003519/0.4979, allocations: 169.6 kB / 392.4 MB, free: 24 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.374e-05/0.4979, allocations: 16 kB / 392.4 MB, free: 8 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001877/0.4981, allocations: 342.9 kB / 392.7 MB, free: 15.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001111/0.4993, allocations: 261.8 kB / 393 MB, free: 15.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001406/0.5007, allocations: 0.6254 MB / 393.6 MB, free: 14.61 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.5021, allocations: 340.5 kB / 393.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.368e-05/0.5022, allocations: 4 kB / 393.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003262/0.5054, allocations: 0.9397 MB / 394.9 MB, free: 13.33 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.608e-05/0.5055, allocations: 20.91 kB / 394.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001843/0.5057, allocations: 83.94 kB / 395 MB, free: 13.23 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.432e-05/0.5058, allocations: 24 kB / 395 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001415/0.5072, allocations: 211.7 kB / 395.2 MB, free: 13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.138e-05/0.5073, allocations: 31.86 kB / 395.2 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001862/0.5092, allocations: 126.9 kB / 395.4 MB, free: 12.84 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002319/0.5095, allocations: 64 kB / 395.4 MB, free: 12.78 MB / 346.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.001264/0.5107, allocations: 425.5 kB / 395.8 MB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000843/0.5116, allocations: 379.4 kB / 396.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00538/0.517, allocations: 1.272 MB / 397.5 MB, free: 10.7 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.575e-05/0.5171, allocations: 4 kB / 397.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.5171, allocations: 0 / 397.5 MB, free: 10.69 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.3e-05/0.5171, allocations: 11.98 kB / 397.5 MB, free: 10.68 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005918/0.523, allocations: 2.132 MB / 399.6 MB, free: 8.477 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001785/0.5233, allocations: 68 kB / 399.7 MB, free: 8.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009033/0.5242, allocations: 111.9 kB / 399.8 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.5242, allocations: 0 / 399.8 MB, free: 8.301 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001043/0.5243, allocations: 32 kB / 399.8 MB, free: 8.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.612e-06/0.5243, allocations: 3.938 kB / 399.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5244, allocations: 0 / 399.8 MB, free: 8.266 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004317/0.5287, allocations: 1.424 MB / 401.3 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001331/0.5301, allocations: 472.2 kB / 401.7 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007005/0.5308, allocations: 12 kB / 401.7 MB, free: 6.297 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001601/0.5324, allocations: 35.97 kB / 401.8 MB, free: 6.262 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/0.5328, allocations: 67.92 kB / 401.8 MB, free: 6.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001314/0.5329, allocations: 40.06 kB / 401.9 MB, free: 6.156 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.004914/0.5378, allocations: 1.881 MB / 403.8 MB, free: 4.277 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.022e-06/0.5379, allocations: 0 / 403.8 MB, free: 4.277 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.002448/0.5404, allocations: 0.5933 MB / 404.4 MB, free: 3.684 MB / 346.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.001815/0.5422, allocations: 0.7299 MB / 405.1 MB, free: 2.945 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003068/0.5454, allocations: 0.8529 MB / 405.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.5454, allocations: 0 / 405.9 MB, free: 2.07 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001451/0.5469, allocations: 467.2 kB / 406.4 MB, free: 1.59 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002992/0.5499, allocations: 494.5 kB / 406.9 MB, free: 1.102 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.5613, allocations: 4.975 MB / 411.9 MB, free: 12.08 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002132/0.5635, allocations: 1.731 MB / 413.6 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005931/0.5641, allocations: 151.4 kB / 413.7 MB, free: 10.18 MB / 362.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5642, allocations: 3.938 kB / 413.7 MB, free: 10.17 MB / 362.7 MB Notification: Performance of Templates: time 0.3394/0.9035, allocations: 36.15 MB / 449.9 MB, free: 89.23 MB / 362.7 MB