Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/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.2_Modelica.Electrical.Analog.Examples.ControlledSwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.335/2.335, allocations: 194.9 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005945/0.0005948, allocations: 16 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1382/0.1389, allocations: 44.5 MB / 309 MB, free: 380 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4907/0.6296, allocations: 74.49 MB / 383.5 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002523/0.6299, allocations: 74.17 kB / 383.6 MB, free: 15.42 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0249/0.6548, allocations: 6.093 MB / 389.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.6549, allocations: 0 / 389.7 MB, free: 14.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.163e-05/0.6549, allocations: 7.844 kB / 389.7 MB, free: 14.67 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.001232/0.6562, allocations: 0.6044 MB / 390.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.89e-05/0.6562, allocations: 14.83 kB / 390.3 MB, free: 14.2 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.6564, allocations: 46.73 kB / 390.4 MB, free: 14.18 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.6567, allocations: 255.9 kB / 390.6 MB, free: 13.95 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.343e-05/0.6568, allocations: 84.48 kB / 390.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.104e-05/0.6569, allocations: 31.78 kB / 390.7 MB, free: 13.88 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001109/0.658, allocations: 332.4 kB / 391.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.6581, allocations: 0 / 391.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.331e-05/0.6582, allocations: 13.78 kB / 391.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.983e-05/0.6582, allocations: 7.594 kB / 391.1 MB, free: 13.81 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001066/0.6593, allocations: 231.3 kB / 391.3 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004327/0.6637, allocations: 1.39 MB / 392.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007381/0.6645, allocations: 173.4 kB / 392.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.39e-05/0.6645, allocations: 3.984 kB / 392.9 MB, free: 12.95 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006674/0.6652, allocations: 153.2 kB / 393 MB, free: 12.88 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 4.459e-06/0.6653, allocations: 0 / 393 MB, free: 12.88 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.002477/0.6677, allocations: 424.6 kB / 393.4 MB, free: 12.71 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.95e-05/0.6679, allocations: 110.7 kB / 393.5 MB, free: 12.59 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005811/0.6685, allocations: 259.3 kB / 393.8 MB, free: 12.48 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.809e-05/0.6685, allocations: 28.89 kB / 393.8 MB, free: 12.45 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002193/0.6688, allocations: 202 kB / 394 MB, free: 12.32 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.6689, allocations: 76.62 kB / 394.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.166e-05/0.669, allocations: 11.09 kB / 394.1 MB, free: 12.27 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.6691, allocations: 335.2 kB / 394.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003657/0.6695, allocations: 74.44 kB / 394.5 MB, free: 11.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004109/0.6699, allocations: 162.5 kB / 394.7 MB, free: 11.85 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003915/0.6703, allocations: 90.59 kB / 394.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.6704, allocations: 0 / 394.8 MB, free: 11.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001217/0.6716, allocations: 334 kB / 395.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.6716, allocations: 7.594 kB / 395.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.638e-06/0.6716, allocations: 0 / 395.1 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000349/0.672, allocations: 62.14 kB / 395.1 MB, free: 11.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004264/0.6724, allocations: 60.69 kB / 395.2 MB, free: 11.75 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.6739, allocations: 1.408 MB / 396.6 MB, free: 10.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004298/0.6744, allocations: 55.47 kB / 396.7 MB, free: 10.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.812e-05/0.6744, allocations: 7.75 kB / 396.7 MB, free: 10.38 MB / 314.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: 8 ($whenCondition1,switch1.off,$PRE.switch2.off,switch2.off,$PRE.switch2.quenched,switch2.quenched,$PRE.switch2.tSwitch,switch2.tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 35 * 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.0002214/0.6747, allocations: 157.6 kB / 396.8 MB, free: 10.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.98e-05/0.6747, allocations: 27.42 kB / 396.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.745e-05/0.6748, allocations: 31.14 kB / 396.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.035e-06/0.6748, allocations: 0 / 396.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.6748, allocations: 3.938 kB / 396.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.6748, allocations: 0 / 396.9 MB, free: 10.24 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003878/0.6752, allocations: 351.6 kB / 397.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.6752, allocations: 0 / 397.2 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003252/0.6756, allocations: 39.92 kB / 397.3 MB, free: 10.04 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002585/0.6758, allocations: 56.53 kB / 397.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.418e-05/0.6759, allocations: 3.953 kB / 397.3 MB, free: 10.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001201/0.6771, allocations: 1.332 MB / 398.7 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.574e-06/0.6771, allocations: 3.969 kB / 398.7 MB, free: 8.746 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001015/0.6781, allocations: 347.1 kB / 399 MB, free: 8.656 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001291/0.6783, allocations: 115.7 kB / 399.1 MB, free: 8.547 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.887e-05/0.6784, allocations: 10.95 kB / 399.1 MB, free: 8.543 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002957/0.6787, allocations: 29.77 kB / 399.2 MB, free: 8.535 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/0.6788, allocations: 34.36 kB / 399.2 MB, free: 8.531 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.986e-05/0.6788, allocations: 7.312 kB / 399.2 MB, free: 8.531 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002134/0.6791, allocations: 183.8 kB / 399.4 MB, free: 8.453 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.6791, allocations: 0 / 399.4 MB, free: 8.453 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005442/0.6796, allocations: 87.41 kB / 399.5 MB, free: 8.441 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: 5 ($whenCondition1,switch1.off,switch2.off,switch2.quenched,switch2.tSwitch) * 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): 18 * 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.0001699/0.6798, allocations: 110.1 kB / 399.6 MB, free: 8.352 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0007915/0.6806, allocations: 315.2 kB / 399.9 MB, free: 8.23 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6806, allocations: 0 / 399.9 MB, free: 8.23 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003947/0.681, allocations: 200.9 kB / 400.1 MB, free: 8.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000319/0.6814, allocations: 32.42 kB / 400.1 MB, free: 8.113 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00215/0.6835, allocations: 0.8427 MB / 400.9 MB, free: 7.621 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002524/0.6838, allocations: 0.7828 MB / 401.7 MB, free: 6.922 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001895/0.684, allocations: 27.86 kB / 401.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.058e-05/0.6841, allocations: 19.06 kB / 401.8 MB, free: 6.902 MB / 314.7 MB Notification: Performance of SimCode: time 8.92e-07/0.6841, allocations: 0 / 401.8 MB, free: 6.902 MB / 314.7 MB Notification: Performance of Templates: time 0.008998/0.6931, allocations: 2.77 MB / 404.5 MB, free: 6.707 MB / 314.7 MB