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.SwitchWithArc.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.SwitchWithArc,tolerance=1e-06,outputFormat="mat",numberOfIntervals=16000,variableFilter="time|inductor1.i|inductor2.i",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.SwitchWithArc") Notification: Performance of loadModel(Modelica): time 2.399/2.399, allocations: 194.8 MB / 211.7 MB, free: 3 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005464/0.0005465, allocations: 12 kB / 264.5 MB, free: 12.93 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1606, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5139/0.6745, allocations: 73.84 MB / 382.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003375/0.6749, allocations: 75.14 kB / 383 MB, free: 15.37 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02653/0.7014, allocations: 5.435 MB / 388.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.7015, allocations: 3.938 kB / 388.4 MB, free: 14.67 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.795e-05/0.7015, allocations: 3.938 kB / 388.4 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: 71 * Number of variables: 71 Notification: Performance of Generate backend data structure: time 0.001119/0.7027, allocations: 0.5678 MB / 389 MB, free: 14.23 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.01e-05/0.7027, allocations: 7.75 kB / 389 MB, free: 14.23 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.7028, allocations: 39 kB / 389 MB, free: 14.21 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003249/0.7032, allocations: 247.7 kB / 389.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.224e-05/0.7033, allocations: 83.59 kB / 389.3 MB, free: 13.92 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.256e-05/0.7033, allocations: 30.19 kB / 389.4 MB, free: 13.91 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006508/0.704, allocations: 287.8 kB / 389.6 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.704, allocations: 0 / 389.6 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.321e-05/0.7041, allocations: 14.06 kB / 389.7 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.104e-05/0.7041, allocations: 7.594 kB / 389.7 MB, free: 13.85 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005067/0.7046, allocations: 186.8 kB / 389.9 MB, free: 13.84 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.7068, allocations: 1.151 MB / 391 MB, free: 13.2 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003929/0.7072, allocations: 155.4 kB / 391.2 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.569e-05/0.7073, allocations: 4.25 kB / 391.2 MB, free: 13.17 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003871/0.7077, allocations: 156.1 kB / 391.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.345e-06/0.7077, allocations: 0 / 391.3 MB, free: 13.09 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.001512/0.7092, allocations: 398.5 kB / 391.7 MB, free: 12.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.741e-05/0.7093, allocations: 109.7 kB / 391.8 MB, free: 12.81 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/0.7095, allocations: 224.4 kB / 392 MB, free: 12.7 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/0.7096, allocations: 33.23 kB / 392.1 MB, free: 12.66 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00011/0.7097, allocations: 175.9 kB / 392.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.647e-05/0.7098, allocations: 71.78 kB / 392.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.798e-05/0.7098, allocations: 7.75 kB / 392.3 MB, free: 12.5 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.881e-05/0.7099, allocations: 335.6 kB / 392.6 MB, free: 12.18 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001811/0.7101, allocations: 63.31 kB / 392.7 MB, free: 12.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.7103, allocations: 127.8 kB / 392.8 MB, free: 12.11 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001955/0.7105, allocations: 75.75 kB / 392.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.7105, allocations: 0 / 392.9 MB, free: 12.11 MB / 314.7 MB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005873/0.7111, allocations: 263.8 kB / 393.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.7112, allocations: 3.938 kB / 393.2 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.7112, allocations: 7.719 kB / 393.2 MB, free: 12.03 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003614/0.7116, allocations: 54.92 kB / 393.2 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000349/0.7119, allocations: 47.72 kB / 393.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001465/0.7134, allocations: 1.41 MB / 394.7 MB, free: 10.67 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004076/0.7138, allocations: 36.61 kB / 394.7 MB, free: 10.66 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.778e-05/0.7139, allocations: 11.09 kB / 394.7 MB, free: 10.66 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 () * 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.0002269/0.7141, allocations: 148.3 kB / 394.9 MB, free: 10.54 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.043e-05/0.7142, allocations: 27.28 kB / 394.9 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.1e-05/0.7143, allocations: 29.33 kB / 394.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.7143, allocations: 3.844 kB / 394.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.139e-06/0.7143, allocations: 0 / 394.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.7143, allocations: 0 / 394.9 MB, free: 10.51 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000411/0.7147, allocations: 322.5 kB / 395.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.7147, allocations: 0 / 395.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/0.715, allocations: 33.97 kB / 395.3 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002968/0.7154, allocations: 55.53 kB / 395.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.872e-05/0.7154, allocations: 9.906 kB / 395.3 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.7167, allocations: 1.329 MB / 396.7 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.7168, allocations: 3.984 kB / 396.7 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009587/0.7177, allocations: 335.2 kB / 397 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.7179, allocations: 108.6 kB / 397.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.551e-05/0.718, allocations: 9.875 kB / 397.1 MB, free: 8.824 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000283/0.7183, allocations: 22.23 kB / 397.1 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001158/0.7184, allocations: 28.72 kB / 397.2 MB, free: 8.82 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.7184, allocations: 5.797 kB / 397.2 MB, free: 8.82 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001867/0.7186, allocations: 162.6 kB / 397.3 MB, free: 8.742 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.2e-07/0.7187, allocations: 3.938 kB / 397.3 MB, free: 8.738 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005152/0.7192, allocations: 80.91 kB / 397.4 MB, free: 8.727 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) * 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.0001693/0.7194, allocations: 112.7 kB / 397.5 MB, free: 8.633 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0006919/0.7201, allocations: 282.1 kB / 397.8 MB, free: 8.512 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.7201, allocations: 0 / 397.8 MB, free: 8.512 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003545/0.7205, allocations: 193.1 kB / 398 MB, free: 8.402 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000367/0.7208, allocations: 36.34 kB / 398 MB, free: 8.398 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.7232, allocations: 0.8237 MB / 398.8 MB, free: 7.945 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/0.7235, allocations: 0.7621 MB / 399.6 MB, free: 7.246 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001883/0.7237, allocations: 27.08 kB / 399.6 MB, free: 7.238 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.359e-05/0.7237, allocations: 19.03 kB / 399.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of SimCode: time 9.22e-07/0.7238, allocations: 0 / 399.7 MB, free: 7.23 MB / 314.7 MB Notification: Performance of Templates: time 0.008814/0.7326, allocations: 2.747 MB / 402.4 MB, free: 7.031 MB / 314.7 MB