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_cpp_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.751/1.751, allocations: 171.1 MB / 186.3 MB, free: 1.418 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.106e-05/3.098e-05, allocations: 4 kB / 228.1 MB, free: 7.984 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08041/0.08047, allocations: 38.77 MB / 266.9 MB, free: 1.137 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc): time 0.004087/0.08461, allocations: 2.485 MB / 269.4 MB, free: 14.62 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.08647, allocations: 0.7057 MB / 270.1 MB, free: 13.92 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002427/0.08676, allocations: 8 kB / 270.1 MB, free: 13.91 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000123/0.0869, allocations: 43.66 kB / 270.1 MB, free: 13.87 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.08727, allocations: 119.6 kB / 270.2 MB, free: 13.75 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003876/0.08767, allocations: 75.84 kB / 270.3 MB, free: 13.68 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004661/0.08815, allocations: 215.5 kB / 270.5 MB, free: 13.46 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.08838, allocations: 74.25 kB / 270.6 MB, free: 13.39 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002621/0.08865, allocations: 123.7 kB / 270.7 MB, free: 13.27 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.08894, allocations: 127.6 kB / 270.9 MB, free: 13.15 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.827e-05/0.08903, allocations: 12 kB / 270.9 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.754e-05/0.08911, allocations: 19.94 kB / 270.9 MB, free: 13.12 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.72e-05/0.08919, allocations: 55.81 kB / 270.9 MB, free: 13.06 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001075/0.08931, allocations: 36 kB / 271 MB, free: 13.03 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004537/0.08978, allocations: 303.4 kB / 271.3 MB, free: 12.73 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.0898, allocations: 4 kB / 271.3 MB, free: 12.73 MB / 234.7 MB Notification: Performance of FrontEnd: time 4.608e-06/0.08982, allocations: 0 / 271.3 MB, free: 12.73 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.08984, allocations: 3.938 kB / 271.3 MB, free: 12.72 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.001481/0.09133, allocations: 0.5849 MB / 271.9 MB, free: 12.09 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.774e-05/0.0914, allocations: 8.031 kB / 271.9 MB, free: 12.08 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.09154, allocations: 39.53 kB / 271.9 MB, free: 12.04 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004973/0.09205, allocations: 271.1 kB / 272.2 MB, free: 11.74 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001181/0.09219, allocations: 84.02 kB / 272.3 MB, free: 11.64 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.482e-05/0.0923, allocations: 35.98 kB / 272.3 MB, free: 11.61 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009777/0.09329, allocations: 334.6 kB / 272.6 MB, free: 11.27 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.642e-05/0.09332, allocations: 0 / 272.6 MB, free: 11.27 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.442e-05/0.09339, allocations: 19.98 kB / 272.6 MB, free: 11.25 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.687e-05/0.09342, allocations: 8 kB / 272.6 MB, free: 11.24 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008293/0.09426, allocations: 238.1 kB / 272.9 MB, free: 11 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003255/0.09753, allocations: 1.414 MB / 274.3 MB, free: 9.488 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007593/0.09834, allocations: 206.5 kB / 274.5 MB, free: 9.277 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.599e-05/0.0984, allocations: 4 kB / 274.5 MB, free: 9.273 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005059/0.09892, allocations: 166.1 kB / 274.7 MB, free: 9.09 MB / 234.7 MB Notification: Performance of pre-optimization done (n=19): time 2.575e-06/0.09894, allocations: 0 / 274.7 MB, free: 9.09 MB / 234.7 MB Notification: Performance of matching and sorting (n=19): time 0.002035/0.101, allocations: 453.1 kB / 275.1 MB, free: 8.621 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.78e-05/0.1011, allocations: 110.8 kB / 275.2 MB, free: 8.488 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000384/0.1015, allocations: 234.1 kB / 275.4 MB, free: 8.25 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.658e-05/0.1016, allocations: 33.7 kB / 275.5 MB, free: 8.211 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/0.1018, allocations: 266.2 kB / 275.7 MB, free: 7.949 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.939e-05/0.1019, allocations: 59.11 kB / 275.8 MB, free: 7.891 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.1019, allocations: 12 kB / 275.8 MB, free: 7.879 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.1021, allocations: 326.8 kB / 276.1 MB, free: 7.551 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003572/0.1024, allocations: 83.95 kB / 276.2 MB, free: 7.469 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004742/0.1029, allocations: 199.4 kB / 276.4 MB, free: 7.23 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003733/0.1033, allocations: 95.95 kB / 276.5 MB, free: 7.137 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.1033, allocations: 0 / 276.5 MB, free: 7.137 MB / 234.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001017/0.1044, allocations: 318 kB / 276.8 MB, free: 6.816 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.48e-05/0.1044, allocations: 4.344 kB / 276.8 MB, free: 6.812 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.1044, allocations: 8 kB / 276.8 MB, free: 6.805 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003852/0.1048, allocations: 56.75 kB / 276.9 MB, free: 6.746 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005724/0.1054, allocations: 87.89 kB / 277 MB, free: 6.66 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001903/0.1073, allocations: 1.408 MB / 278.4 MB, free: 5.121 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004979/0.1079, allocations: 47.72 kB / 278.4 MB, free: 5.074 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.123e-05/0.1079, allocations: 20.19 kB / 278.4 MB, free: 5.055 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.0002353/0.1082, allocations: 157.5 kB / 278.6 MB, free: 4.891 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.417e-05/0.1083, allocations: 27.62 kB / 278.6 MB, free: 4.863 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.745e-05/0.1084, allocations: 34.16 kB / 278.6 MB, free: 4.824 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.1084, allocations: 3.984 kB / 278.6 MB, free: 4.82 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/0.1084, allocations: 0 / 278.6 MB, free: 4.82 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.1084, allocations: 0 / 278.6 MB, free: 4.82 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004847/0.1089, allocations: 337.4 kB / 279 MB, free: 4.441 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.116e-06/0.1089, allocations: 0 / 279 MB, free: 4.441 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000482/0.1094, allocations: 67.89 kB / 279 MB, free: 4.375 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003165/0.1097, allocations: 60.77 kB / 279.1 MB, free: 4.312 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.637e-05/0.1098, allocations: 4 kB / 279.1 MB, free: 4.309 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001648/0.1114, allocations: 1.331 MB / 280.4 MB, free: 2.848 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.013e-06/0.1115, allocations: 0 / 280.4 MB, free: 2.848 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001402/0.1129, allocations: 381.3 kB / 280.8 MB, free: 2.457 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.1131, allocations: 120.7 kB / 280.9 MB, free: 2.32 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.883e-05/0.1132, allocations: 12.06 kB / 280.9 MB, free: 2.309 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000331/0.1135, allocations: 23.98 kB / 281 MB, free: 2.285 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001415/0.1137, allocations: 35.88 kB / 281 MB, free: 2.25 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.211e-05/0.1137, allocations: 7.938 kB / 281 MB, free: 2.242 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0002745/0.114, allocations: 186 kB / 281.2 MB, free: 2.059 MB / 234.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.114, allocations: 4 kB / 281.2 MB, free: 2.055 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0005687/0.1146, allocations: 87.84 kB / 281.3 MB, free: 1.969 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.0002152/0.1148, allocations: 103.2 kB / 281.4 MB, free: 1.859 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.001111/0.116, allocations: 338.6 kB / 281.7 MB, free: 1.516 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.116, allocations: 0 / 281.7 MB, free: 1.516 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005506/0.1166, allocations: 206.6 kB / 281.9 MB, free: 1.301 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.117, allocations: 33.25 kB / 281.9 MB, free: 1.266 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002777/0.1197, allocations: 0.8555 MB / 282.8 MB, free: 380 kB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004337/0.1202, allocations: 0.7796 MB / 283.6 MB, free: 15.57 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.1204, allocations: 19.44 kB / 283.6 MB, free: 15.55 MB / 250.7 MB Notification: Performance of SimCode: time 1.383e-06/0.1204, allocations: 0 / 283.6 MB, free: 15.55 MB / 250.7 MB Notification: Performance of Templates: time 0.01082/0.1312, allocations: 4.459 MB / 288.1 MB, free: 11.09 MB / 250.7 MB