Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 1.014/1.014, allocations: 111.2 MB / 119.1 MB, free: 11.16 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 1.571e-05/1.59e-05, allocations: 4 kB / 148.1 MB, free: 6.223 MB / 122.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06187/0.06191, allocations: 25.17 MB / 173.3 MB, free: 13.01 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2222/0.2842, allocations: 35.86 MB / 209.1 MB, free: 7.027 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001927/0.2844, allocations: 60.88 kB / 209.2 MB, free: 7.027 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01603/0.3005, allocations: 4.164 MB / 213.4 MB, free: 6.426 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.026e-06/0.3005, allocations: 0 / 213.4 MB, free: 6.426 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.811e-05/0.3006, allocations: 3.625 kB / 213.4 MB, free: 6.426 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.001001/0.3016, allocations: 0.5548 MB / 213.9 MB, free: 6.012 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.769e-05/0.3016, allocations: 7.75 kB / 213.9 MB, free: 6.012 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.384e-05/0.3017, allocations: 29.88 kB / 214 MB, free: 5.996 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00029/0.302, allocations: 249.1 kB / 214.2 MB, free: 5.773 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.605e-05/0.3021, allocations: 5.25 kB / 214.2 MB, free: 5.773 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.369e-05/0.3021, allocations: 15.75 kB / 214.2 MB, free: 5.77 MB / 170.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004113/0.3025, allocations: 143.8 kB / 214.4 MB, free: 5.77 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003936/0.3029, allocations: 171.2 kB / 214.5 MB, free: 5.73 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.248e-05/0.303, allocations: 0 / 214.5 MB, free: 5.73 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.335e-05/0.303, allocations: 3.875 kB / 214.5 MB, free: 5.73 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/0.303, allocations: 3.781 kB / 214.5 MB, free: 5.73 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001839/0.3049, allocations: 0.8296 MB / 215.4 MB, free: 5.375 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003235/0.3081, allocations: 469.2 kB / 215.8 MB, free: 5.336 MB / 170.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003474/0.3085, allocations: 142.6 kB / 216 MB, free: 5.324 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.793e-05/0.3086, allocations: 3.875 kB / 216 MB, free: 5.324 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002896/0.3089, allocations: 149.2 kB / 216.1 MB, free: 5.246 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.085e-06/0.3089, allocations: 0 / 216.1 MB, free: 5.246 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.000471/0.3094, allocations: 182.5 kB / 216.3 MB, free: 5.199 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.3094, allocations: 106.7 kB / 216.4 MB, free: 5.07 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002083/0.3096, allocations: 188.7 kB / 216.6 MB, free: 4.977 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.3097, allocations: 25.7 kB / 216.6 MB, free: 4.945 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.37e-05/0.3098, allocations: 211.3 kB / 216.8 MB, free: 4.77 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.401e-05/0.3098, allocations: 62.97 kB / 216.9 MB, free: 4.727 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.756e-05/0.3099, allocations: 4.031 kB / 216.9 MB, free: 4.723 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 5.434e-05/0.3099, allocations: 324.9 kB / 217.2 MB, free: 4.406 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000145/0.3101, allocations: 57.42 kB / 217.3 MB, free: 4.402 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.3103, allocations: 94.28 kB / 217.4 MB, free: 4.359 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001556/0.3104, allocations: 64.55 kB / 217.4 MB, free: 4.355 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.084e-06/0.3105, allocations: 0 / 217.4 MB, free: 4.355 MB / 170.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.0004224/0.3109, allocations: 196.8 kB / 217.6 MB, free: 4.312 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.634e-05/0.3109, allocations: 3.875 kB / 217.6 MB, free: 4.312 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.3109, allocations: 3.875 kB / 217.6 MB, free: 4.312 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.311, allocations: 0 / 217.6 MB, free: 4.312 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002453/0.3134, allocations: 334.7 kB / 217.9 MB, free: 4.293 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004427/0.3179, allocations: 2.957 MB / 220.9 MB, free: 17.67 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004608/0.3184, allocations: 56.05 kB / 221 MB, free: 17.66 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.948e-05/0.3184, allocations: 7.812 kB / 221 MB, free: 17.65 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor.i:VARIABLE(unit = "A" ) "Current flowing from pin p to pin n" type: Real thyristor_v4_1.vControl:VARIABLE(start = 0.0 ) type: Real pulseCurrent.signalSource.T0:DISCRETE(start = pulseCurrent.signalSource.startTime unit = "s" fixed = false protected = true ) "Start time of current period" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: thyristor_v4_1.vAK:VARIABLE() "voltage between anode and cathode" type: Real Warning: Iteration variables with default zero start attribute in equation system with analytic Jacobian: thyristor_v4_1.vGK:VARIABLE() "voltage between gate and cathode" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.pulseCurrent.signalSource.T0,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * 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.0002178/0.3186, allocations: 115.5 kB / 221.1 MB, free: 17.54 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.266e-05/0.3187, allocations: 23.22 kB / 221.1 MB, free: 17.53 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.821e-05/0.3188, allocations: 28.77 kB / 221.1 MB, free: 17.52 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.549e-06/0.3188, allocations: 3.953 kB / 221.1 MB, free: 17.52 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.033e-06/0.3188, allocations: 0 / 221.1 MB, free: 17.52 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.757e-06/0.3188, allocations: 6.422 kB / 221.1 MB, free: 17.52 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001355/0.3202, allocations: 0.6888 MB / 221.8 MB, free: 17.1 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.984e-06/0.3202, allocations: 0 / 221.8 MB, free: 17.1 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002434/0.3227, allocations: 327.3 kB / 222.1 MB, free: 17 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.171e-06/0.3227, allocations: 3.953 kB / 222.1 MB, free: 17 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.092e-05/0.3227, allocations: 7.859 kB / 222.2 MB, free: 17 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004926/0.3277, allocations: 2.953 MB / 225.1 MB, free: 14.24 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.664e-06/0.3277, allocations: 8 kB / 225.1 MB, free: 14.23 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006614/0.3284, allocations: 400.1 kB / 225.5 MB, free: 14.02 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.3286, allocations: 123.9 kB / 225.6 MB, free: 13.9 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.788e-05/0.3286, allocations: 0 / 225.6 MB, free: 13.9 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004034/0.329, allocations: 47.02 kB / 225.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.056e-05/0.3291, allocations: 19.78 kB / 225.7 MB, free: 13.88 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.601e-05/0.3292, allocations: 11.75 kB / 225.7 MB, free: 13.87 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0001697/0.3293, allocations: 154.3 kB / 225.9 MB, free: 13.79 MB / 186.7 MB Notification: Performance of sort global known variables: time 8.1e-07/0.3294, allocations: 0 / 225.9 MB, free: 13.79 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0006036/0.33, allocations: 66.09 kB / 225.9 MB, free: 13.78 MB / 186.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (thyristor_v4_1.vControl,inductor.i) * Number of discrete variables: 2 ($whenCondition1,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * 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): 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.0001641/0.3301, allocations: 110.7 kB / 226 MB, free: 13.68 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.002297/0.3325, allocations: 389.7 kB / 226.4 MB, free: 13.6 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 3.335e-06/0.3325, allocations: 0 / 226.4 MB, free: 13.6 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002098/0.3346, allocations: 323.7 kB / 226.7 MB, free: 13.52 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003809/0.335, allocations: 27.88 kB / 226.8 MB, free: 13.51 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001347/0.3364, allocations: 443.3 kB / 227.2 MB, free: 13.23 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004191/0.3368, allocations: 0.7503 MB / 227.9 MB, free: 12.5 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.364e-05/0.3369, allocations: 19.03 kB / 228 MB, free: 12.49 MB / 186.7 MB Notification: Performance of SimCode: time 1.602e-06/0.3369, allocations: 0 / 228 MB, free: 12.49 MB / 186.7 MB Notification: Performance of Templates: time 0.007478/0.3444, allocations: 4.674 MB / 232.6 MB, free: 10.12 MB / 186.7 MB