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_cpp_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadModel(Modelica): time 1.679/1.679, allocations: 171.1 MB / 186.3 MB, free: 1.402 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.721e-05/2.703e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08345/0.0835, allocations: 38.77 MB / 266.9 MB, free: 1.125 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01678/0.1003, allocations: 10.9 MB / 277.8 MB, free: 6.18 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.03071/0.1311, allocations: 16.17 MB / 294 MB, free: 5.965 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002838/0.134, allocations: 35.81 kB / 294 MB, free: 5.93 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003476/0.1375, allocations: 0.8117 MB / 294.8 MB, free: 5.113 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007897/0.1454, allocations: 1.771 MB / 296.6 MB, free: 3.336 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004205/0.1497, allocations: 0.9733 MB / 297.6 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.2328/0.3825, allocations: 5.545 MB / 303.1 MB, free: 6.375 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005417/0.3831, allocations: 135.8 kB / 303.2 MB, free: 6.367 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.3851, allocations: 0.7003 MB / 303.9 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002351/0.3875, allocations: 0.8634 MB / 304.8 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006143/0.3937, allocations: 1.208 MB / 306 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009257/0.3947, allocations: 75.06 kB / 306.1 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000507/0.3952, allocations: 270 kB / 306.3 MB, free: 6.359 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001682/0.3969, allocations: 265.3 kB / 306.6 MB, free: 6.359 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005857/0.4028, allocations: 2.614 MB / 309.2 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.4029, allocations: 0 / 309.2 MB, free: 6.039 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.867e-06/0.4029, allocations: 0 / 309.2 MB, free: 6.039 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0001742/0.4031, allocations: 0 / 309.2 MB, free: 6.039 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.006412/0.4095, allocations: 2.566 MB / 311.8 MB, free: 4.621 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.4095, allocations: 8.594 kB / 311.8 MB, free: 4.621 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00128/0.4108, allocations: 398.4 kB / 312.2 MB, free: 4.418 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006942/0.4178, allocations: 2.27 MB / 314.5 MB, free: 3.777 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.927e-05/0.4179, allocations: 36.34 kB / 314.5 MB, free: 3.773 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002608/0.4182, allocations: 56.38 kB / 314.5 MB, free: 3.77 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002259/0.4205, allocations: 0.7498 MB / 315.3 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.712e-05/0.4205, allocations: 0 / 315.3 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001053/0.4207, allocations: 17.91 kB / 315.3 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.491e-05/0.4207, allocations: 24.09 kB / 315.3 MB, free: 3.723 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002806/0.4235, allocations: 0.8555 MB / 316.2 MB, free: 3.707 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009589/0.4332, allocations: 3.078 MB / 319.3 MB, free: 2.965 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002198/0.4354, allocations: 0.6156 MB / 319.9 MB, free: 2.859 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04868/0.4842, allocations: 30.35 MB / 350.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001391/0.4856, allocations: 383.3 kB / 350.6 MB, free: 4.184 MB / 282.7 MB Notification: Performance of pre-optimization done (n=49): time 4.759e-06/0.4857, allocations: 3.938 kB / 350.6 MB, free: 4.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.004793/0.4905, allocations: 1.478 MB / 352.1 MB, free: 2.797 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.586e-05/0.4906, allocations: 59.19 kB / 352.1 MB, free: 2.727 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006313/0.4969, allocations: 2.46 MB / 354.6 MB, free: 0.8555 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002145/0.4972, allocations: 33.58 kB / 354.6 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001539/0.4987, allocations: 1.233 MB / 355.9 MB, free: 420 kB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003958/0.4992, allocations: 166.2 kB / 356 MB, free: 280 kB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.407e-05/0.4992, allocations: 16.44 kB / 356.1 MB, free: 276 kB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001905/0.4994, allocations: 346.7 kB / 356.4 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001195/0.5007, allocations: 262 kB / 356.6 MB, free: 15.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001518/0.5022, allocations: 0.6179 MB / 357.3 MB, free: 15.05 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0014/0.5037, allocations: 349.1 kB / 357.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-05/0.5037, allocations: 4 kB / 357.6 MB, free: 14.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.003465/0.5072, allocations: 0.9424 MB / 358.6 MB, free: 14.13 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.043e-05/0.5073, allocations: 13.25 kB / 358.6 MB, free: 14.12 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001877/0.5075, allocations: 84.36 kB / 358.6 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.662e-05/0.5075, allocations: 20 kB / 358.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001463/0.509, allocations: 213.3 kB / 358.9 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-05/0.5091, allocations: 29.38 kB / 358.9 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/0.5114, allocations: 123.9 kB / 359 MB, free: 13.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002975/0.5118, allocations: 66.25 kB / 359.1 MB, free: 13.64 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.001512/0.5133, allocations: 427.3 kB / 359.5 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001076/0.5144, allocations: 383.4 kB / 359.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005629/0.52, allocations: 1.257 MB / 361.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-05/0.5201, allocations: 4 kB / 361.1 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.5201, allocations: 6.234 kB / 361.1 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.269e-05/0.5201, allocations: 7.938 kB / 361.2 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006722/0.5269, allocations: 2.131 MB / 363.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001692/0.5271, allocations: 71.42 kB / 363.4 MB, free: 10.29 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009308/0.528, allocations: 105.6 kB / 363.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.318e-06/0.528, allocations: 0 / 363.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001194/0.5282, allocations: 38.38 kB / 363.5 MB, free: 10.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.502e-06/0.5282, allocations: 4 kB / 363.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5282, allocations: 4 kB / 363.5 MB, free: 10.15 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004591/0.5328, allocations: 1.42 MB / 364.9 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001776/0.5346, allocations: 464.2 kB / 365.4 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00108/0.5358, allocations: 15.98 kB / 365.4 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00182/0.5376, allocations: 40.03 kB / 365.4 MB, free: 8.191 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003109/0.5379, allocations: 63.94 kB / 365.5 MB, free: 8.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001293/0.5381, allocations: 42.7 kB / 365.5 MB, free: 8.09 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.004921/0.543, allocations: 1.881 MB / 367.4 MB, free: 6.211 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.102e-06/0.5431, allocations: 0 / 367.4 MB, free: 6.211 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.002977/0.5461, allocations: 0.5855 MB / 368 MB, free: 5.625 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.001851/0.548, allocations: 0.745 MB / 368.7 MB, free: 5.023 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.003153/0.5511, allocations: 0.8357 MB / 369.6 MB, free: 4.203 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.034e-06/0.5512, allocations: 8.125 kB / 369.6 MB, free: 4.195 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001408/0.5526, allocations: 467.3 kB / 370 MB, free: 3.723 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003384/0.556, allocations: 495.1 kB / 370.5 MB, free: 3.234 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.5681, allocations: 4.972 MB / 375.5 MB, free: 14.22 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001904/0.5701, allocations: 1.731 MB / 377.2 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000599/0.5707, allocations: 151.4 kB / 377.4 MB, free: 12.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.403e-06/0.5707, allocations: 4 kB / 377.4 MB, free: 12.31 MB / 314.7 MB Notification: Performance of Templates: time 0.08738/0.6581, allocations: 36.15 MB / 413.5 MB, free: 8.258 MB / 346.7 MB