Running command: translateModel(Modelica.Electrical.Analog.Examples.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.749/1.749, allocations: 194.9 MB / 208.5 MB, free: 3.168 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 3.944e-05/3.991e-05, allocations: 3.25 kB / 255.4 MB, free: 3.191 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07657/0.07663, allocations: 44.51 MB / 299.9 MB, free: 6.625 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3288/0.4055, allocations: 73.75 MB / 373.6 MB, free: 22.41 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002137/0.4057, allocations: 67.47 kB / 373.7 MB, free: 22.41 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02086/0.4266, allocations: 5.395 MB / 379.1 MB, free: 21.69 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.171e-06/0.4266, allocations: 0 / 379.1 MB, free: 21.69 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.145e-05/0.4267, allocations: 6.844 kB / 379.1 MB, free: 21.69 MB / 314.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.0008583/0.4276, allocations: 0.5472 MB / 379.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.4276, allocations: 8.094 kB / 379.6 MB, free: 21.26 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.144e-05/0.4277, allocations: 34.66 kB / 379.7 MB, free: 21.24 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003122/0.428, allocations: 244.5 kB / 379.9 MB, free: 21.02 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.416e-05/0.4281, allocations: 83.5 kB / 380 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.591e-05/0.4282, allocations: 26.5 kB / 380 MB, free: 20.96 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005942/0.4288, allocations: 288.8 kB / 380.3 MB, free: 20.89 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.664e-05/0.4288, allocations: 4.953 kB / 380.3 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.4289, allocations: 9.406 kB / 380.3 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.4289, allocations: 7.25 kB / 380.3 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004483/0.4294, allocations: 180.8 kB / 380.5 MB, free: 20.88 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001858/0.4313, allocations: 1.145 MB / 381.6 MB, free: 20.23 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003627/0.4316, allocations: 152.1 kB / 381.8 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001706/0.4318, allocations: 74.48 kB / 381.9 MB, free: 20.2 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.69e-05/0.4319, allocations: 10.3 kB / 381.9 MB, free: 20.19 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.4322, allocations: 148.7 kB / 382 MB, free: 20.11 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.359e-06/0.4322, allocations: 224 / 382 MB, free: 20.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006896/0.4329, allocations: 220.9 kB / 382.2 MB, free: 20.05 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.295e-05/0.433, allocations: 109.9 kB / 382.3 MB, free: 19.93 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002412/0.4332, allocations: 203.5 kB / 382.5 MB, free: 19.82 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.708e-05/0.4333, allocations: 31.2 kB / 382.6 MB, free: 19.79 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.985e-05/0.4334, allocations: 234.2 kB / 382.8 MB, free: 19.6 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.891e-05/0.4334, allocations: 67.09 kB / 382.9 MB, free: 19.56 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.56e-05/0.4335, allocations: 4.812 kB / 382.9 MB, free: 19.56 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 5.514e-05/0.4335, allocations: 323.6 kB / 383.2 MB, free: 19.25 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.4337, allocations: 72.23 kB / 383.3 MB, free: 19.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000195/0.4339, allocations: 122.2 kB / 383.4 MB, free: 19.17 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001762/0.4341, allocations: 76.53 kB / 383.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.4e-06/0.4341, allocations: 0 / 383.5 MB, free: 19.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005047/0.4346, allocations: 237.8 kB / 383.7 MB, free: 19.1 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.816e-05/0.4347, allocations: 6.875 kB / 383.7 MB, free: 19.1 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.4347, allocations: 0 / 383.7 MB, free: 19.1 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002928/0.435, allocations: 59.08 kB / 383.7 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002576/0.4353, allocations: 45.55 kB / 383.8 MB, free: 19.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001204/0.4365, allocations: 1.411 MB / 385.2 MB, free: 17.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.4368, allocations: 36.95 kB / 385.2 MB, free: 17.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.4368, allocations: 13.75 kB / 385.3 MB, free: 17.72 MB / 314.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.pulsStart,booleanPulse.pulsStart,$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 9.407e-05/0.4369, allocations: 125.5 kB / 385.4 MB, free: 17.61 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.621e-05/0.437, allocations: 22.5 kB / 385.4 MB, free: 17.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.488e-05/0.4371, allocations: 29.09 kB / 385.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.517e-06/0.4371, allocations: 2.969 kB / 385.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.721e-06/0.4371, allocations: 0 / 385.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.782e-06/0.4371, allocations: 0 / 385.4 MB, free: 17.59 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003535/0.4375, allocations: 323.2 kB / 385.7 MB, free: 17.4 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.198e-06/0.4375, allocations: 5.406 kB / 385.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002213/0.4377, allocations: 38.75 kB / 385.8 MB, free: 17.39 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002242/0.438, allocations: 50.78 kB / 385.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.431e-05/0.438, allocations: 6.969 kB / 385.8 MB, free: 17.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.4391, allocations: 1.313 MB / 387.2 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.371e-06/0.4391, allocations: 4.156 kB / 387.2 MB, free: 16.12 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007632/0.4399, allocations: 326.6 kB / 387.5 MB, free: 16.02 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001146/0.44, allocations: 116 kB / 387.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.123e-05/0.4401, allocations: 8.438 kB / 387.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.4403, allocations: 23.02 kB / 387.6 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.4404, allocations: 30.8 kB / 387.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.347e-05/0.4404, allocations: 8.656 kB / 387.7 MB, free: 15.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001835/0.4406, allocations: 160.1 kB / 387.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.29e-07/0.4407, allocations: 0 / 387.8 MB, free: 15.83 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004918/0.4412, allocations: 77.81 kB / 387.9 MB, free: 15.82 MB / 314.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.pulsStart,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.0001465/0.4413, allocations: 119.9 kB / 388 MB, free: 15.72 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005527/0.4419, allocations: 264.7 kB / 388.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.173e-06/0.4419, allocations: 0 / 388.3 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002922/0.4422, allocations: 185.9 kB / 388.5 MB, free: 15.51 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.4425, allocations: 45.16 kB / 388.5 MB, free: 15.49 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.4441, allocations: 0.536 MB / 389 MB, free: 15.21 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007774/0.4449, allocations: 0.7664 MB / 389.8 MB, free: 30.51 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.81e-05/0.445, allocations: 20.47 kB / 389.8 MB, free: 30.5 MB / 330.7 MB Notification: Performance of SimCode: time 2.268e-06/0.445, allocations: 0 / 389.8 MB, free: 30.5 MB / 330.7 MB Notification: Performance of Templates: time 0.006724/0.4517, allocations: 4.042 MB / 393.9 MB, free: 30.27 MB / 330.7 MB