Running command: translateModel(ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|twoWay.LossPower|twoWay.p.i|twoWay.n1.v|twoWay.n1.i|twoWay.n2.v|twoWay.n2.i|controlledTwoWay.LossPower|controlledTwoWay.p.i|controlledTwoWay.n1.v|controlledTwoWay.n1.i|controlledTwoWay.n2.v|controlledTwoWay.n2.i",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadModel(ModelicaTest): time 2.511/2.511, allocations: 270 MB / 283.6 MB, free: 1.922 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.744e-05/2.735e-05, allocations: 0 / 348.4 MB, free: 2.801 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3227/0.3227, allocations: 61.87 MB / 410.3 MB, free: 10.74 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1475/0.4703, allocations: 88.63 MB / 498.9 MB, free: 1.992 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002704/0.4706, allocations: 71.95 kB / 499 MB, free: 1.922 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01924/0.4899, allocations: 4.746 MB / 0.4919 GB, free: 13.16 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.251e-06/0.4899, allocations: 0 / 0.4919 GB, free: 13.16 MB / 426.7 MB Notification: Performance of Transformations before backend: time 2.261e-05/0.49, allocations: 8 kB / 0.4919 GB, free: 13.15 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.001047/0.491, allocations: 0.5529 MB / 0.4925 GB, free: 12.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.4911, allocations: 12.03 kB / 0.4925 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000112/0.4912, allocations: 39.52 kB / 0.4925 GB, free: 12.5 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004356/0.4916, allocations: 254.8 kB / 0.4927 GB, free: 12.21 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.606e-05/0.4917, allocations: 20.56 kB / 0.4928 GB, free: 12.19 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.44e-05/0.4918, allocations: 27.95 kB / 0.4928 GB, free: 12.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006913/0.4925, allocations: 291.5 kB / 0.4931 GB, free: 11.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.656e-05/0.4925, allocations: 3.938 kB / 0.4931 GB, free: 11.86 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.206e-05/0.4926, allocations: 16 kB / 0.4931 GB, free: 11.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.38e-05/0.4926, allocations: 8 kB / 0.4931 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005225/0.4931, allocations: 193.1 kB / 0.4933 GB, free: 11.65 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003517/0.4967, allocations: 1.296 MB / 0.4945 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009056/0.4976, allocations: 445.9 kB / 0.495 GB, free: 9.793 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003099/0.498, allocations: 133.3 kB / 0.4951 GB, free: 9.66 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.797e-05/0.498, allocations: 4.234 kB / 0.4951 GB, free: 9.656 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.885e-05/0.4981, allocations: 38.8 kB / 0.4951 GB, free: 9.609 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 3.771e-06/0.4981, allocations: 3.938 kB / 0.4951 GB, free: 9.605 MB / 426.7 MB Notification: Performance of matching and sorting (n=27): time 0.001286/0.4994, allocations: 402.3 kB / 0.4955 GB, free: 9.203 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.677e-05/0.4994, allocations: 55.36 kB / 0.4956 GB, free: 9.137 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000352/0.4998, allocations: 213.1 kB / 0.4958 GB, free: 8.918 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.762e-05/0.4999, allocations: 33.7 kB / 0.4958 GB, free: 8.879 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000143/0.5, allocations: 168.1 kB / 0.496 GB, free: 8.711 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001019/0.5001, allocations: 86.75 kB / 0.4961 GB, free: 8.625 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.937e-05/0.5002, allocations: 8 kB / 0.4961 GB, free: 8.617 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.5004, allocations: 334.8 kB / 0.4964 GB, free: 8.281 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002142/0.5006, allocations: 80.56 kB / 0.4965 GB, free: 8.199 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.5008, allocations: 107.3 kB / 0.4966 GB, free: 8.086 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.5011, allocations: 87.95 kB / 0.4966 GB, free: 8 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.473e-06/0.5011, allocations: 0 / 0.4966 GB, free: 8 MB / 426.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001297/0.5024, allocations: 439.3 kB / 0.4971 GB, free: 7.559 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.518e-05/0.5025, allocations: 8 kB / 0.4971 GB, free: 7.551 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/0.5025, allocations: 7.969 kB / 0.4971 GB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001126/0.5036, allocations: 225.5 kB / 0.4973 GB, free: 7.316 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001947/0.5038, allocations: 35.92 kB / 0.4973 GB, free: 7.281 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00471/0.5086, allocations: 3.257 MB / 0.5005 GB, free: 3.754 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003083/0.5089, allocations: 43.7 kB / 0.5006 GB, free: 3.711 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.509, allocations: 4 kB / 0.5006 GB, free: 3.707 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 17 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.5091, allocations: 128 kB / 0.5007 GB, free: 3.578 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.517e-05/0.5092, allocations: 27.72 kB / 0.5007 GB, free: 3.551 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.403e-05/0.5093, allocations: 34.86 kB / 0.5007 GB, free: 3.516 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.816e-06/0.5094, allocations: 4 kB / 0.5007 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.754e-06/0.5094, allocations: 0 / 0.5007 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.801e-06/0.5094, allocations: 0 / 0.5007 GB, free: 3.512 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002009/0.5114, allocations: 0.855 MB / 0.5016 GB, free: 2.594 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.5115, allocations: 15.88 kB / 0.5016 GB, free: 2.578 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001139/0.5116, allocations: 12 kB / 0.5016 GB, free: 2.566 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001054/0.5126, allocations: 237.5 kB / 0.5018 GB, free: 2.328 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.759e-05/0.5127, allocations: 4 kB / 0.5018 GB, free: 2.324 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004684/0.5174, allocations: 3.265 MB / 0.505 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.303e-06/0.5174, allocations: 4.062 kB / 0.505 GB, free: 14.79 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00128/0.5187, allocations: 0.4884 MB / 0.5055 GB, free: 14.28 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000222/0.519, allocations: 124.7 kB / 0.5056 GB, free: 14.14 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.899e-05/0.5191, allocations: 12 kB / 0.5056 GB, free: 14.12 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000299/0.5194, allocations: 31.98 kB / 0.5057 GB, free: 14.09 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001177/0.5195, allocations: 31.91 kB / 0.5057 GB, free: 14.06 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.805e-05/0.5195, allocations: 8 kB / 0.5057 GB, free: 14.05 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002396/0.5198, allocations: 173.4 kB / 0.5059 GB, free: 13.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 9.06e-07/0.5198, allocations: 0 / 0.5059 GB, free: 13.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005804/0.5204, allocations: 107.8 kB / 0.506 GB, free: 13.79 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (booleanStep.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 6,(2,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001646/0.5206, allocations: 107.2 kB / 0.5061 GB, free: 13.67 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.5217, allocations: 499.3 kB / 0.5065 GB, free: 13.16 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.205e-06/0.5217, allocations: 4 kB / 0.5066 GB, free: 13.16 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007232/0.5225, allocations: 391.3 kB / 0.5069 GB, free: 12.76 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000475/0.523, allocations: 42.39 kB / 0.507 GB, free: 12.72 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008434/0.5238, allocations: 343.5 kB / 0.5073 GB, free: 12.36 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.5244, allocations: 0.7718 MB / 0.508 GB, free: 11.56 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001342/0.5245, allocations: 18.08 kB / 0.5081 GB, free: 11.54 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.6e-05/0.5246, allocations: 19.44 kB / 0.5081 GB, free: 11.52 MB / 442.7 MB Notification: Performance of SimCode: time 1.957e-06/0.5246, allocations: 0 / 0.5081 GB, free: 11.52 MB / 442.7 MB Notification: Performance of Templates: time 0.01275/0.5374, allocations: 4.119 MB / 0.5121 GB, free: 7.43 MB / 442.7 MB