Running command: translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 1.747/1.747, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.981e-05/2.977e-05, allocations: 0 / 228.1 MB, free: 7.996 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08339/0.08345, allocations: 38.77 MB / 266.9 MB, free: 1.145 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.03006/0.1136, allocations: 19.6 MB / 286.5 MB, free: 13.49 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.2621/0.3758, allocations: 17.84 MB / 304.3 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00548/0.3813, allocations: 66.47 kB / 304.4 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004955/0.3863, allocations: 1.115 MB / 305.5 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01217/0.3985, allocations: 2.613 MB / 308.1 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005438/0.404, allocations: 1.106 MB / 309.2 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.03806/0.4421, allocations: 10.84 MB / 320.1 MB, free: 2.379 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001912/0.4441, allocations: 261.6 kB / 320.3 MB, free: 2.328 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005556/0.4497, allocations: 1.313 MB / 321.6 MB, free: 2.18 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006103/0.4559, allocations: 1.637 MB / 323.3 MB, free: 1.57 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01101/0.467, allocations: 1.232 MB / 324.5 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001664/0.4687, allocations: 105.4 kB / 324.6 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001424/0.4702, allocations: 0.4945 MB / 325.1 MB, free: 1.172 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.004165/0.4744, allocations: 0.4931 MB / 325.6 MB, free: 1.168 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01288/0.4873, allocations: 4.657 MB / 330.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.948e-06/0.4874, allocations: 0 / 330.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.4874, allocations: 3.938 kB / 330.3 MB, free: 14.38 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0003205/0.4878, allocations: 0 / 330.3 MB, free: 14.38 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.01573/0.5035, allocations: 4.542 MB / 334.8 MB, free: 10.1 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.338e-05/0.5036, allocations: 8.031 kB / 334.8 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002587/0.5062, allocations: 0.7448 MB / 335.6 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01849/0.5248, allocations: 4.306 MB / 339.9 MB, free: 5.859 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001533/0.525, allocations: 65.94 kB / 339.9 MB, free: 5.824 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008246/0.5259, allocations: 101.3 kB / 340 MB, free: 5.758 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006867/0.5328, allocations: 1.309 MB / 341.3 MB, free: 4.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.879e-05/0.5329, allocations: 4 kB / 341.3 MB, free: 4.836 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003561/0.5333, allocations: 34.94 kB / 341.4 MB, free: 4.828 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.715e-05/0.5334, allocations: 40.91 kB / 341.4 MB, free: 4.797 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007858/0.5412, allocations: 1.521 MB / 342.9 MB, free: 3.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02685/0.5682, allocations: 5.644 MB / 348.6 MB, free: 15.7 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005176/0.5734, allocations: 1.032 MB / 349.6 MB, free: 14.66 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.128/0.7015, allocations: 60.24 MB / 409.8 MB, free: 10.34 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001923/0.7035, allocations: 0.5716 MB / 410.4 MB, free: 9.754 MB / 346.7 MB Notification: Performance of pre-optimization done (n=85): time 5.461e-06/0.7035, allocations: 0 / 410.4 MB, free: 9.754 MB / 346.7 MB Notification: Performance of matching and sorting (n=85): time 0.006906/0.7104, allocations: 2.581 MB / 413 MB, free: 7.02 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/0.7106, allocations: 63.95 kB / 413.1 MB, free: 6.945 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01181/0.7224, allocations: 4.672 MB / 417.7 MB, free: 2.309 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002872/0.7227, allocations: 41.7 kB / 417.8 MB, free: 2.262 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003562/0.7263, allocations: 2.359 MB / 420.1 MB, free: 15.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006241/0.727, allocations: 299.4 kB / 420.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.7272, allocations: 36 kB / 420.5 MB, free: 15.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000199/0.7274, allocations: 374.5 kB / 420.8 MB, free: 15.2 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.729, allocations: 415.8 kB / 421.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002215/0.7313, allocations: 1.1 MB / 422.3 MB, free: 13.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002125/0.7334, allocations: 0.5725 MB / 422.9 MB, free: 12.8 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-05/0.7335, allocations: 8 kB / 422.9 MB, free: 12.79 MB / 362.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005695/0.7392, allocations: 1.633 MB / 424.5 MB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.546e-05/0.7393, allocations: 17.88 kB / 424.6 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003847/0.7397, allocations: 164 kB / 424.7 MB, free: 10.98 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.919e-05/0.7398, allocations: 36 kB / 424.8 MB, free: 10.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002387/0.7422, allocations: 371.6 kB / 425.1 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.135e-05/0.7423, allocations: 43.86 kB / 425.2 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003567/0.7459, allocations: 191.1 kB / 425.3 MB, free: 10.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004707/0.7464, allocations: 136 kB / 425.5 MB, free: 10.22 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002416/0.7488, allocations: 0.7081 MB / 426.2 MB, free: 9.504 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001626/0.7504, allocations: 0.714 MB / 426.9 MB, free: 8.781 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009849/0.7603, allocations: 2.248 MB / 429.2 MB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.209e-05/0.7604, allocations: 8 kB / 429.2 MB, free: 6.52 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.7604, allocations: 3.984 kB / 429.2 MB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.518e-05/0.7605, allocations: 0 / 429.2 MB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01148/0.7719, allocations: 3.661 MB / 432.8 MB, free: 2.805 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003248/0.7723, allocations: 140 kB / 433 MB, free: 2.668 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/0.7738, allocations: 163.9 kB / 433.1 MB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.354e-05/0.7739, allocations: 7.938 kB / 433.1 MB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002443/0.7741, allocations: 59.98 kB / 433.2 MB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.033e-06/0.7741, allocations: 0 / 433.2 MB, free: 2.441 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.344e-06/0.7742, allocations: 7.953 kB / 433.2 MB, free: 2.434 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006728/0.7809, allocations: 2.316 MB / 435.5 MB, free: 76 kB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.2281/1.009, allocations: 0.8011 MB / 436.3 MB, free: 128.8 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001831/1.011, allocations: 15.83 kB / 436.3 MB, free: 128.8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003028/1.014, allocations: 44.72 kB / 436.4 MB, free: 128.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005212/1.015, allocations: 99.91 kB / 436.5 MB, free: 128.8 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002183/1.015, allocations: 78.91 kB / 436.5 MB, free: 128.8 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.01051/1.025, allocations: 3.561 MB / 440.1 MB, free: 128.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.182e-06/1.025, allocations: 0 / 440.1 MB, free: 128.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004255/1.03, allocations: 1.085 MB / 441.2 MB, free: 128.3 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002777/1.033, allocations: 1.11 MB / 442.3 MB, free: 128.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004347/1.037, allocations: 1.47 MB / 443.8 MB, free: 127.6 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/1.037, allocations: 0 / 443.8 MB, free: 127.6 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001963/1.039, allocations: 0.7902 MB / 444.6 MB, free: 127.2 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005983/1.045, allocations: 0.9279 MB / 445.5 MB, free: 126.8 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01859/1.064, allocations: 9.289 MB / 454.8 MB, free: 121.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003264/1.067, allocations: 2.722 MB / 457.5 MB, free: 121 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008732/1.068, allocations: 293.5 kB / 457.8 MB, free: 121 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/1.068, allocations: 0 / 457.8 MB, free: 121 MB / 362.7 MB Notification: Performance of Templates: time 0.13/1.198, allocations: 67.77 MB / 0.5132 GB, free: 56.04 MB / 362.7 MB