Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/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.151/1.151, allocations: 111.1 MB / 127.3 MB, free: 6.145 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002577/0.0002578, allocations: 11.98 kB / 158.9 MB, free: 15.23 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05209/0.05237, allocations: 25.16 MB / 184 MB, free: 6.02 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2104/0.2628, allocations: 36.61 MB / 220.6 MB, free: 6.031 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002431/0.2631, allocations: 67.78 kB / 220.7 MB, free: 6.023 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01977/0.2829, allocations: 4.21 MB / 224.9 MB, free: 4.336 MB / 170.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.283, allocations: 0 / 224.9 MB, free: 4.336 MB / 170.7 MB Notification: Performance of Transformations before backend: time 1.547e-05/0.283, allocations: 7.781 kB / 224.9 MB, free: 4.332 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.001608/0.2846, allocations: 0.5879 MB / 225.5 MB, free: 3.84 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.2847, allocations: 7.531 kB / 225.5 MB, free: 3.84 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.067e-05/0.2848, allocations: 26.66 kB / 225.6 MB, free: 3.828 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003258/0.2851, allocations: 245.3 kB / 225.8 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.2852, allocations: 14.72 kB / 225.8 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.426e-05/0.2852, allocations: 22.31 kB / 225.8 MB, free: 3.594 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.2863, allocations: 265.5 kB / 226.1 MB, free: 3.504 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.767e-05/0.2863, allocations: 7.812 kB / 226.1 MB, free: 3.5 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.2864, allocations: 7.703 kB / 226.1 MB, free: 3.496 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.2864, allocations: 5.109 kB / 226.1 MB, free: 3.496 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001404/0.2878, allocations: 300.7 kB / 226.4 MB, free: 3.434 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002564/0.2904, allocations: 0.8674 MB / 227.3 MB, free: 2.91 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006034/0.2965, allocations: 0.6196 MB / 227.9 MB, free: 2.723 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.9e-05/0.2966, allocations: 3.812 kB / 227.9 MB, free: 2.723 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009188/0.2975, allocations: 225.5 kB / 228.1 MB, free: 2.609 MB / 170.7 MB Notification: Performance of pre-optimization done (n=19): time 3.145e-06/0.2975, allocations: 3.938 kB / 228.1 MB, free: 2.605 MB / 170.7 MB Notification: Performance of matching and sorting (n=19): time 0.002408/0.2999, allocations: 472.2 kB / 228.6 MB, free: 2.48 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.655e-05/0.3, allocations: 88.75 kB / 228.7 MB, free: 2.379 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003632/0.3004, allocations: 228.5 kB / 228.9 MB, free: 2.246 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.071e-05/0.3005, allocations: 29.05 kB / 228.9 MB, free: 2.215 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.3006, allocations: 208.5 kB / 229.1 MB, free: 2.035 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.274e-05/0.3007, allocations: 68.25 kB / 229.2 MB, free: 1.988 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.503e-05/0.3007, allocations: 3 kB / 229.2 MB, free: 1.988 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 6.394e-05/0.3008, allocations: 318.6 kB / 229.5 MB, free: 1.676 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007537/0.3016, allocations: 143.6 kB / 229.6 MB, free: 1.637 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007774/0.3023, allocations: 167.7 kB / 229.8 MB, free: 1.543 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007314/0.3031, allocations: 150.5 kB / 230 MB, free: 1.426 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.3031, allocations: 4 kB / 230 MB, free: 1.422 MB / 170.7 MB Notification: Performance of matching and sorting (n=25) (initialization): time 0.001574/0.3047, allocations: 361.4 kB / 230.3 MB, free: 1.129 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.14e-05/0.3047, allocations: 8 kB / 230.3 MB, free: 1.121 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.777e-06/0.3048, allocations: 0 / 230.3 MB, free: 1.121 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.352e-05/0.3048, allocations: 7.953 kB / 230.3 MB, free: 1.113 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004192/0.309, allocations: 331.2 kB / 230.6 MB, free: 0.793 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008456/0.3175, allocations: 3.27 MB / 233.9 MB, free: 13.38 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006561/0.3182, allocations: 59.05 kB / 234 MB, free: 13.33 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.477e-05/0.3182, allocations: 11.36 kB / 234 MB, free: 13.32 MB / 186.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real thyristor_v4_1.vControl:VARIABLE(start = 0.0 fixed = true ) type: Real pulseCurrent.signalSource.T0:DISCRETE(start = pulseCurrent.signalSource.startTime unit = "s" fixed = true protected = true ) "Start time of current period" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,$PRE.pulseCurrent.signalSource.T0,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Number of clocked 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.0003445/0.3186, allocations: 149.1 kB / 234.1 MB, free: 13.18 MB / 186.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-05/0.3187, allocations: 23.67 kB / 234.2 MB, free: 13.16 MB / 186.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.439e-05/0.3187, allocations: 27.19 kB / 234.2 MB, free: 13.14 MB / 186.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.3188, allocations: 4 kB / 234.2 MB, free: 13.14 MB / 186.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.3188, allocations: 0 / 234.2 MB, free: 13.14 MB / 186.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.3188, allocations: 3.984 kB / 234.2 MB, free: 13.14 MB / 186.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000504/0.3193, allocations: 328.5 kB / 234.5 MB, free: 12.83 MB / 186.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.185e-06/0.3193, allocations: 3.984 kB / 234.5 MB, free: 12.82 MB / 186.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004281/0.3236, allocations: 327.6 kB / 234.8 MB, free: 12.5 MB / 186.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.456e-06/0.3237, allocations: 0 / 234.8 MB, free: 12.5 MB / 186.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.439e-05/0.3237, allocations: 6.625 kB / 234.8 MB, free: 12.5 MB / 186.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008583/0.3323, allocations: 3.273 MB / 238.1 MB, free: 9.086 MB / 186.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.3324, allocations: 8.172 kB / 238.1 MB, free: 9.078 MB / 186.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002562/0.3349, allocations: 0.5354 MB / 238.7 MB, free: 8.629 MB / 186.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.3352, allocations: 123.8 kB / 238.8 MB, free: 8.5 MB / 186.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.915e-05/0.3353, allocations: 0 / 238.8 MB, free: 8.5 MB / 186.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005595/0.3358, allocations: 47.45 kB / 238.8 MB, free: 8.457 MB / 186.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001127/0.336, allocations: 23.59 kB / 238.8 MB, free: 8.438 MB / 186.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.036e-05/0.336, allocations: 4 kB / 238.8 MB, free: 8.434 MB / 186.7 MB Notification: Performance of sorting global known variables: time 0.0002325/0.3362, allocations: 161.6 kB / 239 MB, free: 8.305 MB / 186.7 MB Notification: Performance of sort global known variables: time 2.164e-06/0.3363, allocations: 0 / 239 MB, free: 8.305 MB / 186.7 MB Notification: Performance of remove unused functions: time 0.0005947/0.3369, allocations: 82.91 kB / 239.1 MB, free: 8.23 MB / 186.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: 2 ($whenCondition1,pulseCurrent.signalSource.T0) * Number of discrete states: 0 () * Number of clocked 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.0002014/0.3371, allocations: 106.6 kB / 239.2 MB, free: 8.121 MB / 186.7 MB Notification: Performance of simCode: created initialization part: time 0.005452/0.3425, allocations: 0.5728 MB / 239.8 MB, free: 7.602 MB / 186.7 MB Notification: Performance of simCode: created event and clocks part: time 6.732e-06/0.3426, allocations: 0 / 239.8 MB, free: 7.602 MB / 186.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004605/0.3472, allocations: 425.4 kB / 240.2 MB, free: 7.215 MB / 186.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005388/0.3478, allocations: 38.39 kB / 240.2 MB, free: 7.184 MB / 186.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002679/0.3505, allocations: 0.7297 MB / 240.9 MB, free: 6.469 MB / 186.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3509, allocations: 0.7559 MB / 241.7 MB, free: 5.688 MB / 186.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001548/0.3511, allocations: 23.42 kB / 241.7 MB, free: 5.664 MB / 186.7 MB Notification: Performance of SimCode: time 1.132e-06/0.3511, allocations: 0 / 241.7 MB, free: 5.664 MB / 186.7 MB Notification: Performance of Templates: time 0.01096/0.362, allocations: 4.745 MB / 246.5 MB, free: 0.9492 MB / 186.7 MB