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.0008922/0.0008922, allocations: 85.05 kB / 21.5 MB, free: 2.984 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.0008807/0.0008807, allocations: 147 kB / 24.89 MB, free: 8.781 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.8941/0.8941, allocations: 173.4 MB / 201.5 MB, free: 8.77 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: 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 1.072e-06/1.072e-06, allocations: 0 / 268.5 MB, free: 6.055 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.068e-05/1.175e-05, allocations: 2.312 kB / 268.5 MB, free: 6.051 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001574/0.001585, allocations: 1.518 MB / 270 MB, free: 4.52 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001219/0.002805, allocations: 0.8379 MB / 270.8 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.991e-05/0.002845, allocations: 0 / 270.8 MB, free: 3.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.246e-05/0.002927, allocations: 11.92 kB / 270.8 MB, free: 3.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.968e-05/0.002997, allocations: 23.81 kB / 270.9 MB, free: 3.641 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000189/0.003186, allocations: 47.88 kB / 270.9 MB, free: 3.594 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.003326, allocations: 131.7 kB / 271 MB, free: 3.465 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.333e-05/0.003389, allocations: 20.2 kB / 271 MB, free: 3.441 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003931/0.003782, allocations: 0.5419 MB / 271.6 MB, free: 2.898 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.625e-05/0.003878, allocations: 63.81 kB / 271.7 MB, free: 2.836 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.625e-05/0.003905, allocations: 8 kB / 271.7 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.205e-05/0.003927, allocations: 8 kB / 271.7 MB, free: 2.82 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.895e-05/0.003986, allocations: 67.72 kB / 271.7 MB, free: 2.754 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.085e-05/0.004047, allocations: 55.78 kB / 271.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002018/0.004248, allocations: 294.9 kB / 272.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.402e-06/0.00425, allocations: 0 / 272.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 4.91e-07/0.00425, allocations: 0 / 272.1 MB, free: 2.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.004253, allocations: 0 / 272.1 MB, free: 2.41 MB / 250.7 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.0004195/0.004673, allocations: 0.6109 MB / 272.7 MB, free: 1.75 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.617e-05/0.004699, allocations: 8.922 kB / 272.7 MB, free: 1.742 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.59e-05/0.004745, allocations: 32.86 kB / 272.7 MB, free: 1.711 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001601/0.004905, allocations: 212.1 kB / 272.9 MB, free: 1.477 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.415e-05/0.004919, allocations: 4.375 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.849e-05/0.004938, allocations: 12.38 kB / 273 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001931/0.005131, allocations: 225.7 kB / 273.2 MB, free: 1.207 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.22e-06/0.005136, allocations: 4.188 kB / 273.2 MB, free: 1.203 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.414e-05/0.00515, allocations: 8.359 kB / 273.2 MB, free: 1.195 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.005154, allocations: 3.938 kB / 273.2 MB, free: 1.191 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.765e-05/0.005232, allocations: 154.7 kB / 273.3 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002387/0.005471, allocations: 204.3 kB / 273.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001047/0.005576, allocations: 173.2 kB / 273.7 MB, free: 0.5977 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.977e-05/0.005655, allocations: 155.7 kB / 273.9 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.237e-06/0.00566, allocations: 0 / 273.9 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001715/0.005831, allocations: 313 kB / 274.2 MB, free: 68 kB / 250.7 MB Notification: Performance of pre-optimization done (n=13): time 1.022e-06/0.005832, allocations: 0 / 274.2 MB, free: 68 kB / 250.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003135/0.006146, allocations: 0.5176 MB / 274.7 MB, free: 15.47 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.459e-05/0.0062, allocations: 170.2 kB / 274.8 MB, free: 15.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002598/0.00646, allocations: 359.2 kB / 275.2 MB, free: 14.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.939e-05/0.006479, allocations: 29.69 kB / 275.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.264e-05/0.006512, allocations: 97.08 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.733e-05/0.006539, allocations: 35.7 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.51e-05/0.006604, allocations: 69.55 kB / 275.4 MB, free: 14.66 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.651e-05/0.006671, allocations: 322.8 kB / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.403e-05/0.006745, allocations: 150.8 kB / 275.9 MB, free: 14.16 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.212e-05/0.006837, allocations: 164.5 kB / 276 MB, free: 13.97 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001438/0.006981, allocations: 315.2 kB / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.006983, allocations: 0 / 276.4 MB, free: 13.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001892/0.007172, allocations: 347.2 kB / 276.7 MB, free: 13.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.298e-05/0.007225, allocations: 134.7 kB / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.556e-06/0.007228, allocations: 0 / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.836e-06/0.007237, allocations: 0 / 276.8 MB, free: 13.06 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.335e-05/0.007251, allocations: 4.031 kB / 276.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.007255, allocations: 4 kB / 276.8 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.467e-05/0.007319, allocations: 11.95 kB / 276.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-05/0.00736, allocations: 51.98 kB / 276.9 MB, free: 12.99 MB / 266.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: 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.0002031/0.007563, allocations: 345.3 kB / 277.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.537e-05/0.007598, allocations: 47.89 kB / 277.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.925e-05/0.007668, allocations: 47.09 kB / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.007669, allocations: 0 / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.254e-06/0.007671, allocations: 3.984 kB / 277.3 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.007674, allocations: 8 kB / 277.3 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003705/0.008045, allocations: 0.5898 MB / 277.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.008046, allocations: 0 / 277.9 MB, free: 11.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.707e-06/0.00805, allocations: 7.984 kB / 277.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.008053, allocations: 4.047 kB / 277.9 MB, free: 11.83 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.008065, allocations: 7.938 kB / 277.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.008066, allocations: 0 / 277.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.008067, allocations: 0 / 277.9 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002287/0.008296, allocations: 493 kB / 278.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001676/0.008463, allocations: 147.4 kB / 278.6 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.247e-05/0.008496, allocations: 12.19 kB / 278.6 MB, free: 11.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.243e-05/0.008558, allocations: 15.98 kB / 278.6 MB, free: 11.11 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.297e-05/0.008611, allocations: 19.98 kB / 278.6 MB, free: 11.09 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.322e-05/0.008654, allocations: 59.91 kB / 278.7 MB, free: 11.03 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001402/0.008795, allocations: 148.6 kB / 278.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.008795, allocations: 0 / 278.8 MB, free: 10.88 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001546/0.008949, allocations: 44 kB / 278.9 MB, free: 10.84 MB / 266.7 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 7.927e-05/0.009028, allocations: 100.1 kB / 279 MB, free: 10.73 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002841/0.009313, allocations: 0.5547 MB / 279.5 MB, free: 10.08 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.009317, allocations: 8.062 kB / 279.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001709/0.009488, allocations: 404 kB / 279.9 MB, free: 9.598 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002791/0.009767, allocations: 127.7 kB / 280 MB, free: 9.48 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00065/0.01042, allocations: 0.734 MB / 280.8 MB, free: 8.691 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.298e-05/0.01048, allocations: 95.27 kB / 280.9 MB, free: 8.578 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.448e-05/0.0105, allocations: 8.719 kB / 280.9 MB, free: 8.57 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002399/0.01074, allocations: 175.2 kB / 281.1 MB, free: 8.398 MB / 266.7 MB Notification: Performance of SimCode: time 7.02e-07/0.01074, allocations: 0 / 281.1 MB, free: 8.398 MB / 266.7 MB Notification: Performance of Templates: time 0.005392/0.01614, allocations: 4.629 MB / 285.7 MB, free: 3.742 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4704406741075218]