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.CharacteristicThyristors.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/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.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") Notification: Performance of loadModel(Modelica): time 1.556/1.556, allocations: 171.2 MB / 184.2 MB, free: 11.96 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.976e-05/2.996e-05, allocations: 7.938 kB / 228.8 MB, free: 15.33 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2067/0.2067, allocations: 38.78 MB / 267.6 MB, free: 9.426 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1038/0.3105, allocations: 69.68 MB / 337.3 MB, free: 3.645 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002319/0.3108, allocations: 67.97 kB / 337.3 MB, free: 3.578 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0282/0.339, allocations: 7.003 MB / 344.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.614e-06/0.3391, allocations: 224 / 344.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.327e-05/0.3391, allocations: 8 kB / 344.3 MB, free: 12.54 MB / 298.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.001363/0.3405, allocations: 0.7216 MB / 345.1 MB, free: 11.76 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.406e-05/0.3406, allocations: 8.031 kB / 345.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001471/0.3407, allocations: 59.34 kB / 345.1 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.3413, allocations: 311.7 kB / 345.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.391e-05/0.3414, allocations: 28.78 kB / 345.5 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.026e-05/0.3415, allocations: 40 kB / 345.5 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009267/0.3424, allocations: 405.4 kB / 345.9 MB, free: 10.86 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.831e-05/0.3424, allocations: 8 kB / 345.9 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.823e-05/0.3425, allocations: 16 kB / 345.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.369e-05/0.3425, allocations: 8 kB / 345.9 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007537/0.3433, allocations: 287 kB / 346.2 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00326/0.3466, allocations: 1.643 MB / 347.9 MB, free: 8.797 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007218/0.3473, allocations: 311.1 kB / 348.2 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/0.3478, allocations: 181.1 kB / 348.3 MB, free: 8.305 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.247e-05/0.3478, allocations: 4.281 kB / 348.3 MB, free: 8.301 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005518/0.3484, allocations: 285.2 kB / 348.6 MB, free: 7.988 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 3.538e-06/0.3484, allocations: 0 / 348.6 MB, free: 7.988 MB / 298.7 MB Notification: Performance of matching and sorting (n=38): time 0.001333/0.3497, allocations: 482 kB / 349.1 MB, free: 7.492 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.3499, allocations: 217.6 kB / 349.3 MB, free: 7.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004679/0.3504, allocations: 291.5 kB / 349.6 MB, free: 6.934 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.88e-05/0.3505, allocations: 37.7 kB / 349.6 MB, free: 6.891 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002133/0.3507, allocations: 262.9 kB / 349.9 MB, free: 6.633 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.3508, allocations: 110.5 kB / 350 MB, free: 6.523 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.3509, allocations: 4 kB / 350 MB, free: 6.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.3511, allocations: 326.8 kB / 350.3 MB, free: 6.191 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002971/0.3514, allocations: 108.9 kB / 350.4 MB, free: 6.086 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003772/0.3518, allocations: 186.7 kB / 350.6 MB, free: 5.879 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003597/0.3521, allocations: 172.9 kB / 350.8 MB, free: 5.699 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.56e-06/0.3521, allocations: 0 / 350.8 MB, free: 5.699 MB / 298.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001112/0.3533, allocations: 490 kB / 351.3 MB, free: 5.191 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.483e-05/0.3534, allocations: 64.5 kB / 351.3 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.783e-06/0.3534, allocations: 0 / 351.3 MB, free: 5.117 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007212/0.3541, allocations: 163.4 kB / 351.5 MB, free: 4.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002431/0.3544, allocations: 39.91 kB / 351.5 MB, free: 4.906 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2211/0.5754, allocations: 5.931 MB / 357.4 MB, free: 77.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005574/0.576, allocations: 57.56 kB / 357.5 MB, free: 77.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.553e-05/0.5761, allocations: 15.25 kB / 357.5 MB, free: 77.16 MB / 298.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 () * 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.0001868/0.5763, allocations: 164.6 kB / 357.7 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.59e-05/0.5764, allocations: 40 kB / 357.7 MB, free: 77.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.5766, allocations: 48.55 kB / 357.8 MB, free: 77.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.773e-06/0.5766, allocations: 6.188 kB / 357.8 MB, free: 77.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.589e-06/0.5766, allocations: 0.5312 kB / 357.8 MB, free: 77.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.962e-06/0.5766, allocations: 2.469 kB / 357.8 MB, free: 77.01 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006673/0.5773, allocations: 454.8 kB / 358.2 MB, free: 76.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.317e-06/0.5773, allocations: 0.6094 kB / 358.2 MB, free: 76.82 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.5775, allocations: 25.34 kB / 358.2 MB, free: 76.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006231/0.5781, allocations: 156 kB / 358.4 MB, free: 76.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.884e-05/0.5782, allocations: 6.969 kB / 358.4 MB, free: 76.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004755/0.583, allocations: 5.779 MB / 364.2 MB, free: 71.65 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.583, allocations: 3.844 kB / 364.2 MB, free: 71.65 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001163/0.5842, allocations: 0.5269 MB / 364.7 MB, free: 71.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001989/0.5844, allocations: 150.8 kB / 364.9 MB, free: 71.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.071e-05/0.5845, allocations: 8.281 kB / 364.9 MB, free: 71.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000339/0.5848, allocations: 37.67 kB / 364.9 MB, free: 71.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.585, allocations: 59.72 kB / 365 MB, free: 71.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.629e-05/0.5851, allocations: 10.75 kB / 365 MB, free: 71.38 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002613/0.5854, allocations: 227.8 kB / 365.2 MB, free: 71.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.6e-07/0.5854, allocations: 1.688 kB / 365.2 MB, free: 71.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0009397/0.5863, allocations: 168.2 kB / 365.4 MB, free: 71.29 MB / 298.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) * 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.0002164/0.5866, allocations: 135.9 kB / 365.5 MB, free: 71.2 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001091/0.5877, allocations: 0.8897 MB / 366.4 MB, free: 70.62 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.719e-06/0.5877, allocations: 0 / 366.4 MB, free: 70.62 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007298/0.5884, allocations: 0.7071 MB / 367.1 MB, free: 70.11 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004846/0.5889, allocations: 71.73 kB / 367.2 MB, free: 70.11 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009887/0.5899, allocations: 0.5222 MB / 367.7 MB, free: 69.89 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002736/0.5902, allocations: 0.8345 MB / 368.5 MB, free: 69.2 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.126e-05/0.5903, allocations: 28.22 kB / 368.5 MB, free: 69.18 MB / 298.7 MB Notification: Performance of SimCode: time 1.585e-06/0.5904, allocations: 0 / 368.5 MB, free: 69.18 MB / 298.7 MB Notification: Performance of Templates: time 0.01343/0.6038, allocations: 10.96 MB / 379.5 MB, free: 62.78 MB / 298.7 MB "Error: Could not read variable IdealGTOThyristor1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealGTOThyristor2.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealGTOThyristor2.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor1.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor1.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable IdealThyristor2.s in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable IdealThyristor2.s from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable SineVoltage1.signalSource.pi in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable SineVoltage1.signalSource.pi from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable _derdummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _derdummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable _dummy in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable _dummy from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.index in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.index from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.n in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.n from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat failed! Error: Could not read variable booleanStep1.nextTime in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat. Warning: Get data of variable booleanStep1.nextTime from file Modelica_3.2.1_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