Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.001829/0.001829, allocations: 112.2 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.002134/0.002134, allocations: 189.6 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.546/1.546, 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.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER")
translateModel(Modelica.Electrical.Digital.Examples.NXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|nXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 47.92 kB / 370.9 MB, free: 9.367 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.3051/0.3066, allocations: 52.19 MB / 423.1 MB, free: 14.69 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002874/0.3095, allocations: 1.521 MB / 424.6 MB, free: 13.16 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001989/0.3115, allocations: 0.8616 MB / 425.5 MB, free: 12.29 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.3115, allocations: 0 / 425.5 MB, free: 12.29 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 9.107e-05/0.3116, allocations: 11.86 kB / 425.5 MB, free: 12.28 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 9.495e-05/0.3117, allocations: 19.86 kB / 425.5 MB, free: 12.26 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.3121, allocations: 51.88 kB / 425.6 MB, free: 12.21 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002557/0.3123, allocations: 135.7 kB / 425.7 MB, free: 12.07 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001841/0.3125, allocations: 8.234 kB / 425.7 MB, free: 12.06 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0007132/0.3132, allocations: 0.5849 MB / 426.3 MB, free: 11.48 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.3134, allocations: 75.69 kB / 426.4 MB, free: 11.4 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 4.791e-05/0.3134, allocations: 8 kB / 426.4 MB, free: 11.39 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 4.626e-05/0.3135, allocations: 12 kB / 426.4 MB, free: 11.38 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.3136, allocations: 63.75 kB / 426.5 MB, free: 11.32 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.000149/0.3137, allocations: 115.1 kB / 426.6 MB, free: 11.21 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004511/0.3142, allocations: 379.7 kB / 426.9 MB, free: 10.84 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3142, allocations: 0 / 426.9 MB, free: 10.84 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.873e-06/0.3142, allocations: 0 / 426.9 MB, free: 10.84 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.211e-06/0.3142, allocations: 0 / 426.9 MB, free: 10.84 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: 14
 * Number of variables: 14
Notification: Performance of Generate backend data structure: time 0.0008959/0.3151, allocations: 0.6552 MB / 427.6 MB, free: 10.13 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3151, allocations: 12.03 kB / 427.6 MB, free: 10.12 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.879e-05/0.3152, allocations: 36.7 kB / 427.6 MB, free: 10.08 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003317/0.3155, allocations: 216.8 kB / 427.9 MB, free: 9.844 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.294e-05/0.3155, allocations: 8.375 kB / 427.9 MB, free: 9.836 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 3.783e-05/0.3156, allocations: 8.375 kB / 427.9 MB, free: 9.828 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003929/0.316, allocations: 129.9 kB / 428 MB, free: 9.695 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 8.686e-06/0.316, allocations: 0 / 428 MB, free: 9.695 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.59e-05/0.316, allocations: 4 kB / 428 MB, free: 9.691 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.316, allocations: 4 kB / 428 MB, free: 9.688 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001554/0.3162, allocations: 55.97 kB / 428.1 MB, free: 9.633 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007672/0.3169, allocations: 443.5 kB / 428.5 MB, free: 9.156 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.3171, allocations: 78.42 kB / 428.6 MB, free: 9.07 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.3173, allocations: 56.89 kB / 428.6 MB, free: 9.012 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.3173, allocations: 4 kB / 428.6 MB, free: 9.008 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003837/0.3177, allocations: 206.6 kB / 428.8 MB, free: 8.781 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=13): time 1.553e-06/0.3177, allocations: 0 / 428.8 MB, free: 8.781 MB / 334.1 MB
Notification: Performance of matching and sorting (n=13): time 0.0008696/0.3185, allocations: 480.3 kB / 429.3 MB, free: 8.281 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.3187, allocations: 166.2 kB / 429.5 MB, free: 8.082 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006802/0.3193, allocations: 0.5129 MB / 430 MB, free: 7.559 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 3.867e-05/0.3194, allocations: 33.7 kB / 430 MB, free: 7.52 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.81e-05/0.3194, allocations: 101.1 kB / 430.1 MB, free: 7.418 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 4.925e-05/0.3195, allocations: 35.75 kB / 430.1 MB, free: 7.383 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.3196, allocations: 81.55 kB / 430.2 MB, free: 7.297 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001679/0.3198, allocations: 330.8 kB / 430.5 MB, free: 6.965 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001369/0.3199, allocations: 55.97 kB / 430.6 MB, free: 6.91 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001466/0.3201, allocations: 73.06 kB / 430.7 MB, free: 6.836 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004351/0.3205, allocations: 345.9 kB / 431 MB, free: 6.445 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.3205, allocations: 4 kB / 431 MB, free: 6.441 MB / 334.1 MB
Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006256/0.3212, allocations: 384.4 kB / 431.4 MB, free: 6.035 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.3213, allocations: 126.8 kB / 431.5 MB, free: 5.887 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.3213, allocations: 4 kB / 431.5 MB, free: 5.883 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.791e-05/0.3213, allocations: 0 / 431.5 MB, free: 5.883 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.09e-05/0.3213, allocations: 0 / 431.5 MB, free: 5.883 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.724e-05/0.3213, allocations: 7.938 kB / 431.5 MB, free: 5.875 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001405/0.3215, allocations: 11.98 kB / 431.5 MB, free: 5.863 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.737e-05/0.3215, allocations: 55.94 kB / 431.6 MB, free: 5.809 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 2
 * Number of states: 0 ()
 * Number of discrete variables: 15 ($PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.yy,nXFERGATE.nextstate,x_table.y,e_table.y,$whenCondition2,$whenCondition1)
 * Number of discrete states: 0 ()
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (7):
 * Single equations (assignments): 3
 * Array equations: 0
 * Algorithm blocks: 4
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of prepare postOptimizeDAE: time 0.00049/0.322, allocations: 366.5 kB / 432 MB, free: 5.418 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.812e-05/0.3221, allocations: 39.77 kB / 432 MB, free: 5.379 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000147/0.3223, allocations: 71.06 kB / 432.1 MB, free: 5.305 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3223, allocations: 0 / 432.1 MB, free: 5.305 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.3223, allocations: 4 kB / 432.1 MB, free: 5.301 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.465e-06/0.3223, allocations: 0 / 432.1 MB, free: 5.301 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.3234, allocations: 0.793 MB / 432.9 MB, free: 4.434 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/0.3234, allocations: 7.984 kB / 432.9 MB, free: 4.426 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.899e-06/0.3234, allocations: 0 / 432.9 MB, free: 4.426 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 3.657e-06/0.3234, allocations: 4 kB / 432.9 MB, free: 4.422 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.174e-05/0.3234, allocations: 12 kB / 432.9 MB, free: 4.41 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.3234, allocations: 0 / 432.9 MB, free: 4.41 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/0.3234, allocations: 3.938 kB / 432.9 MB, free: 4.406 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007322/0.3242, allocations: 0.5353 MB / 433.4 MB, free: 3.832 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0003962/0.3246, allocations: 201.4 kB / 433.6 MB, free: 3.637 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.364e-05/0.3246, allocations: 15.98 kB / 433.6 MB, free: 3.621 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001386/0.3248, allocations: 8 kB / 433.6 MB, free: 3.613 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.3249, allocations: 39.84 kB / 433.7 MB, free: 3.574 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.87e-05/0.3249, allocations: 60.06 kB / 433.7 MB, free: 3.516 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 0.0005916/0.3255, allocations: 386.9 kB / 434.1 MB, free: 3.137 MB / 334.1 MB
Notification: Performance of sort global known variables: time 1e-07/0.3255, allocations: 0 / 434.1 MB, free: 3.137 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003118/0.3258, allocations: 47.94 kB / 434.2 MB, free: 3.09 MB / 334.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: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next)
 * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x)
 * Number of clocked states: 0 ()
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (5):
 * Single equations (assignments): 1
 * Array equations: 0
 * Algorithm blocks: 4
 * Record equations: 0
 * When equations: 0
 * If-equations: 0
 * Equation systems (not torn): 0
 * Torn equation systems: 0
 * Mixed (continuous/discrete) equation systems: 0
Notification: Performance of Backend phase and start with SimCode phase: time 0.0002197/0.3261, allocations: 118.9 kB / 434.3 MB, free: 2.965 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.000564/0.3266, allocations: 369.5 kB / 434.6 MB, free: 2.555 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3266, allocations: 4.062 kB / 434.6 MB, free: 2.551 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0003281/0.327, allocations: 313.5 kB / 434.9 MB, free: 2.195 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000672/0.3276, allocations: 118.8 kB / 435.1 MB, free: 2.09 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001145/0.3288, allocations: 0.6532 MB / 435.7 MB, free: 1.41 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005223/0.3293, allocations: 0.802 MB / 436.5 MB, free: 0.582 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 5.128e-05/0.3294, allocations: 8.656 kB / 436.5 MB, free: 0.5742 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 2.582e-05/0.3294, allocations: 15.44 kB / 436.5 MB, free: 0.5586 MB / 334.1 MB
Notification: Performance of SimCode: time 4.51e-07/0.3294, allocations: 0 / 436.5 MB, free: 0.5586 MB / 334.1 MB
Notification: Performance of Templates: time 0.009678/0.3391, allocations: 4.707 MB / 441.3 MB, free: 11.79 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.7720092525705695]