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.CharacteristicThyristors.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.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.882/1.882, allocations: 171.2 MB / 187.3 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005224/0.0005225, allocations: 12 kB / 233.8 MB, free: 3.082 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1392/0.1398, allocations: 38.77 MB / 272.5 MB, free: 12.23 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4278/0.5676, allocations: 69.75 MB / 342.3 MB, free: 4.262 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003905/0.568, allocations: 81.92 kB / 342.4 MB, free: 4.219 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05044/0.6185, allocations: 6.99 MB / 349.4 MB, free: 14.21 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.817e-06/0.6186, allocations: 8 kB / 349.4 MB, free: 14.2 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.936e-05/0.6187, allocations: 8 kB / 349.4 MB, free: 14.19 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.002884/0.6216, allocations: 0.7657 MB / 350.1 MB, free: 13.39 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.131e-05/0.6217, allocations: 12.03 kB / 350.2 MB, free: 13.38 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002918/0.622, allocations: 55.34 kB / 350.2 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008902/0.6229, allocations: 312.1 kB / 350.5 MB, free: 13.01 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.364e-05/0.623, allocations: 30.94 kB / 350.5 MB, free: 13 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.6231, allocations: 38.45 kB / 350.6 MB, free: 12.97 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001716/0.6249, allocations: 427.2 kB / 351 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.625, allocations: 3.938 kB / 351 MB, free: 12.65 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.432e-05/0.6251, allocations: 21.62 kB / 351 MB, free: 12.64 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.334e-05/0.6251, allocations: 8 kB / 351 MB, free: 12.63 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001554/0.6267, allocations: 309.1 kB / 351.3 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006321/0.6331, allocations: 1.649 MB / 353 MB, free: 10.95 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001046/0.6342, allocations: 327.7 kB / 353.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.025e-05/0.6343, allocations: 4.281 kB / 353.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006975/0.635, allocations: 286.1 kB / 353.6 MB, free: 10.49 MB / 282.7 MB Notification: Performance of pre-optimization done (n=38): time 3.487e-06/0.635, allocations: 4 kB / 353.6 MB, free: 10.49 MB / 282.7 MB Notification: Performance of matching and sorting (n=38): time 0.003686/0.6387, allocations: 1.125 MB / 354.7 MB, free: 9.402 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001508/0.6389, allocations: 221.2 kB / 354.9 MB, free: 9.141 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005783/0.6395, allocations: 333.7 kB / 355.3 MB, free: 8.871 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.661e-05/0.6396, allocations: 36.83 kB / 355.3 MB, free: 8.836 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00023/0.6398, allocations: 256.9 kB / 355.5 MB, free: 8.617 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001591/0.64, allocations: 117.2 kB / 355.7 MB, free: 8.52 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.244e-05/0.6401, allocations: 10.88 kB / 355.7 MB, free: 8.516 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001516/0.6402, allocations: 326.2 kB / 356 MB, free: 8.195 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004145/0.6406, allocations: 117.6 kB / 356.1 MB, free: 8.121 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005314/0.6412, allocations: 193.1 kB / 356.3 MB, free: 7.957 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004534/0.6417, allocations: 178.5 kB / 356.5 MB, free: 7.824 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.6417, allocations: 0 / 356.5 MB, free: 7.824 MB / 282.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001366/0.6431, allocations: 0.5006 MB / 357 MB, free: 7.418 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.33e-05/0.6432, allocations: 65.12 kB / 357 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.6432, allocations: 0 / 357 MB, free: 7.348 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008427/0.644, allocations: 152.1 kB / 357.2 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003337/0.6444, allocations: 46.66 kB / 357.2 MB, free: 7.18 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007576/0.652, allocations: 5.997 MB / 363.2 MB, free: 1.066 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007207/0.6527, allocations: 59.02 kB / 363.3 MB, free: 1.016 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.841e-05/0.6528, allocations: 19.55 kB / 363.3 MB, free: 1 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: 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.0004393/0.6533, allocations: 195.7 kB / 363.5 MB, free: 0.8203 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001211/0.6534, allocations: 47.52 kB / 363.5 MB, free: 0.7734 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001214/0.6536, allocations: 47.19 kB / 363.6 MB, free: 0.7539 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.488e-06/0.6536, allocations: 4 kB / 363.6 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.6536, allocations: 0 / 363.6 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-06/0.6536, allocations: 0 / 363.6 MB, free: 0.75 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007983/0.6544, allocations: 446.3 kB / 364 MB, free: 364 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.499e-06/0.6544, allocations: 0 / 364 MB, free: 364 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002299/0.6547, allocations: 23.97 kB / 364 MB, free: 340 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000765/0.6555, allocations: 158.5 kB / 364.2 MB, free: 208 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.324e-05/0.6555, allocations: 13.98 kB / 364.2 MB, free: 200 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007376/0.6629, allocations: 5.838 MB / 370.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.663, allocations: 0 / 370.1 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001748/0.6647, allocations: 0.5497 MB / 370.6 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/0.6651, allocations: 145.6 kB / 370.7 MB, free: 9.637 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001217/0.6652, allocations: 10.75 kB / 370.8 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004791/0.6657, allocations: 34.47 kB / 370.8 MB, free: 9.602 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/0.666, allocations: 61.66 kB / 370.9 MB, free: 9.551 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.666, allocations: 7.812 kB / 370.9 MB, free: 9.547 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004021/0.6665, allocations: 228.9 kB / 371.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.6665, allocations: 0 / 371.1 MB, free: 9.367 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001151/0.6676, allocations: 174.8 kB / 371.3 MB, free: 9.211 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) * 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.0003381/0.668, allocations: 134.4 kB / 371.4 MB, free: 9.074 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.6699, allocations: 0.9131 MB / 372.3 MB, free: 8.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 8.465e-06/0.67, allocations: 4.125 kB / 372.3 MB, free: 8.203 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001195/0.6712, allocations: 0.7096 MB / 373 MB, free: 7.516 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006827/0.6719, allocations: 80.34 kB / 373.1 MB, free: 7.457 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002078/0.674, allocations: 0.907 MB / 374 MB, free: 6.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/0.6746, allocations: 0.8395 MB / 374.8 MB, free: 5.727 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001304/0.6748, allocations: 19.44 kB / 374.9 MB, free: 5.707 MB / 298.7 MB Notification: Performance of SimCode: time 3.096e-06/0.6748, allocations: 4 kB / 374.9 MB, free: 5.703 MB / 298.7 MB Notification: Performance of Templates: time 0.02273/0.6975, allocations: 10.98 MB / 385.8 MB, free: 10.77 MB / 314.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