Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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.001264/0.001264, allocations: 112 kB / 20.43 MB, free: 1.449 MB / 14.72 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.001362/0.001362, allocations: 187.8 kB / 23.72 MB, free: 4.68 MB / 14.72 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 1.494/1.494, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
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: translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors")
translateModel(Modelica.Electrical.Analog.Examples.CharacteristicThyristors,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5052,variableFilter="time|IdealThyristor1.off|IdealThyristor2.off|booleanStep1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001644/0.001644, allocations: 47.92 kB / 370.9 MB, free: 9.359 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2835/0.2852, allocations: 52.17 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CharacteristicThyristors): time 0.006254/0.2914, allocations: 4.011 MB / 427.1 MB, free: 10.68 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.00323/0.2947, allocations: 1.453 MB / 428.6 MB, free: 9.215 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0004045/0.2951, allocations: 19.81 kB / 428.6 MB, free: 9.195 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0009028/0.296, allocations: 246.8 kB / 428.8 MB, free: 8.953 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0006449/0.2966, allocations: 266.3 kB / 429.1 MB, free: 8.691 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0008021/0.2974, allocations: 294.4 kB / 429.4 MB, free: 8.406 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0008356/0.2983, allocations: 0.7085 MB / 430.1 MB, free: 7.695 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.000283/0.2985, allocations: 126.9 kB / 430.2 MB, free: 7.566 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003769/0.2989, allocations: 279 kB / 430.5 MB, free: 7.293 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003664/0.2993, allocations: 306.7 kB / 430.8 MB, free: 6.992 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 8.257e-05/0.2994, allocations: 52 kB / 430.8 MB, free: 6.941 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 0.0002621/0.2996, allocations: 107.9 kB / 430.9 MB, free: 6.836 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001634/0.2998, allocations: 143.5 kB / 431.1 MB, free: 6.695 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0003166/0.3001, allocations: 294.5 kB / 431.4 MB, free: 6.406 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0008954/0.301, allocations: 0.7115 MB / 432.1 MB, free: 5.695 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 8.987e-06/0.301, allocations: 4 kB / 432.1 MB, free: 5.691 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.024e-06/0.301, allocations: 4 kB / 432.1 MB, free: 5.688 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.708e-06/0.301, allocations: 0 / 432.1 MB, free: 5.688 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: 98
 * Number of variables: 98
Notification: Performance of Generate backend data structure: time 0.00182/0.3028, allocations: 0.8849 MB / 433 MB, free: 4.766 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.3029, allocations: 8.031 kB / 433 MB, free: 4.758 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001363/0.303, allocations: 68.52 kB / 433.1 MB, free: 4.691 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005942/0.3036, allocations: 353.3 kB / 433.4 MB, free: 4.32 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.061e-05/0.3037, allocations: 33.38 kB / 433.4 MB, free: 4.285 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.876e-05/0.3037, allocations: 40.12 kB / 433.5 MB, free: 4.246 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008308/0.3046, allocations: 441.6 kB / 433.9 MB, free: 3.789 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.388e-05/0.3046, allocations: 3.938 kB / 433.9 MB, free: 3.785 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/0.3046, allocations: 16 kB / 433.9 MB, free: 3.77 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3046, allocations: 8 kB / 433.9 MB, free: 3.762 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006382/0.3053, allocations: 319.8 kB / 434.2 MB, free: 3.449 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.3079, allocations: 1.649 MB / 435.9 MB, free: 1.707 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000705/0.3086, allocations: 330.8 kB / 436.2 MB, free: 1.371 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0003259/0.3089, allocations: 168.1 kB / 436.4 MB, free: 1.207 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 4.044e-05/0.3089, allocations: 7.984 kB / 436.4 MB, free: 1.199 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004897/0.3094, allocations: 258.4 kB / 436.6 MB, free: 0.918 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=40): time 2.174e-06/0.3094, allocations: 0 / 436.6 MB, free: 0.918 MB / 334.1 MB
Notification: Performance of matching and sorting (n=40): time 0.002282/0.3117, allocations: 0.712 MB / 437.3 MB, free: 192 kB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001383/0.3118, allocations: 187.9 kB / 437.5 MB, free: 15.96 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006278/0.3125, allocations: 0.4979 MB / 438 MB, free: 15.46 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.3125, allocations: 41.64 kB / 438.1 MB, free: 15.41 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0002129/0.3127, allocations: 248.8 kB / 438.3 MB, free: 15.16 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.000122/0.3129, allocations: 134.9 kB / 438.4 MB, free: 15.03 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001403/0.313, allocations: 82.12 kB / 438.5 MB, free: 14.95 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001704/0.3132, allocations: 354.8 kB / 438.9 MB, free: 14.59 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.3134, allocations: 120.8 kB / 439 MB, free: 14.47 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003563/0.3138, allocations: 217.2 kB / 439.2 MB, free: 14.22 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0005022/0.3143, allocations: 261.4 kB / 439.5 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.3143, allocations: 0 / 439.5 MB, free: 13.96 MB / 350.1 MB
Notification: Performance of matching and sorting (n=50) (initialization): time 0.000888/0.3152, allocations: 485 kB / 439.9 MB, free: 13.46 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 3.817e-05/0.3152, allocations: 7.438 kB / 439.9 MB, free: 13.46 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.608e-06/0.3152, allocations: 4 kB / 439.9 MB, free: 13.46 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 0.0005563/0.3158, allocations: 159.4 kB / 440.1 MB, free: 13.29 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002329/0.316, allocations: 43.91 kB / 440.1 MB, free: 13.25 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005853/0.3219, allocations: 6.25 MB / 446.4 MB, free: 6.547 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005144/0.3224, allocations: 51.8 kB / 446.4 MB, free: 6.496 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.308e-05/0.3224, allocations: 12 kB / 446.5 MB, free: 6.484 MB / 350.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 4
 * Number of states: 0 ()
 * Number of discrete variables: 16 ($PRE.booleanStep1.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart,booleanPulse.y,IdealGTOThyristor2.off,IdealThyristor2.off,$PRE.IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEventScaled,$PRE.booleanStep1.combiTimeTable.nextTimeEventScaled,booleanStep1.combiTimeTable.nextTimeEvent,IdealGTOThyristor1.off,IdealThyristor1.fire,IdealThyristor1.off,$PRE.IdealThyristor1.off)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (34):
 * Single equations (assignments): 30
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 4
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 4 systems
   {(1,4), (1,4), (1,4), (1,4)}
Notification: Performance of prepare postOptimizeDAE: time 0.0003593/0.3228, allocations: 183.8 kB / 446.6 MB, free: 6.297 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001503/0.3229, allocations: 63.75 kB / 446.7 MB, free: 6.234 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001186/0.3241, allocations: 0.4947 MB / 447.2 MB, free: 5.719 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.442e-06/0.3241, allocations: 4 kB / 447.2 MB, free: 5.715 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.3241, allocations: 0 / 447.2 MB, free: 5.715 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.3241, allocations: 3.984 kB / 447.2 MB, free: 5.711 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007127/0.3249, allocations: 472.1 kB / 447.7 MB, free: 5.207 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.3249, allocations: 3.938 kB / 447.7 MB, free: 5.203 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.325, allocations: 35.91 kB / 447.7 MB, free: 5.168 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 0.0004923/0.3255, allocations: 147.3 kB / 447.8 MB, free: 5.012 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.248e-05/0.3255, allocations: 7.984 kB / 447.8 MB, free: 5.004 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005646/0.3312, allocations: 5.953 MB / 453.8 MB, free: 14.59 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.3312, allocations: 3.984 kB / 453.8 MB, free: 14.59 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001249/0.3325, allocations: 0.492 MB / 454.3 MB, free: 14.07 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0002746/0.3327, allocations: 83.56 kB / 454.4 MB, free: 13.98 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001066/0.3328, allocations: 8 kB / 454.4 MB, free: 13.98 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003314/0.3332, allocations: 31.97 kB / 454.4 MB, free: 13.95 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001697/0.3333, allocations: 55.91 kB / 454.5 MB, free: 13.89 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.716e-05/0.3334, allocations: 15.98 kB / 454.5 MB, free: 13.88 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0005279/0.3339, allocations: 359.1 kB / 454.8 MB, free: 13.53 MB / 366.1 MB
Notification: Performance of sort global known variables: time 8e-08/0.3339, allocations: 0 / 454.8 MB, free: 13.53 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0008844/0.3348, allocations: 171.7 kB / 455 MB, free: 13.36 MB / 366.1 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,IdealThyristor1.fire,IdealGTOThyristor1.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled,IdealThyristor2.off,IdealGTOThyristor2.off,booleanPulse.y,booleanPulse.pulseStart)
 * Number of discrete states: 4 (IdealThyristor1.off,IdealThyristor2.off,booleanStep1.combiTimeTable.nextTimeEvent,booleanStep1.combiTimeTable.nextTimeEventScaled)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (24):
 * Single equations (assignments): 17
 * Array equations: 0
 * Algorithm blocks: 0
 * Record equations: 0
 * When equations: 3
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 4
 * Mixed (continuous/discrete) equation systems: 0
Notification: Torn system details for strict tearing set:
 * Linear torn systems (#iteration vars, #inner vars, density): 0 systems
 * Non-linear torn systems (#iteration vars, #inner vars): 4 systems
   {(1,4), (1,4), (1,4), (1,4)}
Notification: Performance of Backend phase and start with SimCode phase: time 0.001689/0.3365, allocations: 441.6 kB / 455.4 MB, free: 13.07 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.001428/0.3379, allocations: 0.7841 MB / 456.2 MB, free: 12.24 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.03e-06/0.3379, allocations: 0 / 456.2 MB, free: 12.24 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0009138/0.3388, allocations: 0.6429 MB / 456.9 MB, free: 11.54 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000659/0.3395, allocations: 118 kB / 457 MB, free: 11.43 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002323/0.3418, allocations: 0.9696 MB / 457.9 MB, free: 10.43 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005249/0.3423, allocations: 0.8594 MB / 458.8 MB, free: 9.551 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.00021/0.3425, allocations: 56.14 kB / 458.9 MB, free: 9.496 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 8.671e-05/0.3426, allocations: 27.44 kB / 458.9 MB, free: 9.469 MB / 366.1 MB
Notification: Performance of SimCode: time 5.61e-07/0.3426, allocations: 0 / 458.9 MB, free: 9.469 MB / 366.1 MB
Notification: Performance of Templates: time 0.02307/0.3657, allocations: 9.971 MB / 468.9 MB, free: 15.6 MB / 382.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/CharacteristicThyristors/CharacteristicThyristors.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.CharacteristicThyristors.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: 5.01887415535748]