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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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.643/1.643, allocations: 171.3 MB / 179.2 MB, free: 7.582 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.322e-05/2.334e-05, allocations: 4 kB / 222.5 MB, free: 8.711 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06641/0.06646, allocations: 38.77 MB / 261.3 MB, free: 1.859 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2757/0.3422, allocations: 69.11 MB / 330.4 MB, free: 3.191 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002131/0.3425, allocations: 69.08 kB / 330.5 MB, free: 3.156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01996/0.3625, allocations: 4.66 MB / 335.1 MB, free: 15.19 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.239e-06/0.3625, allocations: 0 / 335.1 MB, free: 15.19 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.925e-05/0.3626, allocations: 4 kB / 335.1 MB, free: 15.18 MB / 282.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.00141/0.364, allocations: 0.5975 MB / 335.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.114e-05/0.364, allocations: 10.66 kB / 335.7 MB, free: 14.54 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001037/0.3642, allocations: 35.62 kB / 335.8 MB, free: 14.5 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004162/0.3646, allocations: 260.2 kB / 336 MB, free: 14.23 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.3646, allocations: 8 kB / 336 MB, free: 14.22 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/0.3647, allocations: 15.95 kB / 336 MB, free: 14.2 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0004615/0.3652, allocations: 163 kB / 336.2 MB, free: 14.11 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005083/0.3657, allocations: 222.7 kB / 336.4 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.3657, allocations: 0 / 336.4 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.537e-05/0.3658, allocations: 0 / 336.4 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.3658, allocations: 4 kB / 336.4 MB, free: 13.93 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.3682, allocations: 0.9837 MB / 337.4 MB, free: 13.07 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003118/0.3714, allocations: 476.6 kB / 337.9 MB, free: 12.67 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004342/0.3718, allocations: 144 kB / 338 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.189e-05/0.3719, allocations: 8 kB / 338 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003873/0.3723, allocations: 171.9 kB / 338.2 MB, free: 12.41 MB / 282.7 MB Notification: Performance of pre-optimization done (n=21): time 3.236e-06/0.3723, allocations: 0 / 338.2 MB, free: 12.41 MB / 282.7 MB Notification: Performance of matching and sorting (n=21): time 0.0005935/0.3729, allocations: 199.2 kB / 338.4 MB, free: 12.26 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.363e-05/0.373, allocations: 110.8 kB / 338.5 MB, free: 12.12 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002765/0.3733, allocations: 201.2 kB / 338.7 MB, free: 11.96 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 4.477e-05/0.3734, allocations: 25.7 kB / 338.7 MB, free: 11.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.3735, allocations: 210 kB / 338.9 MB, free: 11.74 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.598e-05/0.3736, allocations: 73.94 kB / 339 MB, free: 11.68 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.187e-05/0.3737, allocations: 0 / 339 MB, free: 11.68 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001802/0.3739, allocations: 326 kB / 339.3 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002016/0.3741, allocations: 73.66 kB / 339.4 MB, free: 11.31 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002356/0.3743, allocations: 109.7 kB / 339.5 MB, free: 11.23 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002034/0.3745, allocations: 76.41 kB / 339.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.271e-06/0.3746, allocations: 0 / 339.6 MB, free: 11.18 MB / 282.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005809/0.3751, allocations: 220.8 kB / 339.8 MB, free: 11.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.424e-05/0.3752, allocations: 29.7 kB / 339.8 MB, free: 10.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.627e-06/0.3752, allocations: 4 kB / 339.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.79e-05/0.3753, allocations: 0 / 339.8 MB, free: 10.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002702/0.378, allocations: 335.7 kB / 340.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005333/0.3833, allocations: 2.976 MB / 343.1 MB, free: 7.566 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005272/0.3839, allocations: 55.8 kB / 343.2 MB, free: 7.512 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.271e-05/0.3839, allocations: 8 kB / 343.2 MB, free: 7.504 MB / 282.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.0001571/0.3841, allocations: 126.8 kB / 343.3 MB, free: 7.383 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.69e-05/0.3842, allocations: 27.7 kB / 343.3 MB, free: 7.355 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.466e-05/0.3843, allocations: 19.97 kB / 343.3 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.328e-06/0.3843, allocations: 4 kB / 343.3 MB, free: 7.344 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.943e-06/0.3843, allocations: 0 / 343.3 MB, free: 7.344 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.575e-05/0.3843, allocations: 7.938 kB / 343.4 MB, free: 7.336 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001573/0.3859, allocations: 0.7349 MB / 344.1 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.433e-06/0.3859, allocations: 0 / 344.1 MB, free: 6.676 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00263/0.3886, allocations: 335.1 kB / 344.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.858e-06/0.3886, allocations: 0 / 344.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.846e-05/0.3887, allocations: 4 kB / 344.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005197/0.3939, allocations: 2.954 MB / 347.4 MB, free: 3.277 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.182e-06/0.3939, allocations: 4 kB / 347.4 MB, free: 3.273 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008558/0.3948, allocations: 437.2 kB / 347.8 MB, free: 2.918 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001867/0.395, allocations: 123.4 kB / 347.9 MB, free: 2.789 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.935e-05/0.3951, allocations: 7.5 kB / 347.9 MB, free: 2.785 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004874/0.3956, allocations: 47.94 kB / 348 MB, free: 2.738 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.3957, allocations: 31.22 kB / 348 MB, free: 2.711 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.415e-05/0.3957, allocations: 11.42 kB / 348 MB, free: 2.703 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001927/0.396, allocations: 153 kB / 348.2 MB, free: 2.582 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.7e-07/0.396, allocations: 0 / 348.2 MB, free: 2.582 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006502/0.3966, allocations: 79.78 kB / 348.2 MB, free: 2.504 MB / 282.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.0001891/0.3968, allocations: 118.9 kB / 348.4 MB, free: 2.379 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002569/0.3994, allocations: 472.8 kB / 348.8 MB, free: 1.969 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3994, allocations: 4 kB / 348.8 MB, free: 1.965 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002246/0.4017, allocations: 332.4 kB / 349.2 MB, free: 1.676 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003796/0.4021, allocations: 30.91 kB / 349.2 MB, free: 1.652 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001571/0.4037, allocations: 452.6 kB / 349.6 MB, free: 1.215 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004502/0.4042, allocations: 0.7554 MB / 350.4 MB, free: 444 kB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001173/0.4043, allocations: 23.44 kB / 350.4 MB, free: 420 kB / 282.7 MB Notification: Performance of SimCode: time 1.565e-06/0.4043, allocations: 0 / 350.4 MB, free: 420 kB / 282.7 MB Notification: Performance of Templates: time 0.009386/0.4137, allocations: 5.087 MB / 355.5 MB, free: 11.36 MB / 298.7 MB "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! " Variables in the reference:time,inductor.i,thyristor_v4_1.vControl Variables in the result:_D_whenCondition1,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.T_start,pulseCurrent.signalSource.T_width,pulseCurrent.signalSource.amplitude,pulseCurrent.signalSource.count,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.useHeatPort,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.Roff,thyristor_v4_1.Ron,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.Voff,thyristor_v4_1.Von,thyristor_v4_1.Vt,der(thyristor_v4_1.vControl),thyristor_v4_1.iGK,thyristor_v4_1.useHeatPort,thyristor_v4_1.vAK,thyristor_v4_1.vConmain,thyristor_v4_1.vContot,thyristor_v4_1.vControl,thyristor_v4_1.vGK,time