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.ControlledSwitchWithArc.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.ControlledSwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=48000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 1.836/1.836, allocations: 171.1 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005204/0.0005207, allocations: 8 kB / 233.8 MB, free: 2.395 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.0856, allocations: 38.77 MB / 272.6 MB, free: 11.55 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4211/0.5067, allocations: 69.45 MB / 342.1 MB, free: 4.012 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003042/0.5071, allocations: 73.34 kB / 342.1 MB, free: 3.973 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02736/0.5345, allocations: 6.023 MB / 348.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.475e-06/0.5345, allocations: 4 kB / 348.2 MB, free: 14.84 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.532e-05/0.5346, allocations: 4 kB / 348.2 MB, free: 14.84 MB / 282.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.001507/0.5361, allocations: 0.6132 MB / 348.8 MB, free: 14.2 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.5361, allocations: 11.97 kB / 348.8 MB, free: 14.19 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.5363, allocations: 39.53 kB / 348.8 MB, free: 14.15 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004464/0.5367, allocations: 267 kB / 349.1 MB, free: 13.87 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001067/0.5369, allocations: 79.12 kB / 349.2 MB, free: 13.79 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.451e-05/0.537, allocations: 30.12 kB / 349.2 MB, free: 13.77 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009518/0.5379, allocations: 341 kB / 349.5 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.538, allocations: 0 / 349.5 MB, free: 13.51 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.68e-05/0.538, allocations: 16.92 kB / 349.5 MB, free: 13.5 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.97e-05/0.5381, allocations: 8 kB / 349.6 MB, free: 13.49 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007953/0.5389, allocations: 240.3 kB / 349.8 MB, free: 13.33 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003143/0.542, allocations: 1.406 MB / 351.2 MB, free: 12.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007427/0.5428, allocations: 205.1 kB / 351.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.772e-05/0.5429, allocations: 3.938 kB / 351.4 MB, free: 11.86 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005136/0.5434, allocations: 174.1 kB / 351.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of pre-optimization done (n=19): time 2.735e-06/0.5434, allocations: 0 / 351.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of matching and sorting (n=19): time 0.002024/0.5454, allocations: 448.6 kB / 352 MB, free: 11.3 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.5456, allocations: 110.8 kB / 352.1 MB, free: 11.16 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004273/0.5461, allocations: 257.4 kB / 352.4 MB, free: 10.95 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.5461, allocations: 29.14 kB / 352.4 MB, free: 10.92 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.5463, allocations: 205 kB / 352.6 MB, free: 10.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.02e-05/0.5464, allocations: 65.84 kB / 352.7 MB, free: 10.7 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.929e-05/0.5464, allocations: 3.312 kB / 352.7 MB, free: 10.7 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000157/0.5466, allocations: 337.2 kB / 353 MB, free: 10.37 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003386/0.547, allocations: 90.58 kB / 353.1 MB, free: 10.3 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004009/0.5474, allocations: 169.3 kB / 353.2 MB, free: 10.13 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003557/0.5477, allocations: 97.38 kB / 353.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.662e-06/0.5478, allocations: 4 kB / 353.3 MB, free: 10.07 MB / 282.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.001009/0.5488, allocations: 315.1 kB / 353.7 MB, free: 9.816 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.752e-05/0.5488, allocations: 8.625 kB / 353.7 MB, free: 9.809 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.5489, allocations: 3.984 kB / 353.7 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003933/0.5493, allocations: 58.12 kB / 353.7 MB, free: 9.754 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/0.5498, allocations: 86.62 kB / 353.8 MB, free: 9.672 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.5518, allocations: 1.406 MB / 355.2 MB, free: 8.188 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005115/0.5523, allocations: 51.11 kB / 355.3 MB, free: 8.141 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-05/0.5524, allocations: 10.94 kB / 355.3 MB, free: 8.133 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (34): * Single equations (assignments): 33 * 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.0002599/0.5527, allocations: 144.2 kB / 355.4 MB, free: 8 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.676e-05/0.5527, allocations: 31.67 kB / 355.4 MB, free: 7.969 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.503e-05/0.5528, allocations: 32.55 kB / 355.5 MB, free: 7.957 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.5528, allocations: 4 kB / 355.5 MB, free: 7.953 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.5529, allocations: 0 / 355.5 MB, free: 7.953 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.5529, allocations: 3.984 kB / 355.5 MB, free: 7.949 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005192/0.5534, allocations: 341.5 kB / 355.8 MB, free: 7.625 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.5534, allocations: 7.875 kB / 355.8 MB, free: 7.617 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000538/0.554, allocations: 63.89 kB / 355.9 MB, free: 7.555 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003203/0.5543, allocations: 51.12 kB / 355.9 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.683e-05/0.5544, allocations: 3.875 kB / 355.9 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001727/0.5561, allocations: 1.335 MB / 357.3 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.5561, allocations: 4.281 kB / 357.3 MB, free: 6.098 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.5575, allocations: 383.5 kB / 357.7 MB, free: 5.777 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002035/0.5578, allocations: 113.3 kB / 357.8 MB, free: 5.656 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.058e-05/0.5579, allocations: 7.312 kB / 357.8 MB, free: 5.652 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003285/0.5582, allocations: 27.61 kB / 357.8 MB, free: 5.629 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001345/0.5584, allocations: 31.31 kB / 357.8 MB, free: 5.602 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.442e-05/0.5584, allocations: 7.5 kB / 357.8 MB, free: 5.598 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002876/0.5587, allocations: 188.6 kB / 358 MB, free: 5.445 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.5587, allocations: 0 / 358 MB, free: 5.445 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005804/0.5593, allocations: 93.75 kB / 358.1 MB, free: 5.359 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: 4 ($whenCondition1,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 (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.0002003/0.5595, allocations: 106.4 kB / 358.2 MB, free: 5.25 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001048/0.5606, allocations: 328.6 kB / 358.5 MB, free: 4.969 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.5606, allocations: 8.188 kB / 358.6 MB, free: 4.961 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005333/0.5611, allocations: 203 kB / 358.7 MB, free: 4.773 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003701/0.5615, allocations: 34.8 kB / 358.8 MB, free: 4.754 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002732/0.5643, allocations: 0.8282 MB / 359.6 MB, free: 3.938 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004385/0.5648, allocations: 0.7758 MB / 360.4 MB, free: 3.133 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002268/0.565, allocations: 30.27 kB / 360.4 MB, free: 3.102 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.852e-05/0.5651, allocations: 19.44 kB / 360.4 MB, free: 3.086 MB / 282.7 MB Notification: Performance of SimCode: time 9.72e-07/0.5651, allocations: 3.938 kB / 360.4 MB, free: 3.082 MB / 282.7 MB Notification: Performance of Templates: time 0.01125/0.5764, allocations: 2.838 MB / 363.3 MB, free: 272 kB / 282.7 MB