Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001396/0.001396, allocations: 106.5 kB / 21.22 MB, free: 0.6797 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001586/0.001586, allocations: 209.9 kB / 24.54 MB, free: 4.055 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.503/1.503, allocations: 230.6 MB / 258.3 MB, free: 8.023 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo)
Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo)
Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo)
Running command: translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5032,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest")
translateModel(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5032,variableFilter="time|inductor.i|thyristor_v4_1.vControl",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest") [Timeout 660]
"Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions.
Notification: Performance of FrontEnd - loaded program: time 0.00207/0.00207, allocations: 68.77 kB / 379 MB, free: 2.617 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2522, allocations: 53.38 MB / 432.4 MB, free: 6.926 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest): time 0.004286/0.2565, allocations: 2.786 MB / 435.2 MB, free: 4.125 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001537/0.258, allocations: 0.7672 MB / 436 MB, free: 3.352 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001412/0.2582, allocations: 4 kB / 436 MB, free: 3.348 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.2583, allocations: 43.58 kB / 436 MB, free: 3.305 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001921/0.2585, allocations: 83.2 kB / 436.1 MB, free: 3.223 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000398/0.2589, allocations: 123.8 kB / 436.2 MB, free: 3.102 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004765/0.2594, allocations: 386.5 kB / 436.6 MB, free: 2.723 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001602/0.2596, allocations: 60.89 kB / 436.7 MB, free: 2.66 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002916/0.2598, allocations: 155.5 kB / 436.8 MB, free: 2.508 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002324/0.2601, allocations: 175.3 kB / 437 MB, free: 2.336 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.565e-05/0.2601, allocations: 32 kB / 437 MB, free: 2.305 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 8.77e-05/0.2602, allocations: 39.98 kB / 437.1 MB, free: 2.266 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.38e-05/0.2603, allocations: 71.77 kB / 437.1 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001708/0.2605, allocations: 159.2 kB / 437.3 MB, free: 2.039 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004746/0.2609, allocations: 376.2 kB / 437.6 MB, free: 1.676 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2609, allocations: 4 kB / 437.6 MB, free: 1.672 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.332e-06/0.2609, allocations: 3.938 kB / 437.7 MB, free: 1.668 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.484e-06/0.261, allocations: 0 / 437.7 MB, free: 1.668 MB / 334.1 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.001708/0.2627, allocations: 0.6126 MB / 438.3 MB, free: 1.02 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.2627, allocations: 8.031 kB / 438.3 MB, free: 1.012 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002362/0.2629, allocations: 40.73 kB / 438.3 MB, free: 0.9727 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004619/0.2634, allocations: 213.1 kB / 438.5 MB, free: 0.7383 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.31e-05/0.2634, allocations: 20.81 kB / 438.5 MB, free: 0.7188 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.372e-05/0.2635, allocations: 20.33 kB / 438.6 MB, free: 0.6992 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008376/0.2643, allocations: 318 kB / 438.9 MB, free: 384 kB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.2644, allocations: 0 / 438.9 MB, free: 384 kB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.349e-05/0.2644, allocations: 11.98 kB / 438.9 MB, free: 372 kB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.979e-06/0.2644, allocations: 8 kB / 438.9 MB, free: 364 kB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000936/0.2653, allocations: 297.5 kB / 439.2 MB, free: 68 kB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001939/0.2673, allocations: 0.9289 MB / 440.1 MB, free: 15.08 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.002942/0.2702, allocations: 498.2 kB / 440.6 MB, free: 14.58 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0006568/0.2709, allocations: 204.6 kB / 440.8 MB, free: 14.38 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.357e-05/0.2709, allocations: 7.984 kB / 440.8 MB, free: 14.37 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006501/0.2716, allocations: 239.4 kB / 441 MB, free: 14.12 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=21): time 1.743e-06/0.2716, allocations: 0 / 441 MB, free: 14.12 MB / 350.1 MB
Notification: Performance of matching and sorting (n=21): time 0.001711/0.2733, allocations: 473.6 kB / 441.5 MB, free: 13.65 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.2734, allocations: 106.8 kB / 441.6 MB, free: 13.52 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003002/0.2737, allocations: 237.1 kB / 441.8 MB, free: 13.28 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.856e-05/0.2737, allocations: 29.7 kB / 441.9 MB, free: 13.25 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.2739, allocations: 168.4 kB / 442 MB, free: 13.08 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 8.486e-05/0.274, allocations: 75.38 kB / 442.1 MB, free: 13 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001092/0.2741, allocations: 49.92 kB / 442.2 MB, free: 12.95 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001713/0.2742, allocations: 334.8 kB / 442.5 MB, free: 12.61 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004894/0.2747, allocations: 144.3 kB / 442.6 MB, free: 12.47 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004917/0.2752, allocations: 184.2 kB / 442.8 MB, free: 12.28 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0009058/0.2761, allocations: 320.1 kB / 443.1 MB, free: 11.95 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.2761, allocations: 0 / 443.1 MB, free: 11.95 MB / 350.1 MB
Notification: Performance of matching and sorting (n=28) (initialization): time 0.001145/0.2773, allocations: 410.8 kB / 443.5 MB, free: 11.54 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 5.421e-05/0.2773, allocations: 41.7 kB / 443.6 MB, free: 11.49 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.053e-06/0.2773, allocations: 0 / 443.6 MB, free: 11.49 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.914e-05/0.2774, allocations: 7.984 kB / 443.6 MB, free: 11.48 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001867/0.2792, allocations: 263.6 kB / 443.8 MB, free: 11.23 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005267/0.2845, allocations: 3.244 MB / 447.1 MB, free: 7.762 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004654/0.285, allocations: 55.81 kB / 447.1 MB, free: 7.707 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.737e-05/0.285, allocations: 4.094 kB / 447.1 MB, free: 7.703 MB / 350.1 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.0002515/0.2852, allocations: 149.7 kB / 447.3 MB, free: 7.547 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 5.867e-05/0.2853, allocations: 23.86 kB / 447.3 MB, free: 7.523 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.058e-05/0.2854, allocations: 30.11 kB / 447.3 MB, free: 7.492 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.689e-06/0.2854, allocations: 7.938 kB / 447.3 MB, free: 7.484 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.2854, allocations: 0 / 447.3 MB, free: 7.484 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.2854, allocations: 3.984 kB / 447.3 MB, free: 7.48 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001937/0.2873, allocations: 0.8751 MB / 448.2 MB, free: 6.551 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.852e-06/0.2873, allocations: 3.984 kB / 448.2 MB, free: 6.547 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001762/0.2891, allocations: 263.7 kB / 448.5 MB, free: 6.289 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.2891, allocations: 0 / 448.5 MB, free: 6.289 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.015e-05/0.2891, allocations: 8 kB / 448.5 MB, free: 6.281 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005028/0.2941, allocations: 3.241 MB / 451.7 MB, free: 2.812 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.2942, allocations: 8.016 kB / 451.7 MB, free: 2.805 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.2957, allocations: 0.6015 MB / 452.3 MB, free: 2.184 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.304e-05/0.2958, allocations: 27.88 kB / 452.4 MB, free: 2.156 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.45e-05/0.2958, allocations: 7.938 kB / 452.4 MB, free: 2.148 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003547/0.2962, allocations: 44.02 kB / 452.4 MB, free: 2.105 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 8.794e-05/0.2963, allocations: 31.89 kB / 452.4 MB, free: 2.074 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.383e-05/0.2963, allocations: 7.984 kB / 452.4 MB, free: 2.066 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001853/0.2965, allocations: 172.5 kB / 452.6 MB, free: 1.895 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.2965, allocations: 0 / 452.6 MB, free: 1.895 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004812/0.297, allocations: 83.89 kB / 452.7 MB, free: 1.812 MB / 350.1 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.0001497/0.2971, allocations: 111.2 kB / 452.8 MB, free: 1.691 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0026/0.2997, allocations: 0.5574 MB / 453.4 MB, free: 1.121 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.2997, allocations: 0 / 453.4 MB, free: 1.121 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.002089/0.3018, allocations: 379.7 kB / 453.7 MB, free: 0.75 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004174/0.3022, allocations: 48.28 kB / 453.8 MB, free: 0.7031 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001783/0.304, allocations: 0.6996 MB / 454.5 MB, free: 15.98 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003923/0.3044, allocations: 0.7519 MB / 455.2 MB, free: 15.2 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0001307/0.3045, allocations: 21.95 kB / 455.3 MB, free: 15.18 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 7.876e-05/0.3046, allocations: 23.42 kB / 455.3 MB, free: 15.16 MB / 366.1 MB
Notification: Performance of SimCode: time 9.82e-07/0.3046, allocations: 0 / 455.3 MB, free: 15.16 MB / 366.1 MB
Notification: Performance of Templates: time 0.008669/0.3133, allocations: 4.011 MB / 459.3 MB, free: 11.18 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Analog/Examples/ThyristorBehaviourTest/ThyristorBehaviourTest.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Analog.Examples.ThyristorBehaviourTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660]
""
[Timeout remaining time 660]
Reference file matches
[Calling sys.exit(0), Time elapsed: 4.786196753382683]