Running command: translateModel(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.72/1.72, allocations: 171.2 MB / 185.7 MB, free: 1.395 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.64e-05/2.638e-05, allocations: 0 / 228.1 MB, free: 7.332 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09074/0.0908, allocations: 38.77 MB / 266.9 MB, free: 484 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004271/0.09512, allocations: 2.483 MB / 269.4 MB, free: 13.96 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.0971, allocations: 0.7018 MB / 270.1 MB, free: 13.26 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/0.09735, allocations: 8 kB / 270.1 MB, free: 13.25 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001142/0.09748, allocations: 43.67 kB / 270.2 MB, free: 13.21 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005027/0.09799, allocations: 123.6 kB / 270.3 MB, free: 13.09 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005305/0.09854, allocations: 75.86 kB / 270.3 MB, free: 13.01 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006244/0.09919, allocations: 211.5 kB / 270.6 MB, free: 12.8 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003033/0.09952, allocations: 82.23 kB / 270.6 MB, free: 12.73 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000279/0.09982, allocations: 119.7 kB / 270.7 MB, free: 12.61 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002829/0.1001, allocations: 135.5 kB / 270.9 MB, free: 12.48 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.437e-05/0.1002, allocations: 12 kB / 270.9 MB, free: 12.46 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.421e-05/0.1003, allocations: 16 kB / 270.9 MB, free: 12.45 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.005e-05/0.1004, allocations: 59.75 kB / 271 MB, free: 12.39 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001084/0.1005, allocations: 32 kB / 271 MB, free: 12.36 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004433/0.1009, allocations: 303.4 kB / 271.3 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.101, allocations: 4 kB / 271.3 MB, free: 12.06 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.101, allocations: 0 / 271.3 MB, free: 12.06 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.12e-05/0.101, allocations: 0 / 271.3 MB, free: 12.06 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 78 * Number of variables: 78 Notification: Performance of Generate backend data structure: time 0.001419/0.1024, allocations: 0.5849 MB / 271.9 MB, free: 11.43 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.67e-05/0.1025, allocations: 12.03 kB / 271.9 MB, free: 11.41 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001174/0.1026, allocations: 39.53 kB / 271.9 MB, free: 11.38 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004851/0.1031, allocations: 271.1 kB / 272.2 MB, free: 11.07 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000117/0.1032, allocations: 84.02 kB / 272.3 MB, free: 10.98 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.048e-05/0.1033, allocations: 28 kB / 272.3 MB, free: 10.95 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000951/0.1043, allocations: 342.6 kB / 272.6 MB, free: 10.6 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.57e-05/0.1043, allocations: 3.938 kB / 272.6 MB, free: 10.59 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.183e-05/0.1044, allocations: 12 kB / 272.7 MB, free: 10.58 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.616e-05/0.1044, allocations: 11.98 kB / 272.7 MB, free: 10.57 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008083/0.1052, allocations: 242.1 kB / 272.9 MB, free: 10.33 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00315/0.1084, allocations: 1.41 MB / 274.3 MB, free: 8.82 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007613/0.1092, allocations: 207.8 kB / 274.5 MB, free: 8.609 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.1093, allocations: 3.938 kB / 274.5 MB, free: 8.605 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004992/0.1098, allocations: 170.1 kB / 274.7 MB, free: 8.418 MB / 234.7 MB Notification: Performance of pre-optimization done (n=19): time 2.675e-06/0.1098, allocations: 0 / 274.7 MB, free: 8.418 MB / 234.7 MB Notification: Performance of matching and sorting (n=19): time 0.002003/0.1118, allocations: 453.1 kB / 275.1 MB, free: 7.949 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.091e-05/0.1119, allocations: 106.8 kB / 275.2 MB, free: 7.82 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003767/0.1123, allocations: 238.1 kB / 275.5 MB, free: 7.578 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.119e-05/0.1123, allocations: 33.7 kB / 275.5 MB, free: 7.539 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001948/0.1125, allocations: 207.8 kB / 275.7 MB, free: 7.332 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.089e-05/0.1126, allocations: 63.09 kB / 275.8 MB, free: 7.27 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.179e-05/0.1127, allocations: 8 kB / 275.8 MB, free: 7.262 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1128, allocations: 334.8 kB / 276.1 MB, free: 6.926 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000339/0.1132, allocations: 87.95 kB / 276.2 MB, free: 6.84 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004422/0.1136, allocations: 195.4 kB / 276.4 MB, free: 6.605 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003699/0.114, allocations: 99.95 kB / 276.5 MB, free: 6.508 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.114, allocations: 0 / 276.5 MB, free: 6.508 MB / 234.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001019/0.1151, allocations: 333.8 kB / 276.8 MB, free: 6.172 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.247e-05/0.1151, allocations: 8 kB / 276.8 MB, free: 6.164 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.1151, allocations: 352 / 276.8 MB, free: 6.164 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000371/0.1155, allocations: 60.81 kB / 276.9 MB, free: 6.102 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005552/0.1161, allocations: 87.89 kB / 277 MB, free: 6.016 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001844/0.1179, allocations: 1.412 MB / 278.4 MB, free: 4.473 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004324/0.1184, allocations: 51.7 kB / 278.4 MB, free: 4.422 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.492e-05/0.1185, allocations: 12 kB / 278.4 MB, free: 4.41 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.switch2.off,switch2.off,$PRE.switch2.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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 1} Notification: Performance of prepare postOptimizeDAE: time 0.000253/0.1187, allocations: 153.8 kB / 278.6 MB, free: 4.25 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.209e-05/0.1188, allocations: 23.72 kB / 278.6 MB, free: 4.227 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.525e-05/0.1189, allocations: 34.16 kB / 278.6 MB, free: 4.188 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.1189, allocations: 0 / 278.6 MB, free: 4.188 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1189, allocations: 4 kB / 278.6 MB, free: 4.184 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.163e-06/0.1189, allocations: 3.984 kB / 278.6 MB, free: 4.18 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004978/0.1194, allocations: 341.2 kB / 279 MB, free: 3.797 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.1194, allocations: 0 / 279 MB, free: 3.797 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004698/0.1199, allocations: 67.89 kB / 279 MB, free: 3.73 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002842/0.1202, allocations: 52.77 kB / 279.1 MB, free: 3.676 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.961e-05/0.1203, allocations: 8 kB / 279.1 MB, free: 3.668 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001626/0.1219, allocations: 1.335 MB / 280.4 MB, free: 2.203 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.1219, allocations: 0 / 280.4 MB, free: 2.203 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001363/0.1233, allocations: 381.3 kB / 280.8 MB, free: 1.812 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001682/0.1235, allocations: 124.7 kB / 280.9 MB, free: 1.672 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.957e-05/0.1236, allocations: 4 kB / 280.9 MB, free: 1.668 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003279/0.1239, allocations: 28.05 kB / 281 MB, free: 1.641 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001264/0.124, allocations: 31.94 kB / 281 MB, free: 1.609 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.076e-05/0.1241, allocations: 4 kB / 281 MB, free: 1.605 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002749/0.1244, allocations: 193.9 kB / 281.2 MB, free: 1.41 MB / 234.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.1244, allocations: 0 / 281.2 MB, free: 1.41 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0005427/0.1249, allocations: 87.78 kB / 281.3 MB, free: 1.324 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor1.i,inductor2.i) * Number of discrete variables: 4 ($whenCondition1,switch2.off,switch2.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001713/0.1251, allocations: 111.2 kB / 281.4 MB, free: 1.207 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001035/0.1262, allocations: 334.7 kB / 281.7 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1262, allocations: 0 / 281.7 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005697/0.1268, allocations: 214.5 kB / 281.9 MB, free: 0.6445 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.1271, allocations: 33.25 kB / 282 MB, free: 0.6094 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002551/0.1297, allocations: 0.8148 MB / 282.8 MB, free: 15.76 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004272/0.1301, allocations: 0.7796 MB / 283.5 MB, free: 14.96 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002028/0.1303, allocations: 26.28 kB / 283.6 MB, free: 14.93 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.113e-05/0.1304, allocations: 23.44 kB / 283.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of SimCode: time 7.62e-07/0.1304, allocations: 0 / 283.6 MB, free: 14.91 MB / 250.7 MB Notification: Performance of Templates: time 0.009693/0.1401, allocations: 2.76 MB / 286.4 MB, free: 12.16 MB / 250.7 MB