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/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.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.581/1.581, allocations: 171.2 MB / 186.7 MB, free: 1.125 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003495/0.0003496, allocations: 8 kB / 233.2 MB, free: 3.07 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06892/0.06929, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003252/0.07258, allocations: 2.157 MB / 274.1 MB, free: 10.03 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001389/0.074, allocations: 0.7019 MB / 274.8 MB, free: 9.328 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001392/0.07416, allocations: 4 kB / 274.8 MB, free: 9.324 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 6.71e-05/0.07424, allocations: 27.75 kB / 274.8 MB, free: 9.297 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002504/0.0745, allocations: 91.73 kB / 274.9 MB, free: 9.207 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.07482, allocations: 79.83 kB / 275 MB, free: 9.129 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004016/0.07524, allocations: 231.5 kB / 275.2 MB, free: 8.902 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001733/0.07543, allocations: 65.3 kB / 275.3 MB, free: 8.836 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000247/0.07569, allocations: 131.6 kB / 275.4 MB, free: 8.707 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00027/0.07598, allocations: 147.4 kB / 275.5 MB, free: 8.562 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.856e-05/0.07605, allocations: 20 kB / 275.6 MB, free: 8.543 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.99e-05/0.07613, allocations: 16 kB / 275.6 MB, free: 8.527 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.385e-05/0.07621, allocations: 59.73 kB / 275.6 MB, free: 8.469 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.944e-05/0.07633, allocations: 69.58 kB / 275.7 MB, free: 8.395 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003537/0.07669, allocations: 263.5 kB / 276 MB, free: 8.137 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.291e-06/0.07671, allocations: 0 / 276 MB, free: 8.137 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.818e-06/0.07672, allocations: 0 / 276 MB, free: 8.137 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.395e-05/0.07674, allocations: 0 / 276 MB, free: 8.137 MB / 234.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.001677/0.07843, allocations: 0.6685 MB / 276.6 MB, free: 7.414 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.07848, allocations: 8.031 kB / 276.6 MB, free: 7.406 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.2e-05/0.07858, allocations: 31.62 kB / 276.7 MB, free: 7.375 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004076/0.079, allocations: 255.6 kB / 276.9 MB, free: 7.082 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.308e-05/0.07906, allocations: 20.44 kB / 276.9 MB, free: 7.062 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.896e-05/0.07915, allocations: 16 kB / 277 MB, free: 7.047 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009782/0.08014, allocations: 329.7 kB / 277.3 MB, free: 6.711 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.08018, allocations: 0 / 277.3 MB, free: 6.711 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.068e-05/0.08023, allocations: 8 kB / 277.3 MB, free: 6.703 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.893e-06/0.08025, allocations: 4 kB / 277.3 MB, free: 6.699 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001244/0.0815, allocations: 337.5 kB / 277.6 MB, free: 6.371 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002383/0.0839, allocations: 0.9998 MB / 278.6 MB, free: 5.305 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003569/0.0875, allocations: 0.6014 MB / 279.2 MB, free: 4.695 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.536e-05/0.08758, allocations: 0 / 279.2 MB, free: 4.695 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008689/0.08846, allocations: 254.9 kB / 279.5 MB, free: 4.43 MB / 234.7 MB Notification: Performance of pre-optimization done (n=21): time 2.83e-06/0.08849, allocations: 0 / 279.5 MB, free: 4.43 MB / 234.7 MB Notification: Performance of matching and sorting (n=21): time 0.002084/0.09058, allocations: 0.5281 MB / 280 MB, free: 3.898 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.497e-05/0.09068, allocations: 81.11 kB / 280.1 MB, free: 3.801 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003412/0.09103, allocations: 241 kB / 280.3 MB, free: 3.555 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 5.66e-05/0.09111, allocations: 29.7 kB / 280.3 MB, free: 3.52 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001728/0.09129, allocations: 214.6 kB / 280.6 MB, free: 3.305 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.246e-05/0.09141, allocations: 70.98 kB / 280.6 MB, free: 3.234 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.895e-05/0.09145, allocations: 8 kB / 280.6 MB, free: 3.227 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001714/0.09163, allocations: 318.8 kB / 280.9 MB, free: 2.906 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006529/0.0923, allocations: 168.4 kB / 281.1 MB, free: 2.742 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007283/0.09304, allocations: 191.4 kB / 281.3 MB, free: 2.547 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006535/0.09371, allocations: 195 kB / 281.5 MB, free: 2.352 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.09373, allocations: 0 / 281.5 MB, free: 2.352 MB / 234.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.001504/0.09525, allocations: 435.9 kB / 281.9 MB, free: 1.914 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.729e-05/0.09532, allocations: 37.7 kB / 281.9 MB, free: 1.871 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.349e-06/0.09534, allocations: 0 / 281.9 MB, free: 1.871 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.97e-05/0.09537, allocations: 15.89 kB / 282 MB, free: 1.855 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002193/0.09758, allocations: 307.6 kB / 282.3 MB, free: 1.555 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00625/0.1039, allocations: 3.263 MB / 285.5 MB, free: 14.03 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004934/0.1044, allocations: 59.8 kB / 285.6 MB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.776e-05/0.1044, allocations: 4 kB / 285.6 MB, free: 13.97 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 () * Number of clocked 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.0002397/0.1047, allocations: 153.7 kB / 285.7 MB, free: 13.81 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.913e-05/0.1048, allocations: 27.7 kB / 285.8 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.173e-05/0.1049, allocations: 26.19 kB / 285.8 MB, free: 13.76 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1049, allocations: 4 kB / 285.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.745e-06/0.1049, allocations: 0 / 285.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.981e-06/0.1049, allocations: 3.984 kB / 285.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005256/0.1054, allocations: 353.2 kB / 286.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.481e-06/0.1055, allocations: 0 / 286.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002127/0.1076, allocations: 307.6 kB / 286.4 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.014e-05/0.1076, allocations: 4 kB / 286.4 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.324e-05/0.1077, allocations: 4 kB / 286.4 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006044/0.1137, allocations: 3.259 MB / 289.7 MB, free: 9.523 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.529e-06/0.1138, allocations: 0 / 289.7 MB, free: 9.523 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002155/0.1159, allocations: 0.5937 MB / 290.3 MB, free: 8.914 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.1162, allocations: 124.8 kB / 290.4 MB, free: 8.773 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.952e-05/0.1162, allocations: 4 kB / 290.4 MB, free: 8.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004124/0.1167, allocations: 56.02 kB / 290.5 MB, free: 8.715 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.1168, allocations: 31.89 kB / 290.5 MB, free: 8.684 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.918e-05/0.1168, allocations: 4 kB / 290.5 MB, free: 8.68 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0002284/0.1171, allocations: 172.4 kB / 290.7 MB, free: 8.512 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.1171, allocations: 0 / 290.7 MB, free: 8.512 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0005972/0.1177, allocations: 75.91 kB / 290.8 MB, free: 8.438 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.0001649/0.1179, allocations: 111.2 kB / 290.9 MB, free: 8.32 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.00318/0.1211, allocations: 0.6434 MB / 291.5 MB, free: 7.664 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.112e-05/0.1211, allocations: 4.062 kB / 291.5 MB, free: 7.66 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002414/0.1235, allocations: 428.8 kB / 291.9 MB, free: 7.242 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.1239, allocations: 32.38 kB / 292 MB, free: 7.211 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001888/0.1258, allocations: 0.741 MB / 292.7 MB, free: 6.438 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004737/0.1263, allocations: 0.7602 MB / 293.5 MB, free: 5.652 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.1265, allocations: 19.44 kB / 293.5 MB, free: 5.633 MB / 250.7 MB Notification: Performance of SimCode: time 1.996e-06/0.1265, allocations: 0 / 293.5 MB, free: 5.633 MB / 250.7 MB Notification: Performance of Templates: time 0.009793/0.1363, allocations: 5.217 MB / 298.7 MB, free: 428 kB / 250.7 MB "Error: Could not read variable pulseCurrent.signalSource.T_start in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_start from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.T_width in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.T_width from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable pulseCurrent.signalSource.count in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable pulseCurrent.signalSource.count from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! 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! Error: Could not read variable thyristor_v4_1.Roff in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Roff from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Ron in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Ron from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Voff in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Voff from file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat failed! Error: Could not read variable thyristor_v4_1.Von in file Modelica_3.2.1_cpp_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat. Warning: Get data of variable thyristor_v4_1.Von 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: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.amplitude,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.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.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.Vt,der(thyristor_v4_1.vControl),thyristor_v4_1.iGK,thyristor_v4_1.vAK,thyristor_v4_1.vConmain,thyristor_v4_1.vContot,thyristor_v4_1.vControl,thyristor_v4_1.vGK,time