Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.016/2.016, allocations: 225.8 MB / 238.8 MB, free: 11.16 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.995e-05/3.012e-05, allocations: 4.984 kB / 292.2 MB, free: 8.332 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08933/0.08938, allocations: 50.41 MB / 342.6 MB, free: 5.898 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.388/0.4775, allocations: 79.57 MB / 422.1 MB, free: 14.63 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003333/0.4779, allocations: 66.09 kB / 422.2 MB, free: 14.6 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0291/0.507, allocations: 5.576 MB / 427.8 MB, free: 9.848 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.919e-06/0.507, allocations: 0 / 427.8 MB, free: 9.848 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.883e-05/0.5071, allocations: 8 kB / 427.8 MB, free: 9.84 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.0009936/0.5081, allocations: 0.5275 MB / 428.3 MB, free: 9.281 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.288e-05/0.5081, allocations: 8.031 kB / 428.3 MB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.848e-05/0.5082, allocations: 35.84 kB / 428.4 MB, free: 9.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003919/0.5086, allocations: 254.6 kB / 428.6 MB, free: 8.969 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.841e-05/0.5088, allocations: 82.56 kB / 428.7 MB, free: 8.887 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.788e-05/0.5088, allocations: 30.66 kB / 428.7 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006012/0.5095, allocations: 283.5 kB / 429 MB, free: 8.66 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/0.5095, allocations: 7.938 kB / 429 MB, free: 8.652 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.269e-05/0.5095, allocations: 16.94 kB / 429 MB, free: 8.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.245e-05/0.5096, allocations: 8 kB / 429 MB, free: 8.637 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000454/0.51, allocations: 173.9 kB / 429.2 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002189/0.5122, allocations: 1.14 MB / 430.3 MB, free: 7.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003745/0.5126, allocations: 154.5 kB / 430.5 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001846/0.5128, allocations: 76.11 kB / 430.6 MB, free: 7.312 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.45e-05/0.5129, allocations: 4 kB / 430.6 MB, free: 7.309 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003267/0.5132, allocations: 153.4 kB / 430.7 MB, free: 7.164 MB / 346.7 MB Notification: Performance of pre-optimization done (n=21): time 3.15e-06/0.5132, allocations: 0 / 430.7 MB, free: 7.164 MB / 346.7 MB Notification: Performance of matching and sorting (n=21): time 0.0007132/0.514, allocations: 221.8 kB / 430.9 MB, free: 6.98 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.098e-05/0.5141, allocations: 107.1 kB / 431 MB, free: 6.855 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002742/0.5143, allocations: 210.5 kB / 431.2 MB, free: 6.676 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.859e-05/0.5144, allocations: 32.77 kB / 431.3 MB, free: 6.641 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001381/0.5145, allocations: 171 kB / 431.4 MB, free: 6.496 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.875e-05/0.5146, allocations: 69.7 kB / 431.5 MB, free: 6.438 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.535e-05/0.5147, allocations: 3.625 kB / 431.5 MB, free: 6.438 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.5149, allocations: 330.2 kB / 431.8 MB, free: 6.113 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001687/0.515, allocations: 68.06 kB / 431.9 MB, free: 6.066 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002295/0.5153, allocations: 124 kB / 432 MB, free: 5.953 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001881/0.5155, allocations: 70.67 kB / 432.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.5155, allocations: 0 / 432.1 MB, free: 5.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005793/0.5161, allocations: 251.3 kB / 432.3 MB, free: 5.711 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.5161, allocations: 7.984 kB / 432.3 MB, free: 5.703 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.122e-06/0.5161, allocations: 4 kB / 432.3 MB, free: 5.699 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003006/0.5165, allocations: 54.61 kB / 432.4 MB, free: 5.652 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002583/0.5167, allocations: 47.91 kB / 432.4 MB, free: 5.605 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001719/0.5185, allocations: 1.408 MB / 433.9 MB, free: 4.121 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002922/0.5188, allocations: 47.69 kB / 433.9 MB, free: 4.078 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.2e-05/0.5188, allocations: 11.98 kB / 433.9 MB, free: 4.066 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 31 * 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.0001329/0.519, allocations: 116.8 kB / 434 MB, free: 3.957 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.756e-05/0.519, allocations: 23.72 kB / 434 MB, free: 3.934 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.496e-05/0.5191, allocations: 35.12 kB / 434.1 MB, free: 3.918 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8e-06/0.5191, allocations: 7.953 kB / 434.1 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.455e-06/0.5191, allocations: 0 / 434.1 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.946e-06/0.5192, allocations: 0 / 434.1 MB, free: 3.91 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004665/0.5196, allocations: 322.9 kB / 434.4 MB, free: 3.598 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.922e-06/0.5197, allocations: 4 kB / 434.4 MB, free: 3.594 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002348/0.5199, allocations: 31.98 kB / 434.4 MB, free: 3.562 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000271/0.5202, allocations: 51.25 kB / 434.5 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.072e-05/0.5202, allocations: 7.547 kB / 434.5 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001538/0.5218, allocations: 1.325 MB / 435.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.761e-06/0.5218, allocations: 0 / 435.8 MB, free: 2.113 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008331/0.5227, allocations: 318.2 kB / 436.1 MB, free: 1.855 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001564/0.5228, allocations: 104.6 kB / 436.2 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.832e-05/0.5229, allocations: 3.312 kB / 436.2 MB, free: 1.738 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002223/0.5231, allocations: 27.12 kB / 436.3 MB, free: 1.715 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.5233, allocations: 35.75 kB / 436.3 MB, free: 1.684 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/0.5233, allocations: 7.812 kB / 436.3 MB, free: 1.68 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002026/0.5235, allocations: 158.5 kB / 436.5 MB, free: 1.543 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.5235, allocations: 0 / 436.5 MB, free: 1.543 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005142/0.5241, allocations: 91.06 kB / 436.5 MB, free: 1.461 MB / 346.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: 6 ($whenCondition2,$whenCondition1,booleanPulse.pulseStart,switch2.off,switch2.quenched,switch2.tSwitch) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0001881/0.5243, allocations: 117.9 kB / 436.7 MB, free: 1.344 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.000612/0.5249, allocations: 259 kB / 436.9 MB, free: 1.129 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.318e-06/0.5249, allocations: 3.938 kB / 436.9 MB, free: 1.125 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003459/0.5253, allocations: 187.6 kB / 437.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003203/0.5256, allocations: 34.73 kB / 437.1 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001684/0.5273, allocations: 0.5148 MB / 437.7 MB, free: 440 kB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/0.5278, allocations: 0.764 MB / 438.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001412/0.528, allocations: 26.05 kB / 438.4 MB, free: 15.61 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.597e-05/0.5281, allocations: 19.44 kB / 438.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of SimCode: time 1.579e-06/0.5281, allocations: 4 kB / 438.5 MB, free: 15.59 MB / 362.7 MB Notification: Performance of Templates: time 0.009044/0.5371, allocations: 2.725 MB / 441.2 MB, free: 12.89 MB / 362.7 MB