Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") translateModel(Modelica.Electrical.Digital.Examples.NRXFER,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|nRXFERGATE.y",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001098/0.001098, allocations: 109.5 kB / 17.68 MB, free: 5.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001176/0.001176, allocations: 190.9 kB / 18.62 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 222.9 MB / 242.3 MB, free: 15.11 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 57.78 kB / 302.1 MB, free: 5.156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.109, allocations: 49.44 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.003679/0.1128, allocations: 1.504 MB / 353 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002034/0.1148, allocations: 0.8512 MB / 353.8 MB, free: 1.324 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.018e-05/0.1149, allocations: 3.938 kB / 353.9 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001019/0.115, allocations: 7.922 kB / 353.9 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.847e-05/0.1151, allocations: 23.84 kB / 353.9 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.1154, allocations: 50.52 kB / 353.9 MB, free: 1.242 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002285/0.1157, allocations: 139.7 kB / 354.1 MB, free: 1.105 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001383/0.1158, allocations: 20.22 kB / 354.1 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005975/0.1164, allocations: 0.5654 MB / 354.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000135/0.1166, allocations: 71.75 kB / 354.7 MB, free: 456 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.1166, allocations: 12 kB / 354.7 MB, free: 444 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.91e-05/0.1166, allocations: 12 kB / 354.7 MB, free: 432 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.995e-05/0.1168, allocations: 63.7 kB / 354.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001322/0.1169, allocations: 111.2 kB / 354.9 MB, free: 256 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003969/0.1173, allocations: 378.6 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.079e-06/0.1173, allocations: 0 / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1173, allocations: 0 / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.1173, allocations: 0 / 355.3 MB, free: 15.88 MB / 302.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.0009677/0.1183, allocations: 0.7188 MB / 356 MB, free: 15.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.1184, allocations: 8.031 kB / 356 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.143e-05/0.1185, allocations: 44.47 kB / 356.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004112/0.1189, allocations: 270.3 kB / 356.3 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.1189, allocations: 8.375 kB / 356.3 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.517e-05/0.119, allocations: 8.375 kB / 356.3 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004038/0.1194, allocations: 137.8 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1194, allocations: 3.938 kB / 356.5 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.844e-05/0.1194, allocations: 8 kB / 356.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.1195, allocations: 0 / 356.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.1196, allocations: 55.97 kB / 356.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000846/0.1205, allocations: 464.6 kB / 357 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002027/0.1207, allocations: 98.48 kB / 357.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001579/0.1209, allocations: 84.89 kB / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.347e-05/0.1209, allocations: 0 / 357.2 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004728/0.1214, allocations: 210.8 kB / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.944e-06/0.1214, allocations: 3.938 kB / 357.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009144/0.1223, allocations: 475.8 kB / 357.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001347/0.1224, allocations: 170.2 kB / 358 MB, free: 12.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000706/0.1231, allocations: 0.513 MB / 358.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.957e-05/0.1232, allocations: 29.7 kB / 358.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.233e-05/0.1233, allocations: 101 kB / 358.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.317e-05/0.1233, allocations: 27.64 kB / 358.7 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001387/0.1235, allocations: 89.41 kB / 358.8 MB, free: 12.1 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.1236, allocations: 330.8 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001399/0.1238, allocations: 55.97 kB / 359.1 MB, free: 11.71 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.1239, allocations: 73.62 kB / 359.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003325/0.1243, allocations: 346.3 kB / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1243, allocations: 0 / 359.6 MB, free: 11.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005325/0.1248, allocations: 392.4 kB / 359.9 MB, free: 10.83 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001212/0.125, allocations: 126.8 kB / 360.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.463e-06/0.125, allocations: 0 / 360.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.125, allocations: 0 / 360.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.411e-05/0.125, allocations: 3.984 kB / 360.1 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.125, allocations: 4 kB / 360.1 MB, free: 10.67 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001334/0.1252, allocations: 11.91 kB / 360.1 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.805e-05/0.1253, allocations: 63.92 kB / 360.1 MB, free: 10.6 MB / 302.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.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.yy,nRXFERGATE.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.0003645/0.1256, allocations: 362.7 kB / 360.5 MB, free: 10.21 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.597e-05/0.1257, allocations: 35.62 kB / 360.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.1258, allocations: 71.14 kB / 360.6 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.1258, allocations: 3.984 kB / 360.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.1258, allocations: 0 / 360.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1258, allocations: 0 / 360.6 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001001/0.1269, allocations: 0.8212 MB / 361.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.1269, allocations: 0 / 361.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.438e-06/0.1269, allocations: 0 / 361.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1269, allocations: 0 / 361.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.475e-05/0.1269, allocations: 15.98 kB / 361.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.784e-06/0.1269, allocations: 192 / 361.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.1269, allocations: 15.88 kB / 361.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007325/0.1277, allocations: 0.5445 MB / 362 MB, free: 8.574 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003943/0.1281, allocations: 244.5 kB / 362.2 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.623e-05/0.1282, allocations: 11.94 kB / 362.3 MB, free: 8.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.1283, allocations: 15.98 kB / 362.3 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.1284, allocations: 23.92 kB / 362.3 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-05/0.1285, allocations: 59.98 kB / 362.4 MB, free: 8.207 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005754/0.1291, allocations: 386.9 kB / 362.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1291, allocations: 0 / 362.7 MB, free: 7.832 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002986/0.1294, allocations: 43.91 kB / 362.8 MB, free: 7.789 MB / 302.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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.0001974/0.1296, allocations: 109.9 kB / 362.9 MB, free: 7.676 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005799/0.1302, allocations: 441.5 kB / 363.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.1302, allocations: 0 / 363.3 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003359/0.1306, allocations: 373.6 kB / 363.7 MB, free: 6.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006026/0.1312, allocations: 122.8 kB / 363.8 MB, free: 6.668 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001163/0.1323, allocations: 0.6536 MB / 364.4 MB, free: 5.992 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004569/0.1328, allocations: 0.802 MB / 365.3 MB, free: 5.164 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.186e-05/0.1329, allocations: 8.656 kB / 365.3 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.795e-05/0.1329, allocations: 11.44 kB / 365.3 MB, free: 5.145 MB / 302.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1329, allocations: 0 / 365.3 MB, free: 5.145 MB / 302.1 MB Notification: Performance of Templates: time 0.008389/0.1413, allocations: 4.672 MB / 369.9 MB, free: 416 kB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NRXFER/NRXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches