Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 1.69/1.69, allocations: 171.2 MB / 184.2 MB, free: 12.04 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.758e-05/2.772e-05, allocations: 3.984 kB / 228.8 MB, free: 15.42 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2032/0.2033, allocations: 38.78 MB / 267.6 MB, free: 9.457 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1043/0.3076, allocations: 69.77 MB / 337.4 MB, free: 3.586 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/0.3079, allocations: 67.97 kB / 337.4 MB, free: 3.52 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02045/0.3284, allocations: 4.697 MB / 342.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.813e-06/0.3284, allocations: 0 / 342.1 MB, free: 14.8 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.715e-05/0.3285, allocations: 11.98 kB / 342.1 MB, free: 14.79 MB / 298.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.001428/0.3299, allocations: 0.5981 MB / 342.7 MB, free: 14.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.33, allocations: 15.97 kB / 342.8 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.164e-05/0.3301, allocations: 31.62 kB / 342.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004145/0.3305, allocations: 255.7 kB / 343 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.513e-05/0.3305, allocations: 16.44 kB / 343 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.478e-05/0.3306, allocations: 19.95 kB / 343.1 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006002/0.3312, allocations: 249.8 kB / 343.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.21e-05/0.3313, allocations: 0 / 343.3 MB, free: 13.51 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.669e-05/0.3313, allocations: 8 kB / 343.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.3313, allocations: 11.94 kB / 343.3 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005146/0.3319, allocations: 173.7 kB / 343.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002524/0.3344, allocations: 1.023 MB / 344.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003197/0.3376, allocations: 478.4 kB / 345 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004957/0.3382, allocations: 156.8 kB / 345.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.146e-05/0.3382, allocations: 0 / 345.1 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004379/0.3387, allocations: 187.8 kB / 345.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 2.577e-06/0.3387, allocations: 0 / 345.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0006505/0.3394, allocations: 213.3 kB / 345.5 MB, free: 11.18 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.696e-05/0.3395, allocations: 110.8 kB / 345.6 MB, free: 11.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003088/0.3398, allocations: 209 kB / 345.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.721e-05/0.3399, allocations: 29.7 kB / 345.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001514/0.34, allocations: 214.6 kB / 346.1 MB, free: 10.59 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.26e-05/0.3401, allocations: 74.98 kB / 346.2 MB, free: 10.51 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.904e-05/0.3402, allocations: 8 kB / 346.2 MB, free: 10.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001504/0.3403, allocations: 318.8 kB / 346.5 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002403/0.3406, allocations: 80.45 kB / 346.6 MB, free: 10.1 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002675/0.3409, allocations: 112.4 kB / 346.7 MB, free: 9.98 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002579/0.3411, allocations: 113.6 kB / 346.8 MB, free: 9.863 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.099e-06/0.3411, allocations: 0 / 346.8 MB, free: 9.863 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006696/0.3418, allocations: 267.1 kB / 347 MB, free: 9.59 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.652e-05/0.3419, allocations: 35.88 kB / 347.1 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.617e-06/0.3419, allocations: 4 kB / 347.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.3419, allocations: 0 / 347.1 MB, free: 9.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002715/0.3447, allocations: 331.8 kB / 347.4 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005455/0.3501, allocations: 3.056 MB / 350.5 MB, free: 5.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000554/0.3507, allocations: 71.89 kB / 350.5 MB, free: 5.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.31e-05/0.3508, allocations: 15.98 kB / 350.5 MB, free: 5.824 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 () * 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.0001599/0.351, allocations: 120.9 kB / 350.7 MB, free: 5.699 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.648e-05/0.3511, allocations: 31.67 kB / 350.7 MB, free: 5.668 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.526e-05/0.3511, allocations: 25.97 kB / 350.7 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.636e-06/0.3512, allocations: 0 / 350.7 MB, free: 5.641 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.631e-06/0.3512, allocations: 7.984 kB / 350.7 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.415e-06/0.3512, allocations: 0 / 350.7 MB, free: 5.633 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001739/0.3529, allocations: 0.7975 MB / 351.5 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.353, allocations: 0 / 351.5 MB, free: 4.773 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002688/0.3557, allocations: 323.7 kB / 351.8 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.16e-05/0.3557, allocations: 4 kB / 351.8 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.621e-05/0.3557, allocations: 7.984 kB / 351.9 MB, free: 4.445 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005374/0.3611, allocations: 3.049 MB / 354.9 MB, free: 1.133 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.075e-06/0.3612, allocations: 4.062 kB / 354.9 MB, free: 1.129 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009569/0.3621, allocations: 450.7 kB / 355.3 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001925/0.3624, allocations: 128.7 kB / 355.5 MB, free: 0.5117 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.105e-05/0.3624, allocations: 11.94 kB / 355.5 MB, free: 0.5 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004967/0.3629, allocations: 52.02 kB / 355.5 MB, free: 460 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.3631, allocations: 39.89 kB / 355.6 MB, free: 420 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.034e-05/0.3631, allocations: 4 kB / 355.6 MB, free: 416 kB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002346/0.3634, allocations: 169.4 kB / 355.7 MB, free: 244 kB / 298.7 MB Notification: Performance of sort global known variables: time 9.49e-07/0.3634, allocations: 0 / 355.7 MB, free: 244 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006499/0.364, allocations: 79.84 kB / 355.8 MB, free: 164 kB / 298.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: 3 ($whenCondition1,pulseCurrent.signalSource.T_start,pulseCurrent.signalSource.count) * Number of discrete states: 1 (pulseCurrent.signalSource.count) * 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.0001956/0.3642, allocations: 127 kB / 355.9 MB, free: 28 kB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.1749/0.5392, allocations: 477.6 kB / 356.4 MB, free: 80.82 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.331e-06/0.5392, allocations: 3.031 kB / 356.4 MB, free: 80.82 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.5417, allocations: 340.4 kB / 356.7 MB, free: 80.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004411/0.5422, allocations: 34.78 kB / 356.8 MB, free: 80.82 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001663/0.5439, allocations: 459.4 kB / 357.2 MB, free: 80.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.5441, allocations: 0.7541 MB / 358 MB, free: 79.94 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001159/0.5443, allocations: 25.34 kB / 358 MB, free: 79.93 MB / 298.7 MB Notification: Performance of SimCode: time 1.671e-06/0.5443, allocations: 0 / 358 MB, free: 79.93 MB / 298.7 MB Notification: Performance of Templates: time 0.007638/0.5519, allocations: 5.146 MB / 363.2 MB, free: 79.28 MB / 298.7 MB "Error: Could not read variable pulseCurrent.signalSource.T_start in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_start from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.T_width in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_width from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.count in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.count from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable sineVoltage.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable sineVoltage.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Roff in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Roff from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Ron in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Ron from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Voff in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Voff from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Von in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Von from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! " Variables in the reference:time,inductor.i,thyristor_v4_1.vControl Variables in the result:ground.p.i,ground.p.v,inductor.L,der(inductor.i),inductor.i,inductor.n.i,inductor.n.v,inductor.p.i,inductor.p.v,inductor.v,pulseCurrent.I,pulseCurrent.i,pulseCurrent.n.i,pulseCurrent.n.v,pulseCurrent.offset,pulseCurrent.p.i,pulseCurrent.p.v,pulseCurrent.period,pulseCurrent.signalSource.amplitude,pulseCurrent.signalSource.nperiod,pulseCurrent.signalSource.offset,pulseCurrent.signalSource.period,pulseCurrent.signalSource.startTime,pulseCurrent.signalSource.width,pulseCurrent.signalSource.y,pulseCurrent.startTime,pulseCurrent.v,pulseCurrent.width,resistor.LossPower,resistor.R,resistor.R_actual,resistor.T,resistor.T_heatPort,resistor.T_ref,resistor.alpha,resistor.i,resistor.n.i,resistor.n.v,resistor.p.i,resistor.p.v,resistor.v,sineVoltage.V,sineVoltage.freqHz,sineVoltage.i,sineVoltage.n.i,sineVoltage.n.v,sineVoltage.offset,sineVoltage.p.i,sineVoltage.p.v,sineVoltage.phase,sineVoltage.signalSource.amplitude,sineVoltage.signalSource.freqHz,sineVoltage.signalSource.offset,sineVoltage.signalSource.phase,sineVoltage.signalSource.startTime,sineVoltage.signalSource.y,sineVoltage.startTime,sineVoltage.v,thyristor_v4_1.Anode.i,thyristor_v4_1.Anode.v,thyristor_v4_1.Cathode.i,thyristor_v4_1.Cathode.v,thyristor_v4_1.Gate.i,thyristor_v4_1.Gate.v,thyristor_v4_1.IDRM,thyristor_v4_1.IGT,thyristor_v4_1.IH,thyristor_v4_1.ITM,thyristor_v4_1.LossPower,thyristor_v4_1.Nbv,thyristor_v4_1.T,thyristor_v4_1.TOFF,thyristor_v4_1.TON,thyristor_v4_1.T_heatPort,thyristor_v4_1.VDRM,thyristor_v4_1.VGT,thyristor_v4_1.VRRM,thyristor_v4_1.VTM,thyristor_v4_1.Vt,der(thyristor_v4_1.vControl),thyristor_v4_1.iGK,thyristor_v4_1.vAK,thyristor_v4_1.vConmain,thyristor_v4_1.vContot,thyristor_v4_1.vControl,thyristor_v4_1.vGK,time