Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.SwitchWithArc.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.86/1.86, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004907/0.0004906, allocations: 12 kB / 233.9 MB, free: 2.383 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0858/0.08633, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3717/0.4581, allocations: 68.46 MB / 341.1 MB, free: 4.883 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002776/0.4584, allocations: 73.16 kB / 341.1 MB, free: 4.844 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02353/0.482, allocations: 5.36 MB / 346.5 MB, free: 292 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.482, allocations: 0 / 346.5 MB, free: 292 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.257e-05/0.482, allocations: 4 kB / 346.5 MB, free: 288 kB / 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.001361/0.4834, allocations: 0.5648 MB / 347.1 MB, free: 15.69 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.4835, allocations: 8.031 kB / 347.1 MB, free: 15.68 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001236/0.4836, allocations: 35.62 kB / 347.1 MB, free: 15.65 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004076/0.484, allocations: 259.3 kB / 347.4 MB, free: 15.38 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001082/0.4842, allocations: 74.25 kB / 347.4 MB, free: 15.3 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.018e-05/0.4842, allocations: 26.94 kB / 347.5 MB, free: 15.28 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007294/0.485, allocations: 298.8 kB / 347.8 MB, free: 15.06 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.485, allocations: 0 / 347.8 MB, free: 15.06 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.826e-05/0.4851, allocations: 13.94 kB / 347.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.434e-05/0.4851, allocations: 8 kB / 347.8 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005397/0.4856, allocations: 183 kB / 348 MB, free: 14.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002572/0.4882, allocations: 1.153 MB / 349.1 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000475/0.4887, allocations: 156 kB / 349.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.934e-05/0.4888, allocations: 8.703 kB / 349.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004146/0.4892, allocations: 156 kB / 349.4 MB, free: 13.6 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 2.675e-06/0.4892, allocations: 0 / 349.4 MB, free: 13.6 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.001664/0.4909, allocations: 398.8 kB / 349.8 MB, free: 13.25 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.813e-05/0.491, allocations: 106.8 kB / 349.9 MB, free: 13.12 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003445/0.4914, allocations: 221.5 kB / 350.1 MB, free: 12.93 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.34e-05/0.4914, allocations: 29.27 kB / 350.2 MB, free: 12.89 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001518/0.4916, allocations: 177 kB / 350.3 MB, free: 12.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.335e-05/0.4917, allocations: 69.88 kB / 350.4 MB, free: 12.69 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.016e-05/0.4917, allocations: 11.56 kB / 350.4 MB, free: 12.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.4919, allocations: 330 kB / 350.7 MB, free: 12.36 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002067/0.4921, allocations: 65.34 kB / 350.8 MB, free: 12.31 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002668/0.4924, allocations: 128.1 kB / 350.9 MB, free: 12.19 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.4926, allocations: 77.14 kB / 351 MB, free: 12.15 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.117e-06/0.4926, allocations: 0 / 351 MB, free: 12.15 MB / 282.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0006843/0.4933, allocations: 260.9 kB / 351.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.155e-05/0.4934, allocations: 4 kB / 351.3 MB, free: 11.95 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.4934, allocations: 4.156 kB / 351.3 MB, free: 11.94 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003923/0.4938, allocations: 54.5 kB / 351.3 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003693/0.4942, allocations: 51.67 kB / 351.4 MB, free: 11.85 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001894/0.4961, allocations: 1.411 MB / 352.8 MB, free: 10.36 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004349/0.4966, allocations: 43.7 kB / 352.8 MB, free: 10.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.034e-05/0.4966, allocations: 11.38 kB / 352.8 MB, free: 10.31 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.0002467/0.4969, allocations: 154.4 kB / 353 MB, free: 10.17 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/0.4969, allocations: 23.72 kB / 353 MB, free: 10.15 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.445e-05/0.497, allocations: 23.44 kB / 353 MB, free: 10.14 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.497, allocations: 8 kB / 353 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.497, allocations: 0 / 353 MB, free: 10.13 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.4971, allocations: 3.984 kB / 353 MB, free: 10.12 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004911/0.4976, allocations: 319 kB / 353.4 MB, free: 9.816 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.4976, allocations: 4 kB / 353.4 MB, free: 9.812 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003266/0.4979, allocations: 35.92 kB / 353.4 MB, free: 9.777 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003147/0.4983, allocations: 54 kB / 353.5 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.986e-05/0.4983, allocations: 15.61 kB / 353.5 MB, free: 9.719 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001631/0.4999, allocations: 1.325 MB / 354.8 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.5, allocations: 0 / 354.8 MB, free: 8.324 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.501, allocations: 332.8 kB / 355.1 MB, free: 8.059 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001707/0.5012, allocations: 119 kB / 355.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.444e-05/0.5013, allocations: 3.375 kB / 355.2 MB, free: 7.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.5016, allocations: 19.23 kB / 355.3 MB, free: 7.914 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001328/0.5017, allocations: 35.5 kB / 355.3 MB, free: 7.883 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.5018, allocations: 4 kB / 355.3 MB, free: 7.879 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002235/0.502, allocations: 169.2 kB / 355.5 MB, free: 7.734 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.502, allocations: 0 / 355.5 MB, free: 7.734 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005332/0.5025, allocations: 84.86 kB / 355.5 MB, free: 7.66 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.0002001/0.5028, allocations: 106.8 kB / 355.6 MB, free: 7.547 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0007985/0.5036, allocations: 283 kB / 355.9 MB, free: 7.305 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/0.5036, allocations: 4 kB / 355.9 MB, free: 7.301 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004119/0.504, allocations: 192.6 kB / 356.1 MB, free: 7.125 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003878/0.5044, allocations: 37.55 kB / 356.2 MB, free: 7.102 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002791/0.5072, allocations: 0.802 MB / 357 MB, free: 6.316 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004105/0.5077, allocations: 0.7713 MB / 357.7 MB, free: 5.52 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.5079, allocations: 21.95 kB / 357.7 MB, free: 5.496 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.978e-05/0.508, allocations: 19.44 kB / 357.8 MB, free: 5.477 MB / 282.7 MB Notification: Performance of SimCode: time 1.333e-06/0.508, allocations: 0 / 357.8 MB, free: 5.477 MB / 282.7 MB Notification: Performance of Templates: time 0.009938/0.5179, allocations: 2.749 MB / 360.5 MB, free: 2.75 MB / 282.7 MB