Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") Notification: Performance of loadModel(Modelica): time 2.061/2.061, allocations: 194.9 MB / 212.3 MB, free: 3.012 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003899/0.00039, allocations: 15.98 kB / 264.5 MB, free: 13.64 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09485/0.09526, allocations: 44.5 MB / 309 MB, free: 1.066 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4129/0.5082, allocations: 74.86 MB / 383.8 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002606/0.5085, allocations: 74.05 kB / 383.9 MB, free: 14.89 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02208/0.5306, allocations: 4.65 MB / 388.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.5307, allocations: 0 / 388.6 MB, free: 14.27 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.796e-05/0.5307, allocations: 7.719 kB / 388.6 MB, free: 14.27 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.001867/0.5326, allocations: 0.6373 MB / 389.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/0.5326, allocations: 7.125 kB / 389.2 MB, free: 13.79 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.5328, allocations: 30.88 kB / 389.2 MB, free: 13.78 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.5331, allocations: 268.8 kB / 389.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.819e-05/0.5332, allocations: 20.53 kB / 389.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.816e-05/0.5333, allocations: 22.39 kB / 389.5 MB, free: 13.54 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001265/0.5346, allocations: 325.7 kB / 389.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.5346, allocations: 0 / 389.9 MB, free: 13.48 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.77e-05/0.5347, allocations: 15.16 kB / 389.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.5347, allocations: 7.75 kB / 389.9 MB, free: 13.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001641/0.5363, allocations: 334.4 kB / 390.2 MB, free: 13.46 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002921/0.5393, allocations: 1.014 MB / 391.2 MB, free: 12.99 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005853/0.5452, allocations: 0.6201 MB / 391.8 MB, free: 12.94 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.904e-05/0.5453, allocations: 10.27 kB / 391.9 MB, free: 12.93 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001074/0.5464, allocations: 251.9 kB / 392.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of pre-optimization done (n=21): time 2.845e-06/0.5464, allocations: 0 / 392.1 MB, free: 12.86 MB / 314.7 MB Notification: Performance of matching and sorting (n=21): time 0.002663/0.5491, allocations: 0.5316 MB / 392.6 MB, free: 12.8 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.646e-05/0.5492, allocations: 81.11 kB / 392.7 MB, free: 12.7 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003107/0.5495, allocations: 234.9 kB / 392.9 MB, free: 12.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.5496, allocations: 29.64 kB / 393 MB, free: 12.56 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001077/0.5497, allocations: 211.3 kB / 393.2 MB, free: 12.39 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.553e-05/0.5498, allocations: 77.94 kB / 393.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.818e-05/0.5498, allocations: 2.938 kB / 393.3 MB, free: 12.34 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.303e-05/0.5499, allocations: 320.3 kB / 393.6 MB, free: 12.03 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000824/0.5507, allocations: 166 kB / 393.7 MB, free: 12.02 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008444/0.5516, allocations: 201 kB / 393.9 MB, free: 11.98 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008593/0.5524, allocations: 192.3 kB / 394.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.5525, allocations: 0 / 394.1 MB, free: 11.95 MB / 314.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001846/0.5543, allocations: 439 kB / 394.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.259e-05/0.5544, allocations: 36.89 kB / 394.6 MB, free: 11.83 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.857e-06/0.5544, allocations: 4 kB / 394.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.22e-05/0.5544, allocations: 0 / 394.6 MB, free: 11.82 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004193/0.5586, allocations: 336 kB / 394.9 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007735/0.5664, allocations: 3.272 MB / 398.2 MB, free: 9.047 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007749/0.5672, allocations: 69.52 kB / 398.3 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.908e-05/0.5673, allocations: 3.875 kB / 398.3 MB, free: 9.031 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.0002335/0.5675, allocations: 141.2 kB / 398.4 MB, free: 8.914 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.932e-05/0.5676, allocations: 19.41 kB / 398.4 MB, free: 8.906 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.641e-05/0.5677, allocations: 33.33 kB / 398.4 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.5677, allocations: 0 / 398.4 MB, free: 8.898 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.588e-06/0.5677, allocations: 4 kB / 398.4 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.5677, allocations: 2.812 kB / 398.5 MB, free: 8.895 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004952/0.5682, allocations: 355.1 kB / 398.8 MB, free: 8.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/0.5683, allocations: 3.938 kB / 398.8 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004195/0.5725, allocations: 317.8 kB / 399.1 MB, free: 8.676 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.547e-06/0.5725, allocations: 7.938 kB / 399.1 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.743e-05/0.5726, allocations: 10.47 kB / 399.1 MB, free: 8.668 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007625/0.5802, allocations: 3.276 MB / 402.4 MB, free: 5.906 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.5803, allocations: 7.891 kB / 402.4 MB, free: 5.898 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002689/0.583, allocations: 0.5889 MB / 403 MB, free: 5.805 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001115/0.5831, allocations: 107.7 kB / 403.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.406e-05/0.5832, allocations: 3.438 kB / 403.1 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006337/0.5839, allocations: 52.44 kB / 403.2 MB, free: 5.695 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.584, allocations: 35.83 kB / 403.2 MB, free: 5.684 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.084e-05/0.584, allocations: 7.344 kB / 403.2 MB, free: 5.684 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0002271/0.5843, allocations: 169.1 kB / 403.4 MB, free: 5.605 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5843, allocations: 0 / 403.4 MB, free: 5.605 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005881/0.5849, allocations: 81.75 kB / 403.5 MB, free: 5.598 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.0001798/0.5851, allocations: 118.4 kB / 403.6 MB, free: 5.504 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.005485/0.5906, allocations: 0.6731 MB / 404.2 MB, free: 5.41 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.5906, allocations: 0 / 404.2 MB, free: 5.41 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004476/0.5951, allocations: 448.5 kB / 404.7 MB, free: 5.387 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004755/0.5956, allocations: 29.58 kB / 404.7 MB, free: 5.387 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002256/0.5979, allocations: 0.7338 MB / 405.4 MB, free: 4.984 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004744/0.5984, allocations: 0.7642 MB / 406.2 MB, free: 20.28 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000189/0.5986, allocations: 19.44 kB / 406.2 MB, free: 20.27 MB / 330.7 MB Notification: Performance of SimCode: time 1.092e-06/0.5986, allocations: 0 / 406.2 MB, free: 20.27 MB / 330.7 MB Notification: Performance of Templates: time 0.009791/0.6084, allocations: 5.194 MB / 411.4 MB, free: 18.98 MB / 330.7 MB "Error: Could not read variable pulseCurrent.signalSource.T_start in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_start from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.T_width in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_width from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.count in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.count from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Roff in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Roff from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Ron in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Ron from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Voff in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Voff from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Von in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Von from file Modelica_3.2.2_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