Running command: translateModel(Modelica.Electrical.Spice3.Examples.Inverter,tolerance=1e-07,outputFormat="mat",numberOfIntervals=3998,variableFilter="time|mp.S.v",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Inverter") Notification: Performance of loadModel(Modelica): time 2.081/2.081, allocations: 194.9 MB / 211.2 MB, free: 8.355 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.076e-05/3.087e-05, allocations: 4 kB / 258.8 MB, free: 8.715 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3009, allocations: 44.51 MB / 303.3 MB, free: 12.73 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Inverter): time 0.009158/0.3101, allocations: 6.041 MB / 309.3 MB, free: 7.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.02627/0.3364, allocations: 15.01 MB / 324.3 MB, free: 8.609 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00143/0.3379, allocations: 19.88 kB / 324.4 MB, free: 8.59 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002369/0.3403, allocations: 0.5595 MB / 324.9 MB, free: 8.027 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00592/0.3463, allocations: 1.323 MB / 326.2 MB, free: 6.699 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003798/0.3501, allocations: 0.9186 MB / 327.2 MB, free: 5.777 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.007807/0.358, allocations: 2.778 MB / 329.9 MB, free: 2.996 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003086/0.3583, allocations: 64.41 kB / 330 MB, free: 2.934 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007933/0.3592, allocations: 370.8 kB / 330.4 MB, free: 2.57 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008107/0.36, allocations: 446 kB / 330.8 MB, free: 2.133 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005256/0.3653, allocations: 1.199 MB / 332 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005195/0.3658, allocations: 56 kB / 332.1 MB, free: 0.8789 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002252/0.3661, allocations: 143 kB / 332.2 MB, free: 0.7383 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005215/0.3666, allocations: 128 kB / 332.3 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003291/0.3699, allocations: 1.505 MB / 333.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.37, allocations: 0 / 333.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of FrontEnd: time 4.007e-06/0.37, allocations: 0 / 333.8 MB, free: 15.11 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.174e-05/0.3701, allocations: 0 / 333.8 MB, free: 15.11 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.003737/0.3738, allocations: 1.476 MB / 335.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.3739, allocations: 8.031 kB / 335.3 MB, free: 13.57 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004767/0.3744, allocations: 193.7 kB / 335.5 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003154/0.3775, allocations: 1.211 MB / 336.7 MB, free: 12.09 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.895e-05/0.3777, allocations: 16.56 kB / 336.7 MB, free: 12.08 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001301/0.3778, allocations: 28 kB / 336.8 MB, free: 12.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001515/0.3794, allocations: 453.1 kB / 337.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.727e-05/0.3794, allocations: 7.938 kB / 337.2 MB, free: 11.59 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.859e-05/0.3795, allocations: 15.98 kB / 337.2 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.552e-05/0.3795, allocations: 4 kB / 337.2 MB, free: 11.57 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001946/0.3815, allocations: 0.5137 MB / 337.7 MB, free: 11.05 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004402/0.3859, allocations: 1.635 MB / 339.4 MB, free: 9.352 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001726/0.3877, allocations: 411.3 kB / 339.8 MB, free: 8.941 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02363/0.4114, allocations: 15.31 MB / 355.1 MB, free: 7.566 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001047/0.4125, allocations: 279 kB / 355.4 MB, free: 7.281 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 3.937e-06/0.4125, allocations: 0 / 355.4 MB, free: 7.281 MB / 298.7 MB Notification: Performance of matching and sorting (n=29): time 0.003707/0.4162, allocations: 0.904 MB / 356.3 MB, free: 6.348 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.682e-05/0.4163, allocations: 59.39 kB / 356.3 MB, free: 6.277 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002476/0.4188, allocations: 1.227 MB / 357.5 MB, free: 5.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.542e-05/0.419, allocations: 29.7 kB / 357.6 MB, free: 4.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00076/0.4197, allocations: 0.6388 MB / 358.2 MB, free: 4.34 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001763/0.4199, allocations: 102.6 kB / 358.3 MB, free: 4.238 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.62e-05/0.42, allocations: 8 kB / 358.3 MB, free: 4.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.4201, allocations: 334.8 kB / 358.6 MB, free: 3.895 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008541/0.421, allocations: 181 kB / 358.8 MB, free: 3.715 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009982/0.422, allocations: 375.4 kB / 359.2 MB, free: 3.258 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008998/0.423, allocations: 224.1 kB / 359.4 MB, free: 3.039 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.014e-06/0.423, allocations: 0 / 359.4 MB, free: 3.039 MB / 298.7 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002309/0.4253, allocations: 0.6436 MB / 360.1 MB, free: 2.387 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.422e-05/0.4254, allocations: 8 kB / 360.1 MB, free: 2.379 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001026/0.4255, allocations: 40 kB / 360.1 MB, free: 2.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005152/0.426, allocations: 136.8 kB / 360.2 MB, free: 2.203 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007912/0.4268, allocations: 128.2 kB / 360.4 MB, free: 2.078 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009281/0.4278, allocations: 0.6773 MB / 361 MB, free: 1.375 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001154/0.429, allocations: 83.5 kB / 361.1 MB, free: 1.293 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.4291, allocations: 39.98 kB / 361.2 MB, free: 1.254 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0006738/0.4298, allocations: 269.6 kB / 361.4 MB, free: 0.9805 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.4301, allocations: 185.8 kB / 361.6 MB, free: 0.7969 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003549/0.4337, allocations: 0.8048 MB / 362.4 MB, free: 15.98 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.4338, allocations: 4 kB / 362.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.4338, allocations: 0 / 362.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.4338, allocations: 0 / 362.4 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003749/0.4376, allocations: 1.351 MB / 363.8 MB, free: 14.55 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.565e-05/0.4377, allocations: 32 kB / 363.8 MB, free: 14.52 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004614/0.4382, allocations: 60.02 kB / 363.8 MB, free: 14.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004009/0.4386, allocations: 124.8 kB / 364 MB, free: 14.34 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.477e-05/0.4387, allocations: 27.94 kB / 364 MB, free: 14.31 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008525/0.4396, allocations: 0.6617 MB / 364.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.4396, allocations: 0 / 364.7 MB, free: 13.62 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00243/0.442, allocations: 0.7896 MB / 365.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006612/0.4427, allocations: 282.6 kB / 365.7 MB, free: 12.49 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003161/0.4431, allocations: 7.984 kB / 365.7 MB, free: 12.48 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008058/0.4439, allocations: 43.92 kB / 365.8 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.4441, allocations: 39.95 kB / 365.8 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.828e-05/0.4442, allocations: 27.98 kB / 365.8 MB, free: 12.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.002108/0.4463, allocations: 0.9419 MB / 366.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.4463, allocations: 0 / 366.8 MB, free: 11.41 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001407/0.4478, allocations: 335.8 kB / 367.1 MB, free: 11.08 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * 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 (21): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.001209/0.449, allocations: 0.5581 MB / 367.7 MB, free: 10.52 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002327/0.4514, allocations: 0.5474 MB / 368.2 MB, free: 9.957 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.222e-06/0.4514, allocations: 0 / 368.2 MB, free: 9.957 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001184/0.4526, allocations: 319.4 kB / 368.5 MB, free: 9.633 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00147/0.4541, allocations: 231 kB / 368.8 MB, free: 9.402 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005976/0.4601, allocations: 2.551 MB / 371.3 MB, free: 6.805 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009014/0.4611, allocations: 1.18 MB / 372.5 MB, free: 5.594 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003179/0.4614, allocations: 79.44 kB / 372.6 MB, free: 5.516 MB / 314.7 MB Notification: Performance of SimCode: time 1.182e-06/0.4614, allocations: 0 / 372.6 MB, free: 5.516 MB / 314.7 MB Notification: Performance of Templates: time 0.05161/0.513, allocations: 24.22 MB / 396.8 MB, free: 13.28 MB / 346.7 MB