Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009263/0.0009263, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00125/0.00125, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8921/0.8921, allocations: 173.4 MB / 200.5 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.89e-05/3.106e-05, allocations: 8.609 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.003362/0.003393, allocations: 2.547 MB / 321 MB, free: 3.781 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.004394, allocations: 0.6816 MB / 321.7 MB, free: 3.094 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001244/0.004518, allocations: 4 kB / 321.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001274/0.004646, allocations: 43.52 kB / 321.7 MB, free: 3.047 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000137/0.004783, allocations: 91.2 kB / 321.8 MB, free: 2.957 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002875/0.00507, allocations: 107.7 kB / 321.9 MB, free: 2.852 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003232/0.005394, allocations: 394.3 kB / 322.3 MB, free: 2.465 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000157/0.005551, allocations: 52.84 kB / 322.3 MB, free: 2.41 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002469/0.005797, allocations: 215.6 kB / 322.6 MB, free: 2.199 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001528/0.00595, allocations: 135.6 kB / 322.7 MB, free: 2.066 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.93e-05/0.005999, allocations: 32 kB / 322.7 MB, free: 2.035 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.481e-05/0.006034, allocations: 32 kB / 322.8 MB, free: 2.004 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.21e-05/0.006086, allocations: 71.73 kB / 322.8 MB, free: 1.934 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.656e-05/0.006183, allocations: 115.7 kB / 322.9 MB, free: 1.82 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.006495, allocations: 382.8 kB / 323.3 MB, free: 1.445 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.006501, allocations: 3.984 kB / 323.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.006502, allocations: 0 / 323.3 MB, free: 1.441 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.006508, allocations: 0 / 323.3 MB, free: 1.441 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: 48 * Number of variables: 48 Notification: Performance of Generate backend data structure: time 0.001018/0.007526, allocations: 0.608 MB / 323.9 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.007568, allocations: 8.922 kB / 323.9 MB, free: 0.793 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.677e-05/0.007615, allocations: 54.73 kB / 324 MB, free: 0.7305 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.596e-05/0.007671, allocations: 36.75 kB / 324 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.007993, allocations: 214.2 kB / 324.2 MB, free: 468 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.008014, allocations: 12.88 kB / 324.2 MB, free: 456 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.054e-05/0.008054, allocations: 20.38 kB / 324.3 MB, free: 436 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004973/0.008552, allocations: 328.9 kB / 324.6 MB, free: 88 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.008561, allocations: 4.188 kB / 324.6 MB, free: 84 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.254e-05/0.008583, allocations: 16.11 kB / 324.6 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.008589, allocations: 4 kB / 324.6 MB, free: 64 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005383/0.009128, allocations: 301.7 kB / 324.9 MB, free: 15.77 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001151/0.01028, allocations: 0.8593 MB / 325.8 MB, free: 14.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001383/0.01166, allocations: 482.2 kB / 326.2 MB, free: 14.37 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003767/0.01204, allocations: 200.7 kB / 326.4 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.01206, allocations: 0 / 326.4 MB, free: 14.17 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003945/0.01246, allocations: 258.5 kB / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of pre-optimization done (n=21): time 1.363e-06/0.01246, allocations: 0 / 326.7 MB, free: 13.89 MB / 298.7 MB Notification: Performance of matching and sorting (n=21): time 0.0008824/0.01334, allocations: 469.5 kB / 327.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.935e-05/0.0134, allocations: 106.8 kB / 327.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001677/0.01357, allocations: 237.7 kB / 327.5 MB, free: 13.06 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.58e-05/0.01359, allocations: 33.7 kB / 327.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.524e-05/0.01368, allocations: 160.4 kB / 327.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.741e-05/0.01374, allocations: 75.31 kB / 327.7 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.569e-05/0.01381, allocations: 45.94 kB / 327.8 MB, free: 12.73 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.898e-05/0.0139, allocations: 334.8 kB / 328.1 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000273/0.01417, allocations: 170.1 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000285/0.01446, allocations: 243.5 kB / 328.5 MB, free: 11.96 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004895/0.01495, allocations: 308.7 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.846e-06/0.01495, allocations: 4 kB / 328.8 MB, free: 11.64 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0006238/0.01557, allocations: 432.7 kB / 329.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.762e-05/0.01561, allocations: 37.7 kB / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.01562, allocations: 0 / 329.3 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.01563, allocations: 3.938 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007764/0.01641, allocations: 239.6 kB / 329.5 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/0.01907, allocations: 3.185 MB / 332.7 MB, free: 7.508 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001959/0.01927, allocations: 48.06 kB / 332.7 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.979e-05/0.01929, allocations: 12 kB / 332.8 MB, free: 7.449 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: 5 (pulseCurrent.signalSource.count,$PRE.pulseCurrent.signalSource.count,pulseCurrent.signalSource.T_start,$PRE.pulseCurrent.signalSource.T_start,$whenCondition1) * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001207/0.01941, allocations: 137.8 kB / 332.9 MB, free: 7.305 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.985e-05/0.01944, allocations: 31.78 kB / 332.9 MB, free: 7.273 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.16e-05/0.01948, allocations: 26.12 kB / 332.9 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.01948, allocations: 4 kB / 333 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.01948, allocations: 0 / 333 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.01949, allocations: 7.984 kB / 333 MB, free: 7.238 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001021/0.02051, allocations: 0.8212 MB / 333.8 MB, free: 6.363 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.02051, allocations: 4 kB / 333.8 MB, free: 6.359 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007508/0.02126, allocations: 235.7 kB / 334 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.341e-06/0.02127, allocations: 4 kB / 334 MB, free: 6.125 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.752e-05/0.02129, allocations: 4 kB / 334 MB, free: 6.121 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.02379, allocations: 3.193 MB / 337.2 MB, free: 2.703 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.02379, allocations: 4 kB / 337.2 MB, free: 2.699 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008673/0.02466, allocations: 0.5963 MB / 337.8 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.399e-05/0.02469, allocations: 27.83 kB / 337.8 MB, free: 2.055 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.651e-05/0.02472, allocations: 4 kB / 337.8 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001761/0.02489, allocations: 47.95 kB / 337.9 MB, free: 2.004 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.258e-05/0.02497, allocations: 31.89 kB / 337.9 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.546e-05/0.02499, allocations: 8 kB / 337.9 MB, free: 1.965 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001228/0.02511, allocations: 173.2 kB / 338.1 MB, free: 1.797 MB / 298.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02511, allocations: 0 / 338.1 MB, free: 1.797 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003542/0.02547, allocations: 79.83 kB / 338.2 MB, free: 1.719 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001109/0.02658, allocations: 1.139 MB / 339.3 MB, free: 0.543 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001324/0.0279, allocations: 0.5553 MB / 339.9 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.0279, allocations: 0 / 339.9 MB, free: 15.97 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009276/0.02883, allocations: 355.7 kB / 340.2 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003361/0.02917, allocations: 43.38 kB / 340.3 MB, free: 15.58 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004289/0.03345, allocations: 3.185 MB / 343.4 MB, free: 12.26 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001223/0.03358, allocations: 142.2 kB / 343.6 MB, free: 12.1 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001386/0.03372, allocations: 25.94 kB / 343.6 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001566/0.03387, allocations: 80.47 kB / 343.7 MB, free: 12 MB / 314.7 MB Notification: Performance of SimCode: time 1.263e-06/0.03387, allocations: 0 / 343.7 MB, free: 12 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02844/0.06232, allocations: 7.384 MB / 351.1 MB, free: 4.793 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/7.896, allocations: 4 kB / 351.1 MB, free: 4.789 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv --start-time 0 --stop-time 0.0002 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 3.97456e-08 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_ThyristorBehaviourTest.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,inductor.i,thyristor_v4_1.vControl Variables in the result:time,inductor.i,thyristor_v4_1.vControl [Calling sys.exit(0), Time elapsed: 9.782552381977439]