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/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.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.898/1.898, allocations: 171.3 MB / 179.2 MB, free: 7.5 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 2.74e-05/2.759e-05, allocations: 4 kB / 222.5 MB, free: 8.691 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07066/0.07071, allocations: 38.77 MB / 261.3 MB, free: 1.844 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.281/0.3518, allocations: 69.02 MB / 330.3 MB, free: 3.277 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002241/0.352, allocations: 68.34 kB / 330.4 MB, free: 3.242 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0276/0.3797, allocations: 6.923 MB / 337.3 MB, free: 13.38 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3797, allocations: 0 / 337.3 MB, free: 13.38 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.06e-05/0.3798, allocations: 8 kB / 337.3 MB, free: 13.37 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: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.001395/0.3812, allocations: 0.7198 MB / 338 MB, free: 12.62 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.676e-05/0.3812, allocations: 12.03 kB / 338 MB, free: 12.61 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.3814, allocations: 55.34 kB / 338.1 MB, free: 12.55 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005772/0.382, allocations: 319.8 kB / 338.4 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.081e-05/0.382, allocations: 12 kB / 338.4 MB, free: 12.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.063e-05/0.3821, allocations: 24 kB / 338.4 MB, free: 12.2 MB / 282.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006958/0.3828, allocations: 261.1 kB / 338.7 MB, free: 12.04 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007879/0.3836, allocations: 353.1 kB / 339 MB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.641e-05/0.3837, allocations: 0 / 339 MB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.878e-05/0.3837, allocations: 4 kB / 339 MB, free: 11.76 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.3837, allocations: 8 kB / 339 MB, free: 11.75 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003082/0.3868, allocations: 1.57 MB / 340.6 MB, free: 10.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006425/0.3875, allocations: 301.8 kB / 340.9 MB, free: 10.17 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003485/0.3879, allocations: 168.3 kB / 341.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.828e-05/0.3879, allocations: 288 / 341.1 MB, free: 10.06 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005246/0.3885, allocations: 269.2 kB / 341.3 MB, free: 9.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=38): time 3.12e-06/0.3885, allocations: 0 / 341.3 MB, free: 9.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=38): time 0.001208/0.3897, allocations: 434.4 kB / 341.8 MB, free: 9.473 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000162/0.3899, allocations: 213.6 kB / 342 MB, free: 9.215 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003917/0.3903, allocations: 253.4 kB / 342.2 MB, free: 9.012 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.728e-05/0.3904, allocations: 29.7 kB / 342.2 MB, free: 8.977 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002176/0.3906, allocations: 274 kB / 342.5 MB, free: 8.742 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001285/0.3908, allocations: 105.3 kB / 342.6 MB, free: 8.652 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.312e-05/0.3908, allocations: 0 / 342.6 MB, free: 8.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001752/0.391, allocations: 329.5 kB / 342.9 MB, free: 8.328 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002568/0.3912, allocations: 104.3 kB / 343 MB, free: 8.27 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003307/0.3916, allocations: 169.5 kB / 343.2 MB, free: 8.129 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000322/0.3919, allocations: 107.4 kB / 343.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.434e-06/0.392, allocations: 0 / 343.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009706/0.3929, allocations: 400.6 kB / 343.7 MB, free: 7.758 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.927e-05/0.393, allocations: 55.41 kB / 343.7 MB, free: 7.691 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.919e-06/0.393, allocations: 7.953 kB / 343.8 MB, free: 7.684 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006909/0.3937, allocations: 154.8 kB / 343.9 MB, free: 7.559 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/0.394, allocations: 27.98 kB / 343.9 MB, free: 7.531 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00668/0.4007, allocations: 5.739 MB / 349.7 MB, free: 1.703 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/0.4012, allocations: 47.78 kB / 349.7 MB, free: 1.656 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.667e-05/0.4013, allocations: 8 kB / 349.7 MB, free: 1.648 MB / 282.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor2.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealGTOThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: IdealThyristor1.s:VARIABLE(unit = "1" protected = true ) "Auxiliary variable: if on then current, if opened then voltage" type: Real 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.0002919/0.4016, allocations: 159.4 kB / 349.9 MB, free: 1.484 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.311e-05/0.4017, allocations: 39.38 kB / 349.9 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001209/0.4019, allocations: 42.89 kB / 350 MB, free: 1.418 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.664e-06/0.4019, allocations: 4 kB / 350 MB, free: 1.414 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.258e-06/0.4019, allocations: 8 kB / 350 MB, free: 1.406 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.618e-06/0.4019, allocations: 0 / 350 MB, free: 1.406 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006116/0.4025, allocations: 389.7 kB / 350.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.4026, allocations: 0 / 350.4 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/0.4027, allocations: 19.98 kB / 350.4 MB, free: 1.047 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000603/0.4034, allocations: 156.1 kB / 350.5 MB, free: 0.918 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.663e-05/0.4034, allocations: 3.938 kB / 350.5 MB, free: 0.918 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006367/0.4098, allocations: 5.564 MB / 356.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.217e-06/0.4099, allocations: 0 / 356.1 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.4111, allocations: 466 kB / 356.6 MB, free: 10.87 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002539/0.4114, allocations: 150.6 kB / 356.7 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.567e-05/0.4114, allocations: 3.984 kB / 356.7 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003363/0.4118, allocations: 27.98 kB / 356.7 MB, free: 10.69 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.412, allocations: 58.22 kB / 356.8 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/0.4121, allocations: 11.5 kB / 356.8 MB, free: 10.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002936/0.4124, allocations: 196.9 kB / 357 MB, free: 10.47 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.65e-07/0.4124, allocations: 0 / 357 MB, free: 10.47 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001051/0.4134, allocations: 151.7 kB / 357.1 MB, free: 10.32 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.0002929/0.4138, allocations: 131.6 kB / 357.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001383/0.4152, allocations: 0.8442 MB / 358.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.592e-06/0.4152, allocations: 0 / 358.1 MB, free: 9.395 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009222/0.4161, allocations: 0.6712 MB / 358.8 MB, free: 8.75 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.4166, allocations: 51.39 kB / 358.8 MB, free: 8.715 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00128/0.4179, allocations: 0.5052 MB / 359.3 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005867/0.4185, allocations: 0.8278 MB / 360.2 MB, free: 7.324 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001025/0.4186, allocations: 31.36 kB / 360.2 MB, free: 7.293 MB / 298.7 MB Notification: Performance of SimCode: time 1.809e-06/0.4187, allocations: 0 / 360.2 MB, free: 7.293 MB / 298.7 MB Notification: Performance of Templates: time 0.01782/0.4365, allocations: 10.73 MB / 370.9 MB, free: 12.55 MB / 314.7 MB "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! " 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.s,IdealGTOThyristor1.useHeatPort,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.s,IdealGTOThyristor2.useHeatPort,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.s,IdealThyristor1.useHeatPort,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.s,IdealThyristor2.useHeatPort,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.useHeatPort,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.useHeatPort,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.useHeatPort,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.useHeatPort,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,_D_whenCondition1,_D_whenCondition2,booleanPulse.Twidth,booleanPulse.period,booleanPulse.pulsStart,booleanPulse.startTime,booleanPulse.width,booleanPulse.y,booleanStep1.index,booleanStep1.n,booleanStep1.nextTime,booleanStep1.startValue,booleanStep1.table[1],booleanStep1.table[2],booleanStep1.table[3],booleanStep1.table[4],booleanStep1.table[5],booleanStep1.table[6],booleanStep1.y,time