Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) 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.1_cpp_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.592/1.592, allocations: 171.2 MB / 186.7 MB, free: 1.039 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003725/0.0003726, allocations: 12 kB / 233.2 MB, free: 3.016 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07114/0.07154, allocations: 38.77 MB / 272 MB, free: 12.17 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2804/0.352, allocations: 68.46 MB / 340.5 MB, free: 5.473 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.3522, allocations: 71.34 kB / 340.5 MB, free: 5.438 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03403/0.3863, allocations: 5.345 MB / 345.9 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of FrontEnd: time 3.993e-06/0.3864, allocations: 0 / 345.9 MB, free: 0.8828 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.445e-05/0.3864, allocations: 8 kB / 345.9 MB, free: 0.875 MB / 266.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.001752/0.3882, allocations: 0.5644 MB / 346.5 MB, free: 288 kB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.179e-05/0.3883, allocations: 12.03 kB / 346.5 MB, free: 276 kB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.3884, allocations: 31.62 kB / 346.5 MB, free: 244 kB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006237/0.3891, allocations: 255.9 kB / 346.7 MB, free: 15.97 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001356/0.3892, allocations: 78.62 kB / 346.8 MB, free: 15.89 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001017/0.3894, allocations: 22.75 kB / 346.8 MB, free: 15.88 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.3905, allocations: 300.1 kB / 347.1 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.158e-05/0.3905, allocations: 0 / 347.1 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.311e-05/0.3906, allocations: 12.92 kB / 347.2 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.369e-05/0.3907, allocations: 8 kB / 347.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008776/0.3916, allocations: 191.8 kB / 347.3 MB, free: 15.51 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003733/0.3953, allocations: 1.151 MB / 348.5 MB, free: 14.46 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006849/0.396, allocations: 158.1 kB / 348.7 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.3961, allocations: 3.953 kB / 348.7 MB, free: 14.34 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005696/0.3967, allocations: 158.7 kB / 348.8 MB, free: 14.19 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 4.807e-06/0.3967, allocations: 0 / 348.8 MB, free: 14.19 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.002263/0.399, allocations: 396.5 kB / 349.2 MB, free: 13.84 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001268/0.3992, allocations: 114.8 kB / 349.3 MB, free: 13.7 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004553/0.3996, allocations: 195.4 kB / 349.5 MB, free: 13.54 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.428e-05/0.3997, allocations: 33.33 kB / 349.5 MB, free: 13.5 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002334/0.4, allocations: 235.6 kB / 349.8 MB, free: 13.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001315/0.4002, allocations: 68.69 kB / 349.8 MB, free: 13.23 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.858e-05/0.4002, allocations: 7.875 kB / 349.8 MB, free: 13.23 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002124/0.4004, allocations: 325.4 kB / 350.2 MB, free: 12.91 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003258/0.4008, allocations: 61.47 kB / 350.2 MB, free: 12.86 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004131/0.4012, allocations: 126 kB / 350.3 MB, free: 12.75 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003429/0.4016, allocations: 74.25 kB / 350.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.707e-06/0.4016, allocations: 0 / 350.4 MB, free: 12.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.001053/0.4027, allocations: 248.7 kB / 350.7 MB, free: 12.52 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.357e-05/0.4028, allocations: 11.98 kB / 350.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.03e-05/0.4028, allocations: 160 / 350.7 MB, free: 12.5 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005293/0.4033, allocations: 61.19 kB / 350.7 MB, free: 12.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004832/0.4039, allocations: 45.92 kB / 350.8 MB, free: 12.41 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002819/0.4067, allocations: 1.414 MB / 352.2 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005557/0.4073, allocations: 39.3 kB / 352.2 MB, free: 10.88 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.372e-05/0.4074, allocations: 11.38 kB / 352.2 MB, free: 10.87 MB / 282.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.tSwitch,switch2.tSwitch,$PRE.switch2.quenched,switch2.quenched) * Number of discrete states: 0 () * Number of clocked 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.0003471/0.4077, allocations: 152.2 kB / 352.4 MB, free: 10.73 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.692e-05/0.4079, allocations: 19.81 kB / 352.4 MB, free: 10.71 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.713e-05/0.408, allocations: 33.05 kB / 352.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.918e-06/0.408, allocations: 0 / 352.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.408, allocations: 4 kB / 352.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.971e-06/0.4081, allocations: 0 / 352.4 MB, free: 10.7 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007328/0.4088, allocations: 324.1 kB / 352.8 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.791e-06/0.4088, allocations: 0 / 352.8 MB, free: 10.38 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004277/0.4093, allocations: 31.55 kB / 352.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004392/0.4097, allocations: 56.06 kB / 352.8 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.749e-05/0.4098, allocations: 7.5 kB / 352.9 MB, free: 10.3 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002512/0.4123, allocations: 1.336 MB / 354.2 MB, free: 8.891 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.921e-06/0.4124, allocations: 0 / 354.2 MB, free: 8.891 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.4139, allocations: 337.6 kB / 354.5 MB, free: 8.617 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002588/0.4142, allocations: 115.5 kB / 354.6 MB, free: 8.492 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.016e-05/0.4143, allocations: 7.562 kB / 354.6 MB, free: 8.488 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000392/0.4147, allocations: 19.11 kB / 354.7 MB, free: 8.473 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001819/0.4149, allocations: 31.38 kB / 354.7 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.468e-05/0.415, allocations: 10.94 kB / 354.7 MB, free: 8.438 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002154/0.4152, allocations: 163.2 kB / 354.9 MB, free: 8.297 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.29e-07/0.4153, allocations: 0 / 354.9 MB, free: 8.297 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005289/0.4158, allocations: 78.52 kB / 354.9 MB, free: 8.227 MB / 282.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.tSwitch,switch2.quenched) * Number of discrete states: 2 (switch2.quenched,switch2.off) * Number of clocked states: 0 () * 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.0001764/0.416, allocations: 114.8 kB / 355 MB, free: 8.109 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0006665/0.4167, allocations: 281.6 kB / 355.3 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.632e-06/0.4167, allocations: 0 / 355.3 MB, free: 7.871 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.4171, allocations: 193.5 kB / 355.5 MB, free: 7.695 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003125/0.4174, allocations: 37.59 kB / 355.5 MB, free: 7.672 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002124/0.4195, allocations: 0.8319 MB / 356.4 MB, free: 6.848 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000465/0.42, allocations: 0.7635 MB / 357.1 MB, free: 6.059 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.855e-05/0.4201, allocations: 19.44 kB / 357.2 MB, free: 6.039 MB / 282.7 MB Notification: Performance of SimCode: time 1.336e-06/0.4201, allocations: 0 / 357.2 MB, free: 6.039 MB / 282.7 MB Notification: Performance of Templates: time 0.007799/0.4279, allocations: 4.058 MB / 361.2 MB, free: 2.016 MB / 282.7 MB