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_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadModel(Modelica): time 2.121/2.121, allocations: 224.7 MB / 241.1 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.914e-05/2.895e-05, allocations: 4 kB / 294.6 MB, free: 11.43 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.1067, allocations: 50.4 MB / 345 MB, free: 8.984 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02971/0.1365, allocations: 20.5 MB / 365.5 MB, free: 4.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03757/0.1741, allocations: 18.66 MB / 384.1 MB, free: 1.715 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005136/0.1793, allocations: 67.62 kB / 384.2 MB, free: 1.648 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.005069/0.1844, allocations: 1.134 MB / 385.3 MB, free: 0.5078 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01186/0.1963, allocations: 2.628 MB / 387.9 MB, free: 13.87 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005178/0.2015, allocations: 1.121 MB / 389.1 MB, free: 12.75 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.02972/0.2313, allocations: 10.93 MB / 400 MB, free: 1.805 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001161/0.2325, allocations: 255.2 kB / 400.2 MB, free: 1.555 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.331/0.5636, allocations: 1.555 MB / 401.8 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004585/0.5683, allocations: 1.689 MB / 403.5 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008421/0.5767, allocations: 1.454 MB / 404.9 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001669/0.5785, allocations: 104.2 kB / 405 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.5802, allocations: 0.4951 MB / 405.5 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003042/0.5832, allocations: 0.4917 MB / 406 MB, free: 12.06 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009811/0.5931, allocations: 4.615 MB / 410.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.5931, allocations: 0 / 410.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.856e-06/0.5932, allocations: 0 / 410.6 MB, free: 11.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 0.00035/0.5935, allocations: 0 / 410.6 MB, free: 11.45 MB / 330.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.01168/0.6052, allocations: 4.523 MB / 415.2 MB, free: 9.102 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.6053, allocations: 9.188 kB / 415.2 MB, free: 9.102 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002388/0.6077, allocations: 0.74 MB / 415.9 MB, free: 8.715 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01272/0.6204, allocations: 4.28 MB / 420.2 MB, free: 7.668 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.726e-05/0.6206, allocations: 65.5 kB / 420.3 MB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000506/0.6211, allocations: 102.1 kB / 420.4 MB, free: 7.656 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003893/0.625, allocations: 1.315 MB / 421.7 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.634e-05/0.6251, allocations: 0 / 421.7 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001786/0.6253, allocations: 34.53 kB / 421.7 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.187e-05/0.6254, allocations: 41.72 kB / 421.8 MB, free: 7.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004413/0.6298, allocations: 1.521 MB / 423.3 MB, free: 7.578 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01735/0.6472, allocations: 5.626 MB / 428.9 MB, free: 5.973 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003043/0.6503, allocations: 1.02 MB / 429.9 MB, free: 5.844 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1106/0.761, allocations: 60.12 MB / 490 MB, free: 8.875 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001823/0.7628, allocations: 0.5689 MB / 490.6 MB, free: 8.406 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 5.04e-06/0.7629, allocations: 0 / 490.6 MB, free: 8.406 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.007182/0.7701, allocations: 2.579 MB / 493.2 MB, free: 5.984 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.246e-05/0.7702, allocations: 59.97 kB / 493.2 MB, free: 5.91 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01182/0.782, allocations: 4.644 MB / 497.9 MB, free: 2.434 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003353/0.7824, allocations: 38.95 kB / 497.9 MB, free: 2.398 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002993/0.7854, allocations: 2.378 MB / 0.4886 GB, free: 1.746 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006618/0.7862, allocations: 299.2 kB / 0.4889 GB, free: 1.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001243/0.7863, allocations: 26.38 kB / 0.4889 GB, free: 1.496 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.7865, allocations: 363.7 kB / 0.4892 GB, free: 1.156 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001601/0.7881, allocations: 423.9 kB / 0.4896 GB, free: 0.8555 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002064/0.7902, allocations: 1.096 MB / 0.4907 GB, free: 15.59 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002013/0.7922, allocations: 0.5739 MB / 0.4913 GB, free: 15.22 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.068e-05/0.7923, allocations: 8 kB / 0.4913 GB, free: 15.21 MB / 410.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.005267/0.7976, allocations: 1.627 MB / 0.4929 GB, free: 14.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.75e-05/0.7977, allocations: 16 kB / 0.4929 GB, free: 14.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003734/0.7981, allocations: 166.2 kB / 0.493 GB, free: 13.9 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.672e-05/0.7981, allocations: 36 kB / 0.4931 GB, free: 13.86 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00242/0.8006, allocations: 372.6 kB / 0.4934 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.452e-05/0.8007, allocations: 51.09 kB / 0.4935 GB, free: 13.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004345/0.805, allocations: 208.5 kB / 0.4937 GB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000534/0.8056, allocations: 120.2 kB / 0.4938 GB, free: 13.21 MB / 410.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.002643/0.8083, allocations: 0.7018 MB / 0.4945 GB, free: 12.85 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002013/0.8103, allocations: 0.714 MB / 0.4952 GB, free: 12.12 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009863/0.8202, allocations: 2.235 MB / 0.4974 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-05/0.8203, allocations: 4 kB / 0.4974 GB, free: 10.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.8203, allocations: 4 kB / 0.4974 GB, free: 10.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.507e-05/0.8203, allocations: 7.938 kB / 0.4974 GB, free: 10.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0118/0.8321, allocations: 3.628 MB / 0.5009 GB, free: 6.586 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003189/0.8325, allocations: 136 kB / 0.5011 GB, free: 6.453 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/0.834, allocations: 166 kB / 0.5012 GB, free: 6.297 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.726e-05/0.834, allocations: 11.89 kB / 0.5012 GB, free: 6.285 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002074/0.8342, allocations: 59.98 kB / 0.5013 GB, free: 6.227 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.858e-06/0.8343, allocations: 8 kB / 0.5013 GB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8343, allocations: 0 / 0.5013 GB, free: 6.219 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007114/0.8414, allocations: 2.304 MB / 0.5035 GB, free: 3.863 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003449/0.8449, allocations: 0.8006 MB / 0.5043 GB, free: 3.035 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00241/0.8474, allocations: 12 kB / 0.5043 GB, free: 3.023 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003517/0.8509, allocations: 55.95 kB / 0.5044 GB, free: 2.969 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004889/0.8514, allocations: 96.47 kB / 0.5045 GB, free: 2.875 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002222/0.8517, allocations: 64 kB / 0.5045 GB, free: 2.812 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.009328/0.861, allocations: 3.534 MB / 0.508 GB, free: 15.31 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.61e-07/0.8611, allocations: 4 kB / 0.508 GB, free: 15.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005069/0.8662, allocations: 1.077 MB / 0.509 GB, free: 14.23 MB / 426.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.002708/0.8689, allocations: 1.096 MB / 0.5101 GB, free: 13.36 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004639/0.8736, allocations: 1.467 MB / 0.5115 GB, free: 11.92 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.538e-06/0.8737, allocations: 4 kB / 0.5116 GB, free: 11.92 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002093/0.8758, allocations: 0.7856 MB / 0.5123 GB, free: 11.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009467/0.8853, allocations: 1.137 MB / 0.5134 GB, free: 9.961 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02197/0.9073, allocations: 9.261 MB / 0.5225 GB, free: 0.6602 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003799/0.9112, allocations: 2.709 MB / 0.5251 GB, free: 13.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001023/0.9122, allocations: 287.4 kB / 0.5254 GB, free: 13.64 MB / 442.7 MB Notification: Performance of SimCode: time 1.944e-06/0.9122, allocations: 0 / 0.5254 GB, free: 13.64 MB / 442.7 MB Notification: Performance of Templates: time 0.4396/1.352, allocations: 67.43 MB / 0.5912 GB, free: 141.8 MB / 458.7 MB