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_trunk_ModelicaTest.Electrical.Analog.Ideal.IdealTwoWaySwitches") Notification: Performance of loadModel(ModelicaTest): time 2.565/2.565, allocations: 270.1 MB / 283.6 MB, free: 3.023 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.35e-05/3.37e-05, allocations: 6.109 kB / 348.4 MB, free: 10.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1103, allocations: 61.9 MB / 410.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4536/0.5639, allocations: 88.62 MB / 498.9 MB, free: 15.51 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002666/0.5642, allocations: 79.94 kB / 499 MB, free: 15.43 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01853/0.5828, allocations: 4.732 MB / 0.4919 GB, free: 10.69 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.734e-06/0.5828, allocations: 0 / 0.4919 GB, free: 10.69 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.573e-05/0.5829, allocations: 8.188 kB / 0.4919 GB, free: 10.68 MB / 410.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.001023/0.5839, allocations: 0.5645 MB / 0.4925 GB, free: 10.07 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.584, allocations: 8.031 kB / 0.4925 GB, free: 10.06 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.347e-05/0.5841, allocations: 43.53 kB / 0.4925 GB, free: 10.02 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004084/0.5845, allocations: 246.7 kB / 0.4928 GB, free: 9.738 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.717e-05/0.5846, allocations: 20.56 kB / 0.4928 GB, free: 9.719 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.381e-05/0.5846, allocations: 35.94 kB / 0.4928 GB, free: 9.684 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006604/0.5853, allocations: 294.3 kB / 0.4931 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5854, allocations: 0 / 0.4931 GB, free: 9.387 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.053e-05/0.5854, allocations: 16 kB / 0.4931 GB, free: 9.371 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.5854, allocations: 7.984 kB / 0.4931 GB, free: 9.363 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005597/0.586, allocations: 201.1 kB / 0.4933 GB, free: 9.164 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002781/0.5888, allocations: 1.285 MB / 0.4946 GB, free: 7.801 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008139/0.5896, allocations: 445.1 kB / 0.495 GB, free: 7.32 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000309/0.59, allocations: 137.3 kB / 0.4951 GB, free: 7.184 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.59, allocations: 4.234 kB / 0.4951 GB, free: 7.18 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.753e-05/0.5901, allocations: 38.8 kB / 0.4952 GB, free: 7.133 MB / 410.7 MB Notification: Performance of pre-optimization done (n=27): time 3.506e-06/0.5901, allocations: 0 / 0.4952 GB, free: 7.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=27): time 0.001249/0.5913, allocations: 400.4 kB / 0.4955 GB, free: 6.734 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.772e-05/0.5914, allocations: 59.36 kB / 0.4956 GB, free: 6.664 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003164/0.5917, allocations: 217 kB / 0.4958 GB, free: 6.445 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.5918, allocations: 29.7 kB / 0.4958 GB, free: 6.41 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001444/0.592, allocations: 176.1 kB / 0.496 GB, free: 6.234 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.491e-05/0.5921, allocations: 86.73 kB / 0.4961 GB, free: 6.148 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.5921, allocations: 8 kB / 0.4961 GB, free: 6.141 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.5923, allocations: 334.8 kB / 0.4964 GB, free: 5.805 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.5925, allocations: 76.56 kB / 0.4965 GB, free: 5.727 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.5928, allocations: 111.4 kB / 0.4966 GB, free: 5.609 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.593, allocations: 91.89 kB / 0.4967 GB, free: 5.52 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.243e-06/0.593, allocations: 0 / 0.4967 GB, free: 5.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001243/0.5943, allocations: 438.8 kB / 0.4971 GB, free: 5.078 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.5943, allocations: 4 kB / 0.4971 GB, free: 5.074 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.056e-06/0.5943, allocations: 0 / 0.4971 GB, free: 5.074 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.5955, allocations: 225.5 kB / 0.4973 GB, free: 4.848 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001874/0.5957, allocations: 35.92 kB / 0.4973 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004547/0.6002, allocations: 3.261 MB / 0.5005 GB, free: 1.281 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003765/0.6006, allocations: 35.77 kB / 0.5006 GB, free: 1.246 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.328e-05/0.6007, allocations: 12.14 kB / 0.5006 GB, free: 1.234 MB / 410.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.0001561/0.6009, allocations: 120.9 kB / 0.5007 GB, free: 1.109 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.936e-05/0.601, allocations: 23.72 kB / 0.5007 GB, free: 1.086 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.284e-05/0.6011, allocations: 34.88 kB / 0.5008 GB, free: 1.051 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.494e-06/0.6011, allocations: 3.984 kB / 0.5008 GB, free: 1.047 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.091e-05/0.6011, allocations: 4 kB / 0.5008 GB, free: 1.043 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.454e-06/0.6011, allocations: 0 / 0.5008 GB, free: 1.043 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001985/0.6031, allocations: 0.8549 MB / 0.5016 GB, free: 128 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.753e-06/0.6031, allocations: 3.953 kB / 0.5016 GB, free: 124 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001191/0.6033, allocations: 19.92 kB / 0.5016 GB, free: 104 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001044/0.6043, allocations: 233.5 kB / 0.5018 GB, free: 15.87 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.718e-05/0.6044, allocations: 12 kB / 0.5019 GB, free: 15.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004481/0.6089, allocations: 3.258 MB / 0.505 GB, free: 12.33 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.549e-06/0.6089, allocations: 4 kB / 0.505 GB, free: 12.32 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001223/0.6101, allocations: 0.4996 MB / 0.5055 GB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.6104, allocations: 124.7 kB / 0.5056 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.72e-05/0.6104, allocations: 4 kB / 0.5056 GB, free: 11.66 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003109/0.6107, allocations: 43.91 kB / 0.5057 GB, free: 11.62 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.6109, allocations: 35.84 kB / 0.5057 GB, free: 11.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.526e-05/0.6109, allocations: 7.938 kB / 0.5057 GB, free: 11.57 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002487/0.6112, allocations: 173.4 kB / 0.5059 GB, free: 11.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.54e-07/0.6112, allocations: 0 / 0.5059 GB, free: 11.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0005781/0.6118, allocations: 103.8 kB / 0.506 GB, free: 11.3 MB / 426.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.0001569/0.612, allocations: 111.2 kB / 0.5061 GB, free: 11.19 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.613, allocations: 495.6 kB / 0.5066 GB, free: 10.68 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.024e-06/0.6131, allocations: 0 / 0.5066 GB, free: 10.68 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007215/0.6138, allocations: 402.6 kB / 0.507 GB, free: 10.27 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.6142, allocations: 52.8 kB / 0.507 GB, free: 10.22 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008132/0.6151, allocations: 327.6 kB / 0.5073 GB, free: 9.883 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000498/0.6156, allocations: 0.7718 MB / 0.5081 GB, free: 9.082 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.6157, allocations: 18.08 kB / 0.5081 GB, free: 9.066 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.21e-05/0.6158, allocations: 15.44 kB / 0.5081 GB, free: 9.051 MB / 426.7 MB Notification: Performance of SimCode: time 1.751e-06/0.6158, allocations: 0 / 0.5081 GB, free: 9.051 MB / 426.7 MB Notification: Performance of Templates: time 0.01272/0.6285, allocations: 4.125 MB / 0.5121 GB, free: 4.941 MB / 426.7 MB