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.ThyristorBehaviourTest.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.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 1.918/1.918, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005347/0.0005348, allocations: 8 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08331/0.08388, allocations: 38.77 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3553/0.4392, allocations: 69.85 MB / 342.5 MB, free: 3.539 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002836/0.4396, allocations: 74.53 kB / 342.5 MB, free: 3.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02489/0.4645, allocations: 4.715 MB / 347.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.465e-06/0.4645, allocations: 0 / 347.3 MB, free: 15.42 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.393e-05/0.4646, allocations: 8 kB / 347.3 MB, free: 15.41 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.002207/0.4668, allocations: 0.6423 MB / 347.9 MB, free: 14.73 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.4669, allocations: 12.03 kB / 347.9 MB, free: 14.72 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.467, allocations: 35.61 kB / 348 MB, free: 14.68 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004691/0.4675, allocations: 256.7 kB / 348.2 MB, free: 14.42 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.541e-05/0.4676, allocations: 18.83 kB / 348.2 MB, free: 14.41 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.523e-05/0.4676, allocations: 15.38 kB / 348.2 MB, free: 14.39 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.469, allocations: 331.5 kB / 348.6 MB, free: 14.13 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.469, allocations: 4 kB / 348.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.832e-05/0.4691, allocations: 6.938 kB / 348.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.4691, allocations: 8 kB / 348.6 MB, free: 14.12 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001824/0.471, allocations: 334.8 kB / 348.9 MB, free: 13.86 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003435/0.4744, allocations: 1.019 MB / 349.9 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006321/0.4808, allocations: 0.6296 MB / 350.6 MB, free: 12.41 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.42e-05/0.4809, allocations: 7.984 kB / 350.6 MB, free: 12.4 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001255/0.4822, allocations: 250.9 kB / 350.8 MB, free: 12.17 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.777e-06/0.4822, allocations: 0 / 350.8 MB, free: 12.17 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.002914/0.4852, allocations: 0.5356 MB / 351.3 MB, free: 11.72 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001343/0.4854, allocations: 81.11 kB / 351.4 MB, free: 11.62 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004125/0.4858, allocations: 232.7 kB / 351.7 MB, free: 11.43 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.921e-05/0.4859, allocations: 29.02 kB / 351.7 MB, free: 11.39 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001582/0.4861, allocations: 162 kB / 351.8 MB, free: 11.26 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001061/0.4862, allocations: 64.89 kB / 351.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.942e-05/0.4862, allocations: 11.62 kB / 351.9 MB, free: 11.2 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.4864, allocations: 333.2 kB / 352.2 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009232/0.4873, allocations: 164.8 kB / 352.4 MB, free: 10.74 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009361/0.4883, allocations: 196.6 kB / 352.6 MB, free: 10.58 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.4893, allocations: 196.9 kB / 352.8 MB, free: 10.42 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.462e-06/0.4894, allocations: 0 / 352.8 MB, free: 10.42 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002136/0.4915, allocations: 456 kB / 353.2 MB, free: 10.04 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.4e-05/0.4916, allocations: 37.89 kB / 353.3 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.4916, allocations: 0 / 353.3 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.258e-05/0.4917, allocations: 3.953 kB / 353.3 MB, free: 10 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004498/0.4962, allocations: 335.6 kB / 353.6 MB, free: 9.672 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00913/0.5054, allocations: 3.269 MB / 356.9 MB, free: 6.27 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008025/0.5062, allocations: 67.36 kB / 356.9 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.355e-05/0.5063, allocations: 8 kB / 356.9 MB, free: 6.199 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002667/0.5065, allocations: 140.6 kB / 357.1 MB, free: 6.066 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.727e-05/0.5066, allocations: 35.66 kB / 357.1 MB, free: 6.031 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.176e-05/0.5067, allocations: 32.31 kB / 357.1 MB, free: 6.016 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.5068, allocations: 4 kB / 357.1 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.5068, allocations: 0 / 357.1 MB, free: 6.012 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.556e-06/0.5068, allocations: 3.984 kB / 357.2 MB, free: 6.008 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005989/0.5074, allocations: 354.1 kB / 357.5 MB, free: 5.676 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.5074, allocations: 3.953 kB / 357.5 MB, free: 5.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004517/0.512, allocations: 327.7 kB / 357.8 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.769e-06/0.512, allocations: 0 / 357.8 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.947e-05/0.5121, allocations: 3.688 kB / 357.8 MB, free: 5.352 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01072/0.5228, allocations: 3.271 MB / 361.1 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.5229, allocations: 0 / 361.1 MB, free: 1.941 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003877/0.5268, allocations: 0.598 MB / 361.7 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002964/0.5271, allocations: 119.8 kB / 361.8 MB, free: 1.32 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001203/0.5272, allocations: 11.61 kB / 361.8 MB, free: 1.312 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009386/0.5282, allocations: 51.52 kB / 361.9 MB, free: 1.266 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001767/0.5284, allocations: 26.95 kB / 361.9 MB, free: 1.242 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.851e-05/0.5285, allocations: 7.5 kB / 361.9 MB, free: 1.238 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003737/0.5288, allocations: 171.7 kB / 362.1 MB, free: 1.094 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.5289, allocations: 0 / 362.1 MB, free: 1.094 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001095/0.53, allocations: 82.34 kB / 362.2 MB, free: 1.02 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * 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): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003111/0.5303, allocations: 126.2 kB / 362.3 MB, free: 0.8867 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.007926/0.5383, allocations: 0.6677 MB / 362.9 MB, free: 284 kB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/0.5383, allocations: 4.062 kB / 362.9 MB, free: 280 kB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006234/0.5446, allocations: 451.5 kB / 363.4 MB, free: 15.86 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006394/0.5453, allocations: 37.69 kB / 363.4 MB, free: 15.84 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003205/0.5485, allocations: 0.7124 MB / 364.1 MB, free: 15.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005144/0.549, allocations: 0.7599 MB / 364.9 MB, free: 14.36 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0003897/0.5494, allocations: 21.95 kB / 364.9 MB, free: 14.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001535/0.5496, allocations: 19.44 kB / 364.9 MB, free: 14.32 MB / 298.7 MB Notification: Performance of SimCode: time 1.513e-06/0.5496, allocations: 3.938 kB / 364.9 MB, free: 14.31 MB / 298.7 MB Notification: Performance of Templates: time 0.01388/0.5635, allocations: 3.156 MB / 368.1 MB, free: 11.18 MB / 298.7 MB