Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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 1.847/1.847, allocations: 194.8 MB / 211.6 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003716/0.0003719, allocations: 11.98 kB / 263.8 MB, free: 13.6 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08116/0.08156, allocations: 44.51 MB / 308.4 MB, free: 1.02 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003494/0.0851, allocations: 2.157 MB / 310.5 MB, free: 14.85 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00163/0.08677, allocations: 0.7142 MB / 311.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001894/0.08699, allocations: 4 kB / 311.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 7.86e-05/0.08709, allocations: 35.75 kB / 311.3 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002601/0.08736, allocations: 87.73 kB / 311.4 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000335/0.08771, allocations: 75.78 kB / 311.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003754/0.0881, allocations: 239.4 kB / 311.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001961/0.08831, allocations: 65.33 kB / 311.7 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002601/0.08859, allocations: 127.6 kB / 311.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002655/0.08887, allocations: 151.4 kB / 312 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.457e-05/0.08894, allocations: 16 kB / 312 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.039e-05/0.08902, allocations: 19.94 kB / 312 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.588e-05/0.0891, allocations: 51.8 kB / 312.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 9.744e-05/0.08922, allocations: 77.58 kB / 312.2 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003591/0.08959, allocations: 255.5 kB / 312.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.71e-06/0.08961, allocations: 0 / 312.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.368e-06/0.08962, allocations: 0 / 312.4 MB, free: 12.94 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.719e-06/0.08964, allocations: 0 / 312.4 MB, free: 12.94 MB / 266.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.001729/0.09138, allocations: 0.6647 MB / 313.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.09143, allocations: 8.031 kB / 313.1 MB, free: 12.21 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.09154, allocations: 31.62 kB / 313.1 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.09198, allocations: 263.4 kB / 313.4 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.612e-05/0.09203, allocations: 16.44 kB / 313.4 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.204e-05/0.09211, allocations: 24 kB / 313.4 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009999/0.09312, allocations: 325.7 kB / 313.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.09315, allocations: 0 / 313.7 MB, free: 11.51 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.867e-05/0.0932, allocations: 4 kB / 313.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.09322, allocations: 4 kB / 313.7 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001247/0.09448, allocations: 341.5 kB / 314.1 MB, free: 11.17 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002382/0.09688, allocations: 0.9921 MB / 315.1 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003535/0.1004, allocations: 0.5962 MB / 315.7 MB, free: 9.504 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.074e-05/0.1005, allocations: 7.891 kB / 315.7 MB, free: 9.496 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008442/0.1014, allocations: 266.5 kB / 315.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of pre-optimization done (n=21): time 2.911e-06/0.1014, allocations: 0 / 315.9 MB, free: 9.219 MB / 266.7 MB Notification: Performance of matching and sorting (n=21): time 0.002021/0.1034, allocations: 0.522 MB / 316.4 MB, free: 8.691 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.195e-05/0.1035, allocations: 85.09 kB / 316.5 MB, free: 8.59 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003402/0.1039, allocations: 229 kB / 316.8 MB, free: 8.352 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.775e-05/0.104, allocations: 37.69 kB / 316.8 MB, free: 8.309 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.1041, allocations: 210.6 kB / 317 MB, free: 8.102 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.716e-05/0.1043, allocations: 67.02 kB / 317.1 MB, free: 8.035 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.1043, allocations: 4 kB / 317.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.1045, allocations: 322.8 kB / 317.4 MB, free: 7.707 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006411/0.1051, allocations: 164.4 kB / 317.5 MB, free: 7.547 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006637/0.1058, allocations: 203.4 kB / 317.7 MB, free: 7.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006582/0.1065, allocations: 182.6 kB / 317.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.56e-06/0.1065, allocations: 0 / 317.9 MB, free: 7.156 MB / 266.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001496/0.108, allocations: 443.9 kB / 318.3 MB, free: 6.711 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.345e-05/0.1081, allocations: 37.69 kB / 318.4 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.1081, allocations: 0 / 318.4 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.1081, allocations: 0 / 318.4 MB, free: 6.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002151/0.1103, allocations: 311.6 kB / 318.7 MB, free: 6.363 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006164/0.1165, allocations: 3.244 MB / 321.9 MB, free: 2.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004967/0.117, allocations: 63.89 kB / 322 MB, free: 2.789 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.564e-05/0.1171, allocations: 15.98 kB / 322 MB, free: 2.773 MB / 266.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.0002391/0.1173, allocations: 145.5 kB / 322.2 MB, free: 2.625 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.271e-05/0.1174, allocations: 23.72 kB / 322.2 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.15e-05/0.1175, allocations: 30.17 kB / 322.2 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.1175, allocations: 8 kB / 322.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.694e-06/0.1175, allocations: 0 / 322.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.006e-06/0.1175, allocations: 0 / 322.2 MB, free: 2.566 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005253/0.1181, allocations: 357.2 kB / 322.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.1181, allocations: 0 / 322.6 MB, free: 2.168 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002157/0.1203, allocations: 307.6 kB / 322.9 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.354e-06/0.1203, allocations: 0 / 322.9 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.46e-05/0.1203, allocations: 7.984 kB / 322.9 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006362/0.1267, allocations: 3.255 MB / 326.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.363e-06/0.1268, allocations: 0 / 326.1 MB, free: 14.34 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002134/0.1289, allocations: 0.5865 MB / 326.7 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001319/0.1291, allocations: 104.8 kB / 326.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.556e-05/0.1292, allocations: 12.06 kB / 326.8 MB, free: 13.61 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004149/0.1296, allocations: 47.95 kB / 326.9 MB, free: 13.56 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.1297, allocations: 31.91 kB / 326.9 MB, free: 13.53 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-05/0.1298, allocations: 11.98 kB / 326.9 MB, free: 13.52 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002342/0.13, allocations: 176.4 kB / 327.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.32e-07/0.13, allocations: 0 / 327.1 MB, free: 13.34 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0005811/0.1306, allocations: 75.89 kB / 327.2 MB, free: 13.27 MB / 282.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.0001672/0.1308, allocations: 103.2 kB / 327.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.003234/0.1341, allocations: 0.6473 MB / 327.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 8.318e-06/0.1341, allocations: 4 kB / 327.9 MB, free: 12.5 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002452/0.1366, allocations: 423.6 kB / 328.3 MB, free: 12.08 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000384/0.137, allocations: 39.5 kB / 328.4 MB, free: 12.05 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001972/0.139, allocations: 0.7398 MB / 329.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.1395, allocations: 0.756 MB / 329.9 MB, free: 10.49 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001455/0.1396, allocations: 19.44 kB / 329.9 MB, free: 10.47 MB / 282.7 MB Notification: Performance of SimCode: time 1.682e-06/0.1397, allocations: 0 / 329.9 MB, free: 10.47 MB / 282.7 MB Notification: Performance of Templates: time 0.01024/0.1499, allocations: 5.226 MB / 335.1 MB, free: 5.25 MB / 282.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