Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.894/1.894, allocations: 171.2 MB / 187.3 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003706/0.0003708, allocations: 8 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08686/0.08727, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3659/0.4533, allocations: 69.84 MB / 342.4 MB, free: 4.211 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000352/0.4537, allocations: 76.7 kB / 342.5 MB, free: 4.168 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03095/0.4846, allocations: 4.717 MB / 347.2 MB, free: 92 kB / 266.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4847, allocations: 0 / 347.2 MB, free: 92 kB / 266.7 MB Notification: Performance of Transformations before backend: time 2.586e-05/0.4848, allocations: 4 kB / 347.2 MB, free: 88 kB / 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.002794/0.4876, allocations: 0.6457 MB / 347.8 MB, free: 15.4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.613e-05/0.4876, allocations: 12.03 kB / 347.8 MB, free: 15.39 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.4878, allocations: 31.62 kB / 347.9 MB, free: 15.36 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005857/0.4884, allocations: 264.1 kB / 348.1 MB, free: 15.08 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.29e-05/0.4885, allocations: 18.64 kB / 348.1 MB, free: 15.07 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001099/0.4886, allocations: 19.81 kB / 348.2 MB, free: 15.05 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001814/0.4904, allocations: 323.8 kB / 348.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/0.4905, allocations: 4 kB / 348.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.702e-05/0.4906, allocations: 11.38 kB / 348.5 MB, free: 14.79 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.4906, allocations: 4 kB / 348.5 MB, free: 14.78 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001759/0.4924, allocations: 335 kB / 348.8 MB, free: 14.52 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00321/0.4956, allocations: 1.027 MB / 349.8 MB, free: 13.62 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006162/0.5018, allocations: 0.6289 MB / 350.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.816e-05/0.5019, allocations: 0 / 350.5 MB, free: 13.06 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.5032, allocations: 259.1 kB / 350.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 4.769e-06/0.5032, allocations: 0 / 350.7 MB, free: 12.83 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.002916/0.5062, allocations: 0.5281 MB / 351.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.613e-05/0.5063, allocations: 84.67 kB / 351.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003873/0.5067, allocations: 231.5 kB / 351.6 MB, free: 12.09 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.377e-05/0.5068, allocations: 33.33 kB / 351.6 MB, free: 12.05 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001547/0.5069, allocations: 210.7 kB / 351.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.563e-05/0.507, allocations: 73.73 kB / 351.9 MB, free: 11.8 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.134e-05/0.5071, allocations: 7.188 kB / 351.9 MB, free: 11.8 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001526/0.5072, allocations: 322.1 kB / 352.2 MB, free: 11.48 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009085/0.5082, allocations: 165 kB / 352.4 MB, free: 11.35 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009463/0.5091, allocations: 197.1 kB / 352.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009615/0.5101, allocations: 194.9 kB / 352.7 MB, free: 11.03 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.5101, allocations: 0 / 352.7 MB, free: 11.03 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.002086/0.5122, allocations: 448 kB / 353.2 MB, free: 10.66 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.415e-05/0.5123, allocations: 29.7 kB / 353.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.003e-05/0.5124, allocations: 0 / 353.2 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.392e-05/0.5124, allocations: 7.953 kB / 353.2 MB, free: 10.61 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004432/0.5168, allocations: 335.1 kB / 353.5 MB, free: 10.29 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008981/0.5259, allocations: 3.264 MB / 356.8 MB, free: 6.887 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008168/0.5267, allocations: 71.41 kB / 356.9 MB, free: 6.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.213e-05/0.5268, allocations: 6.812 kB / 356.9 MB, free: 6.816 MB / 282.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.0002658/0.5271, allocations: 141.3 kB / 357 MB, free: 6.684 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.771e-05/0.5272, allocations: 27.67 kB / 357.1 MB, free: 6.656 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.538e-05/0.5273, allocations: 37.92 kB / 357.1 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.5273, allocations: 0 / 357.1 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.5273, allocations: 0 / 357.1 MB, free: 6.633 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.5273, allocations: 3.938 kB / 357.1 MB, free: 6.629 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005407/0.5279, allocations: 345.3 kB / 357.4 MB, free: 6.305 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.5279, allocations: 3.953 kB / 357.4 MB, free: 6.301 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004443/0.5323, allocations: 335 kB / 357.8 MB, free: 5.977 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.097e-06/0.5324, allocations: 0 / 357.8 MB, free: 5.977 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.297e-05/0.5325, allocations: 11.42 kB / 357.8 MB, free: 5.969 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008848/0.5413, allocations: 3.273 MB / 361 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.951e-06/0.5414, allocations: 4.031 kB / 361 MB, free: 2.551 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002931/0.5443, allocations: 0.5969 MB / 361.6 MB, free: 2.055 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001959/0.5445, allocations: 122.5 kB / 361.8 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.917e-05/0.5446, allocations: 3.375 kB / 361.8 MB, free: 1.93 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006629/0.5453, allocations: 55.33 kB / 361.8 MB, free: 1.879 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.5455, allocations: 26.7 kB / 361.8 MB, free: 1.855 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.594e-05/0.5455, allocations: 7.125 kB / 361.9 MB, free: 1.852 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000248/0.5458, allocations: 168.4 kB / 362 MB, free: 1.711 MB / 282.7 MB Notification: Performance of sort global known variables: time 2.605e-06/0.5458, allocations: 0 / 362 MB, free: 1.711 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006438/0.5464, allocations: 89.2 kB / 362.1 MB, free: 1.629 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.0002239/0.5467, allocations: 114.6 kB / 362.2 MB, free: 1.508 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.005848/0.5525, allocations: 0.6703 MB / 362.9 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.703e-06/0.5526, allocations: 0 / 362.9 MB, free: 0.8984 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004749/0.5574, allocations: 454.6 kB / 363.3 MB, free: 500 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004841/0.5579, allocations: 37.06 kB / 363.4 MB, free: 476 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002508/0.5604, allocations: 0.7482 MB / 364.1 MB, free: 15.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003705/0.5608, allocations: 0.7521 MB / 364.9 MB, free: 14.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.561, allocations: 23.44 kB / 364.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of SimCode: time 1.032e-06/0.561, allocations: 0 / 364.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of Templates: time 0.01173/0.5728, allocations: 5.177 MB / 370.1 MB, free: 9.781 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