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.001847/0.001847, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.001881/0.001881, allocations: 153.1 kB / 24.27 MB, free: 164 kB / 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 1.574/1.574, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 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 1.563e-06/1.563e-06, allocations: 0 / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.697e-05/2.853e-05, allocations: 2.312 kB / 267.3 MB, free: 6.738 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002925/0.002953, allocations: 1.479 MB / 268.8 MB, free: 5.246 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002095/0.005048, allocations: 0.8341 MB / 269.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.011e-05/0.005108, allocations: 0 / 269.6 MB, free: 4.406 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.005216, allocations: 7.875 kB / 269.6 MB, free: 4.398 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.005327, allocations: 27.78 kB / 269.7 MB, free: 4.371 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003055/0.005633, allocations: 51.81 kB / 269.7 MB, free: 4.32 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002343/0.005867, allocations: 135.7 kB / 269.8 MB, free: 4.188 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.985e-05/0.005967, allocations: 16.2 kB / 269.9 MB, free: 4.168 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008091/0.006776, allocations: 0.5927 MB / 270.5 MB, free: 3.574 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001501/0.006926, allocations: 67.81 kB / 270.5 MB, free: 3.508 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.012e-05/0.006996, allocations: 8 kB / 270.5 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.252e-05/0.007049, allocations: 12 kB / 270.5 MB, free: 3.488 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.007159, allocations: 67.7 kB / 270.6 MB, free: 3.422 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001098/0.007268, allocations: 55.73 kB / 270.7 MB, free: 3.367 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.007756, allocations: 378.8 kB / 271 MB, free: 2.996 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.536e-06/0.007759, allocations: 0 / 271 MB, free: 2.996 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.007761, allocations: 3.938 kB / 271 MB, free: 2.992 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.007767, allocations: 0 / 271 MB, free: 2.992 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.001041/0.008808, allocations: 0.8016 MB / 271.8 MB, free: 2.129 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.729e-05/0.008845, allocations: 12.92 kB / 271.9 MB, free: 2.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001158/0.008961, allocations: 48.7 kB / 271.9 MB, free: 2.07 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003392/0.0093, allocations: 222.9 kB / 272.1 MB, free: 1.824 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.009324, allocations: 8.375 kB / 272.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.266e-05/0.009357, allocations: 12.31 kB / 272.1 MB, free: 1.805 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004504/0.009807, allocations: 245 kB / 272.4 MB, free: 1.535 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.009817, allocations: 192 / 272.4 MB, free: 1.535 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.128e-05/0.009848, allocations: 4.375 kB / 272.4 MB, free: 1.531 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.145e-06/0.009856, allocations: 3.938 kB / 272.4 MB, free: 1.527 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002747/0.01013, allocations: 182.8 kB / 272.6 MB, free: 1.324 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000988/0.01112, allocations: 0.5385 MB / 273.1 MB, free: 0.75 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003539/0.01147, allocations: 213.8 kB / 273.3 MB, free: 0.5039 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002614/0.01173, allocations: 194.5 kB / 273.5 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.01175, allocations: 3.938 kB / 273.5 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000474/0.01222, allocations: 347.1 kB / 273.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of pre-optimization done (n=13): time 1.242e-06/0.01223, allocations: 0 / 273.8 MB, free: 15.89 MB / 266.7 MB Notification: Performance of matching and sorting (n=13): time 0.001135/0.01336, allocations: 0.7245 MB / 274.6 MB, free: 15.08 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.01349, allocations: 170.2 kB / 274.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00104/0.01453, allocations: 0.7013 MB / 275.4 MB, free: 14.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.01457, allocations: 29.81 kB / 275.5 MB, free: 14.13 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001075/0.01468, allocations: 151.8 kB / 275.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.635e-05/0.01473, allocations: 39.67 kB / 275.7 MB, free: 13.93 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001511/0.01489, allocations: 91.22 kB / 275.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002838/0.01517, allocations: 0.5001 MB / 276.2 MB, free: 13.32 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002348/0.0154, allocations: 182.8 kB / 276.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002567/0.01566, allocations: 205.7 kB / 276.6 MB, free: 12.89 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000565/0.01623, allocations: 372.7 kB / 277 MB, free: 12.47 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.686e-06/0.01623, allocations: 3.938 kB / 277 MB, free: 12.47 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007866/0.01701, allocations: 0.5147 MB / 277.5 MB, free: 11.9 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001165/0.01713, allocations: 134.8 kB / 277.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5e-06/0.01714, allocations: 0 / 277.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.01715, allocations: 0 / 277.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.398e-05/0.01717, allocations: 4 kB / 277.6 MB, free: 11.74 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.496e-06/0.01718, allocations: 3.938 kB / 277.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001244/0.01731, allocations: 8 kB / 277.6 MB, free: 11.73 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.383e-05/0.01739, allocations: 55.98 kB / 277.7 MB, free: 11.67 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.0004331/0.01782, allocations: 389.3 kB / 278.1 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.069e-05/0.0179, allocations: 51.83 kB / 278.1 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001086/0.01801, allocations: 55.08 kB / 278.2 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.01802, allocations: 8 kB / 278.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.01802, allocations: 0 / 278.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.01802, allocations: 0 / 278.2 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001785/0.01981, allocations: 1.045 MB / 279.2 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.01981, allocations: 0 / 279.2 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.15e-06/0.01982, allocations: 0 / 279.2 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.01982, allocations: 4 kB / 279.2 MB, free: 9.996 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.169e-05/0.01985, allocations: 11.98 kB / 279.3 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.01986, allocations: 0 / 279.3 MB, free: 9.984 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.01986, allocations: 7.984 kB / 279.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009507/0.02081, allocations: 0.7355 MB / 280 MB, free: 9.172 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003947/0.02121, allocations: 201.2 kB / 280.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.831e-05/0.02126, allocations: 12 kB / 280.2 MB, free: 8.965 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001189/0.02138, allocations: 8 kB / 280.2 MB, free: 8.957 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001309/0.02151, allocations: 27.97 kB / 280.2 MB, free: 8.93 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.306e-05/0.0216, allocations: 59.92 kB / 280.3 MB, free: 8.871 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006567/0.02225, allocations: 458.7 kB / 280.7 MB, free: 8.426 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02225, allocations: 0 / 280.7 MB, free: 8.426 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002912/0.02255, allocations: 44 kB / 280.8 MB, free: 8.383 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 0.0001838/0.02273, allocations: 115 kB / 280.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.02369, allocations: 0.6434 MB / 281.5 MB, free: 7.516 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.0237, allocations: 7.938 kB / 281.6 MB, free: 7.508 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004976/0.0242, allocations: 460 kB / 282 MB, free: 6.98 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006656/0.02486, allocations: 135.5 kB / 282.1 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0013/0.02616, allocations: 0.772 MB / 282.9 MB, free: 6.031 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003368/0.0265, allocations: 173.7 kB / 283.1 MB, free: 5.844 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.716e-05/0.02656, allocations: 16.77 kB / 283.1 MB, free: 5.828 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.02659, allocations: 16.5 kB / 283.1 MB, free: 5.812 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.02659, allocations: 0 / 283.1 MB, free: 5.812 MB / 266.7 MB Notification: Performance of Templates: time 0.01052/0.03712, allocations: 5.009 MB / 288.1 MB, free: 0.7812 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","/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.453169824904762]