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.ThyristorBehaviourTest.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.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 2.302/2.302, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003707, allocations: 8 kB / 264.5 MB, free: 12.94 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1158/0.1162, allocations: 44.5 MB / 309 MB, free: 376 kB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4484/0.5647, allocations: 74.87 MB / 383.9 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003516/0.5651, allocations: 80.8 kB / 384 MB, free: 15.43 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02374/0.5888, allocations: 4.648 MB / 388.6 MB, free: 14.8 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5889, allocations: 0 / 388.6 MB, free: 14.8 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.23e-05/0.5889, allocations: 3.812 kB / 388.6 MB, free: 14.8 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001843/0.5908, allocations: 0.643 MB / 389.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.5908, allocations: 11.75 kB / 389.3 MB, free: 14.33 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.655e-05/0.5909, allocations: 27.34 kB / 389.3 MB, free: 14.31 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003589/0.5913, allocations: 265.3 kB / 389.6 MB, free: 14.08 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.867e-05/0.5914, allocations: 24.22 kB / 389.6 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.372e-05/0.5915, allocations: 19.19 kB / 389.6 MB, free: 14.07 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001177/0.5927, allocations: 325.9 kB / 389.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.436e-05/0.5927, allocations: 0 / 389.9 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.495e-05/0.5927, allocations: 10.73 kB / 390 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.437e-06/0.5928, allocations: 7.719 kB / 390 MB, free: 14.01 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001587/0.5944, allocations: 343.4 kB / 390.3 MB, free: 13.99 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002884/0.5973, allocations: 1.018 MB / 391.3 MB, free: 13.52 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005937/0.6032, allocations: 0.6159 MB / 391.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.295e-05/0.6034, allocations: 3.953 kB / 391.9 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/0.6044, allocations: 259.8 kB / 392.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 3.186e-06/0.6044, allocations: 0 / 392.2 MB, free: 13.39 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.002593/0.607, allocations: 0.524 MB / 392.7 MB, free: 13.33 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.618e-05/0.6071, allocations: 83.55 kB / 392.8 MB, free: 13.23 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003207/0.6074, allocations: 229.7 kB / 393 MB, free: 13.12 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.6075, allocations: 32.77 kB / 393.1 MB, free: 13.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.6076, allocations: 161 kB / 393.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.746e-05/0.6077, allocations: 72.39 kB / 393.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.819e-05/0.6078, allocations: 11.19 kB / 393.3 MB, free: 12.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.842e-05/0.6078, allocations: 333.2 kB / 393.6 MB, free: 12.62 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008197/0.6087, allocations: 169 kB / 393.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008314/0.6095, allocations: 197.5 kB / 394 MB, free: 12.58 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008492/0.6104, allocations: 192 kB / 394.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/0.6104, allocations: 0 / 394.2 MB, free: 12.54 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001859/0.6123, allocations: 455 kB / 394.6 MB, free: 12.45 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.211e-05/0.6123, allocations: 36.33 kB / 394.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.6124, allocations: 4 kB / 394.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.158e-05/0.6124, allocations: 3.906 kB / 394.6 MB, free: 12.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004248/0.6166, allocations: 325.2 kB / 395 MB, free: 12.4 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007834/0.6245, allocations: 3.269 MB / 398.2 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008005/0.6254, allocations: 65.33 kB / 398.3 MB, free: 9.629 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.883e-05/0.6254, allocations: 6.781 kB / 398.3 MB, free: 9.629 MB / 314.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.000229/0.6257, allocations: 149.3 kB / 398.5 MB, free: 9.508 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.771e-05/0.6257, allocations: 23.28 kB / 398.5 MB, free: 9.496 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.566e-05/0.6258, allocations: 27.77 kB / 398.5 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.6258, allocations: 0 / 398.5 MB, free: 9.488 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6258, allocations: 7.812 kB / 398.5 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.869e-06/0.6258, allocations: 0 / 398.5 MB, free: 9.484 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004321/0.6263, allocations: 359.3 kB / 398.9 MB, free: 9.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.6263, allocations: 4 kB / 398.9 MB, free: 9.277 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00426/0.6306, allocations: 322.2 kB / 399.2 MB, free: 9.262 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.6306, allocations: 4 kB / 399.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.642e-05/0.6307, allocations: 10.22 kB / 399.2 MB, free: 9.258 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007697/0.6384, allocations: 3.265 MB / 402.5 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.779e-06/0.6384, allocations: 3.953 kB / 402.5 MB, free: 6.496 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002694/0.6411, allocations: 0.5961 MB / 403.1 MB, free: 6.398 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.625e-05/0.6413, allocations: 105.6 kB / 403.2 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.877e-05/0.6413, allocations: 2.062 kB / 403.2 MB, free: 6.289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006348/0.642, allocations: 54.36 kB / 403.2 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.6421, allocations: 37.17 kB / 403.3 MB, free: 6.277 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.6422, allocations: 3.781 kB / 403.3 MB, free: 6.277 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002059/0.6424, allocations: 174.8 kB / 403.4 MB, free: 6.199 MB / 314.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.6424, allocations: 0 / 403.4 MB, free: 6.199 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006241/0.643, allocations: 77.53 kB / 403.5 MB, free: 6.191 MB / 314.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.0001908/0.6432, allocations: 121.2 kB / 403.6 MB, free: 6.094 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005593/0.6488, allocations: 0.6726 MB / 404.3 MB, free: 6 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.6489, allocations: 3.812 kB / 404.3 MB, free: 6 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004685/0.6536, allocations: 449.3 kB / 404.7 MB, free: 5.977 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000468/0.6541, allocations: 38.56 kB / 404.8 MB, free: 5.969 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002235/0.6563, allocations: 0.7053 MB / 405.5 MB, free: 5.602 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000198/0.6566, allocations: 0.7563 MB / 406.2 MB, free: 4.902 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002458/0.6568, allocations: 29.08 kB / 406.3 MB, free: 4.895 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.6569, allocations: 23 kB / 406.3 MB, free: 4.883 MB / 314.7 MB Notification: Performance of SimCode: time 9.82e-07/0.6569, allocations: 0 / 406.3 MB, free: 4.883 MB / 314.7 MB Notification: Performance of Templates: time 0.009384/0.6663, allocations: 3.141 MB / 409.4 MB, free: 4.371 MB / 314.7 MB