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.1_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.742/1.742, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.916e-05/2.909e-05, allocations: 4 kB / 228.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08433/0.08438, allocations: 38.77 MB / 266.9 MB, free: 496 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.0167/0.1011, allocations: 10.9 MB / 277.8 MB, free: 5.539 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03011/0.1313, allocations: 16.18 MB / 294 MB, free: 5.32 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002442/0.1338, allocations: 31.88 kB / 294 MB, free: 5.289 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003419/0.1373, allocations: 0.8155 MB / 294.8 MB, free: 4.469 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007985/0.1453, allocations: 1.767 MB / 296.6 MB, free: 2.695 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004323/0.1497, allocations: 0.9772 MB / 297.6 MB, free: 1.715 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2359/0.3857, allocations: 5.533 MB / 303.1 MB, free: 6.195 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005561/0.3863, allocations: 130.5 kB / 303.2 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002/0.3883, allocations: 0.6986 MB / 303.9 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002467/0.3908, allocations: 0.8617 MB / 304.8 MB, free: 6.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006192/0.397, allocations: 1.211 MB / 306 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008923/0.398, allocations: 73.38 kB / 306.1 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004473/0.3984, allocations: 273.1 kB / 306.4 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001583/0.4, allocations: 261.9 kB / 306.6 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005441/0.4055, allocations: 2.611 MB / 309.2 MB, free: 5.863 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.4056, allocations: 0 / 309.2 MB, free: 5.863 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.346e-06/0.4056, allocations: 0 / 309.2 MB, free: 5.863 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001134/0.4057, allocations: 0 / 309.2 MB, free: 5.863 MB / 250.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.005851/0.4116, allocations: 2.574 MB / 311.8 MB, free: 4.445 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.85e-05/0.4116, allocations: 9.625 kB / 311.8 MB, free: 4.445 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001049/0.4127, allocations: 397.8 kB / 312.2 MB, free: 4.242 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006002/0.4187, allocations: 2.268 MB / 314.5 MB, free: 3.602 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.512e-05/0.4188, allocations: 33.72 kB / 314.5 MB, free: 3.598 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002073/0.419, allocations: 55.59 kB / 314.5 MB, free: 3.594 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002115/0.4211, allocations: 0.7471 MB / 315.3 MB, free: 3.547 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/0.4212, allocations: 3.062 kB / 315.3 MB, free: 3.547 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001032/0.4213, allocations: 20.39 kB / 315.3 MB, free: 3.547 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.719e-05/0.4213, allocations: 18.92 kB / 315.3 MB, free: 3.547 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002444/0.4238, allocations: 0.8556 MB / 316.2 MB, free: 3.531 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007735/0.4315, allocations: 3.078 MB / 319.3 MB, free: 2.68 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00192/0.4335, allocations: 0.6236 MB / 319.9 MB, free: 2.57 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05073/0.4843, allocations: 30.34 MB / 350.2 MB, free: 3.867 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001834/0.4862, allocations: 382.2 kB / 350.6 MB, free: 3.543 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 5.19e-06/0.4862, allocations: 3.188 kB / 350.6 MB, free: 3.543 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.006557/0.4928, allocations: 1.474 MB / 352.1 MB, free: 2.16 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.318e-05/0.4929, allocations: 66.48 kB / 352.1 MB, free: 2.086 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007687/0.5006, allocations: 2.455 MB / 354.6 MB, free: 224 kB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002196/0.5009, allocations: 40.33 kB / 354.6 MB, free: 184 kB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002433/0.5034, allocations: 1.495 MB / 356.1 MB, free: 15.63 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000433/0.5038, allocations: 159.8 kB / 356.3 MB, free: 15.5 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000106/0.504, allocations: 18.25 kB / 356.3 MB, free: 15.49 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002156/0.5042, allocations: 341.8 kB / 356.6 MB, free: 15.17 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001528/0.5057, allocations: 256 kB / 356.9 MB, free: 14.98 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00183/0.5076, allocations: 0.6243 MB / 357.5 MB, free: 14.28 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00118/0.5088, allocations: 344.1 kB / 357.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.596e-05/0.5088, allocations: 7.938 kB / 357.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.004022/0.5129, allocations: 1.263 MB / 359.1 MB, free: 13.04 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.492e-05/0.5129, allocations: 12 kB / 359.1 MB, free: 13.03 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001785/0.5131, allocations: 79.98 kB / 359.2 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.886e-05/0.5132, allocations: 20.88 kB / 359.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001397/0.5146, allocations: 214.8 kB / 359.4 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.66e-05/0.5147, allocations: 29.48 kB / 359.5 MB, free: 12.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002149/0.5168, allocations: 127.1 kB / 359.6 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002097/0.517, allocations: 62.81 kB / 359.7 MB, free: 12.55 MB / 298.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.001355/0.5184, allocations: 429.7 kB / 360.1 MB, free: 12.31 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001037/0.5195, allocations: 383.3 kB / 360.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005379/0.5249, allocations: 1.268 MB / 361.7 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.5249, allocations: 4 kB / 361.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.5249, allocations: 2.438 kB / 361.7 MB, free: 10.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.525, allocations: 11.94 kB / 361.7 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006121/0.5311, allocations: 2.127 MB / 363.9 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001672/0.5313, allocations: 71.98 kB / 363.9 MB, free: 9.098 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009055/0.5322, allocations: 103.2 kB / 364 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.508e-06/0.5322, allocations: 0 / 364 MB, free: 9 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.792e-05/0.5324, allocations: 39.97 kB / 364.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.722e-06/0.5324, allocations: 7.281 kB / 364.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5324, allocations: 0 / 364.1 MB, free: 8.957 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004506/0.5369, allocations: 1.424 MB / 365.5 MB, free: 7.492 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001674/0.5386, allocations: 464.3 kB / 366 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007617/0.5394, allocations: 11.98 kB / 366 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001508/0.5409, allocations: 40.03 kB / 366 MB, free: 6.965 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.5412, allocations: 67.31 kB / 366.1 MB, free: 6.902 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001249/0.5413, allocations: 39.98 kB / 366.1 MB, free: 6.863 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.00444/0.5458, allocations: 1.881 MB / 368 MB, free: 4.984 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.31e-07/0.5458, allocations: 0 / 368 MB, free: 4.984 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002775/0.5486, allocations: 0.5894 MB / 368.6 MB, free: 4.395 MB / 298.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.001741/0.5504, allocations: 0.7448 MB / 369.3 MB, free: 3.793 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002868/0.5533, allocations: 0.8501 MB / 370.2 MB, free: 2.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.5533, allocations: 0 / 370.2 MB, free: 2.957 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001384/0.5547, allocations: 464.3 kB / 370.6 MB, free: 2.488 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003373/0.5581, allocations: 490.5 kB / 371.1 MB, free: 2.004 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01179/0.5699, allocations: 4.907 MB / 376 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001755/0.5718, allocations: 1.724 MB / 377.7 MB, free: 11.32 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.002166/0.5739, allocations: 365.2 kB / 378.1 MB, free: 10.95 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004101/0.5744, allocations: 147.4 kB / 378.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of SimCode: time 1.032e-06/0.5744, allocations: 0 / 378.2 MB, free: 10.81 MB / 314.7 MB Notification: Performance of Templates: time 0.09235/0.6668, allocations: 29.39 MB / 407.6 MB, free: 13.55 MB / 346.7 MB