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.CharacteristicThyristors.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.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 1.814/1.814, allocations: 194.9 MB / 211.7 MB, free: 2.988 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003521/0.0003522, allocations: 12 kB / 263.9 MB, free: 13.57 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07749/0.07787, allocations: 44.51 MB / 308.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3165/0.3944, allocations: 74.83 MB / 383.3 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002064/0.3947, allocations: 72.05 kB / 383.4 MB, free: 18.82 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02427/0.419, allocations: 7.012 MB / 390.4 MB, free: 17.99 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.621e-06/0.419, allocations: 0 / 390.4 MB, free: 17.99 MB / 314.7 MB Notification: Performance of Transformations before backend: time 2.659e-05/0.419, allocations: 7.812 kB / 390.4 MB, free: 17.99 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001146/0.4202, allocations: 0.7756 MB / 391.1 MB, free: 17.42 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.524e-05/0.4203, allocations: 7.656 kB / 391.2 MB, free: 17.42 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.4204, allocations: 58.44 kB / 391.2 MB, free: 17.39 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004051/0.4208, allocations: 317.3 kB / 391.5 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.4208, allocations: 27.5 kB / 391.5 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.981e-05/0.4209, allocations: 37.72 kB / 391.6 MB, free: 17.15 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008343/0.4218, allocations: 419.8 kB / 392 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.4218, allocations: 0 / 392 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.298e-05/0.4219, allocations: 18.31 kB / 392 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.4219, allocations: 11.59 kB / 392 MB, free: 17.06 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007831/0.4227, allocations: 304.7 kB / 392.3 MB, free: 17.05 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.4253, allocations: 1.642 MB / 394 MB, free: 16.18 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006635/0.4259, allocations: 340.9 kB / 394.3 MB, free: 16.14 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.158e-05/0.426, allocations: 8.094 kB / 394.3 MB, free: 16.13 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005003/0.4265, allocations: 282.2 kB / 394.6 MB, free: 16.01 MB / 314.7 MB Notification: Performance of pre-optimization done (n=38): time 3.016e-06/0.4265, allocations: 0 / 394.6 MB, free: 16.01 MB / 314.7 MB Notification: Performance of matching and sorting (n=38): time 0.002451/0.429, allocations: 1.131 MB / 395.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.4291, allocations: 219.8 kB / 395.9 MB, free: 15.14 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.4294, allocations: 286.4 kB / 396.2 MB, free: 15.04 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.124e-05/0.4295, allocations: 36.52 kB / 396.2 MB, free: 15 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001193/0.4296, allocations: 262 kB / 396.5 MB, free: 14.81 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.831e-05/0.4297, allocations: 118.5 kB / 396.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.649e-05/0.4298, allocations: 6.688 kB / 396.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.035e-05/0.4298, allocations: 334.8 kB / 396.9 MB, free: 14.42 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003266/0.4302, allocations: 119.3 kB / 397.1 MB, free: 14.42 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003668/0.4306, allocations: 185.3 kB / 397.2 MB, free: 14.36 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003443/0.4309, allocations: 182.5 kB / 397.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.526e-06/0.4309, allocations: 3.844 kB / 397.4 MB, free: 14.29 MB / 314.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001061/0.432, allocations: 0.4909 MB / 397.9 MB, free: 14.14 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.735e-05/0.4321, allocations: 66.23 kB / 398 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.775e-06/0.4321, allocations: 0 / 398 MB, free: 14.08 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006639/0.4328, allocations: 156.6 kB / 398.1 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002407/0.433, allocations: 39.92 kB / 398.2 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004911/0.4379, allocations: 5.996 MB / 404.2 MB, free: 8.629 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004927/0.4385, allocations: 51.2 kB / 404.2 MB, free: 8.613 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/0.4385, allocations: 14.23 kB / 404.2 MB, free: 8.613 MB / 314.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: 17 ($whenCondition2,$whenCondition1,$PRE.IdealThyristor1.off,IdealThyristor1.off,IdealGTOThyristor1.off,$PRE.booleanStep1.y,booleanStep1.y,$PRE.booleanStep1.nextTime,booleanStep1.nextTime,$PRE.booleanStep1.index,booleanStep1.index,$PRE.IdealThyristor2.off,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,$PRE.booleanPulse.pulsStart,booleanPulse.pulsStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005684/0.4391, allocations: 199.7 kB / 404.4 MB, free: 24.46 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.478e-05/0.4392, allocations: 42.91 kB / 404.5 MB, free: 24.44 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.663e-05/0.4393, allocations: 47.86 kB / 404.5 MB, free: 24.43 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.848e-06/0.4393, allocations: 3.781 kB / 404.5 MB, free: 24.43 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.316e-06/0.4393, allocations: 0 / 404.5 MB, free: 24.43 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.163e-05/0.4394, allocations: 3.953 kB / 404.5 MB, free: 24.43 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005498/0.4399, allocations: 451.5 kB / 405 MB, free: 24.22 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.934e-06/0.44, allocations: 0 / 405 MB, free: 24.22 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001658/0.4401, allocations: 24.88 kB / 405 MB, free: 24.22 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006085/0.4408, allocations: 158.5 kB / 405.1 MB, free: 24.18 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.556e-05/0.4408, allocations: 7.156 kB / 405.2 MB, free: 24.18 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00598/0.4468, allocations: 5.841 MB / 411 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.619e-06/0.4468, allocations: 0 / 411 MB, free: 18.93 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.4481, allocations: 0.5461 MB / 411.5 MB, free: 18.75 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000221/0.4483, allocations: 143 kB / 411.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.97e-05/0.4484, allocations: 10.53 kB / 411.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003304/0.4488, allocations: 39.86 kB / 411.7 MB, free: 18.64 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.449, allocations: 65.42 kB / 411.8 MB, free: 18.62 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.388e-05/0.449, allocations: 11.28 kB / 411.8 MB, free: 18.62 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002826/0.4493, allocations: 227.4 kB / 412 MB, free: 18.54 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.76e-07/0.4493, allocations: 0 / 412 MB, free: 18.54 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0009606/0.4503, allocations: 162.3 kB / 412.2 MB, free: 18.53 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,IdealThyristor1.off,IdealGTOThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,IdealThyristor2.off,IdealGTOThyristor2.off,IdealGTOThyristor2.fire,booleanPulse.pulsStart) * Number of discrete states: 6 (IdealThyristor1.off,booleanStep1.y,booleanStep1.nextTime,booleanStep1.index,$whenCondition1,IdealThyristor2.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 4,1 4,1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002405/0.4505, allocations: 148.8 kB / 412.3 MB, free: 18.44 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.4519, allocations: 0.9069 MB / 413.2 MB, free: 17.84 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.749e-06/0.4519, allocations: 0 / 413.2 MB, free: 17.84 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008705/0.4528, allocations: 0.7254 MB / 414 MB, free: 17.32 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004467/0.4533, allocations: 64.59 kB / 414 MB, free: 17.31 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001843/0.4551, allocations: 0.9775 MB / 415 MB, free: 16.8 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000509/0.4557, allocations: 0.8318 MB / 415.8 MB, free: 16.09 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.405e-05/0.4558, allocations: 23.06 kB / 415.9 MB, free: 16.09 MB / 330.7 MB Notification: Performance of SimCode: time 1.337e-06/0.4558, allocations: 0 / 415.9 MB, free: 16.09 MB / 330.7 MB Notification: Performance of Templates: time 0.01355/0.4693, allocations: 11.01 MB / 426.9 MB, free: 11.91 MB / 330.7 MB "Error: Could not read variable IdealGTOThyristor1.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor1.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealGTOThyristor2.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor2.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor1.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor1.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor2.s in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor2.s from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable _derdummy in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.index in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.index from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.n in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.n from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.nextTime in file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.nextTime from file Modelica_3.2.2_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! " Variables in the reference:time,IdealThyristor1.off,IdealThyristor2.off,booleanStep1.y Variables in the result:Ground1.p.i,Ground1.p.v,IdealGTOThyristor1.Goff,IdealGTOThyristor1.LossPower,IdealGTOThyristor1.Ron,IdealGTOThyristor1.T,IdealGTOThyristor1.T_heatPort,IdealGTOThyristor1.Vknee,IdealGTOThyristor1.fire,IdealGTOThyristor1.i,IdealGTOThyristor1.n.i,IdealGTOThyristor1.n.v,IdealGTOThyristor1.off,IdealGTOThyristor1.p.i,IdealGTOThyristor1.p.v,IdealGTOThyristor1.v,IdealGTOThyristor2.Goff,IdealGTOThyristor2.LossPower,IdealGTOThyristor2.Ron,IdealGTOThyristor2.T,IdealGTOThyristor2.T_heatPort,IdealGTOThyristor2.Vknee,IdealGTOThyristor2.fire,IdealGTOThyristor2.i,IdealGTOThyristor2.n.i,IdealGTOThyristor2.n.v,IdealGTOThyristor2.off,IdealGTOThyristor2.p.i,IdealGTOThyristor2.p.v,IdealGTOThyristor2.v,IdealThyristor1.Goff,IdealThyristor1.LossPower,IdealThyristor1.Ron,IdealThyristor1.T,IdealThyristor1.T_heatPort,IdealThyristor1.Vknee,IdealThyristor1.fire,IdealThyristor1.i,IdealThyristor1.n.i,IdealThyristor1.n.v,IdealThyristor1.off,IdealThyristor1.p.i,IdealThyristor1.p.v,IdealThyristor1.v,IdealThyristor2.Goff,IdealThyristor2.LossPower,IdealThyristor2.Ron,IdealThyristor2.T,IdealThyristor2.T_heatPort,IdealThyristor2.Vknee,IdealThyristor2.fire,IdealThyristor2.i,IdealThyristor2.n.i,IdealThyristor2.n.v,IdealThyristor2.off,IdealThyristor2.p.i,IdealThyristor2.p.v,IdealThyristor2.v,R1.LossPower,R1.R,R1.R_actual,R1.T,R1.T_heatPort,R1.T_ref,R1.alpha,R1.i,R1.n.i,R1.n.v,R1.p.i,R1.p.v,R1.v,R2.LossPower,R2.R,R2.R_actual,R2.T,R2.T_heatPort,R2.T_ref,R2.alpha,R2.i,R2.n.i,R2.n.v,R2.p.i,R2.p.v,R2.v,R3.LossPower,R3.R,R3.R_actual,R3.T,R3.T_heatPort,R3.T_ref,R3.alpha,R3.i,R3.n.i,R3.n.v,R3.p.i,R3.p.v,R3.v,R4.LossPower,R4.R,R4.R_actual,R4.T,R4.T_heatPort,R4.T_ref,R4.alpha,R4.i,R4.n.i,R4.n.v,R4.p.i,R4.p.v,R4.v,SineVoltage1.V,SineVoltage1.freqHz,SineVoltage1.i,SineVoltage1.n.i,SineVoltage1.n.v,SineVoltage1.offset,SineVoltage1.p.i,SineVoltage1.p.v,SineVoltage1.phase,SineVoltage1.signalSource.amplitude,SineVoltage1.signalSource.freqHz,SineVoltage1.signalSource.offset,SineVoltage1.signalSource.phase,SineVoltage1.signalSource.startTime,SineVoltage1.signalSource.y,SineVoltage1.startTime,SineVoltage1.v,booleanPulse.period,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,booleanStep1.startValue,booleanStep1.table[1],booleanStep1.table[2],booleanStep1.table[3],booleanStep1.table[4],booleanStep1.table[5],booleanStep1.table[6],booleanStep1.y,time