Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001152/0.001152, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001311/0.001311, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2651/0.2664, allocations: 50.54 MB / 408.8 MB, free: 1.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002277/0.2687, allocations: 1.509 MB / 410.3 MB, free: 24 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00178/0.2705, allocations: 0.8834 MB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.289e-05/0.2706, allocations: 4 kB / 411.1 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.051e-05/0.2707, allocations: 11.86 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.704e-05/0.2708, allocations: 19.86 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002371/0.271, allocations: 47.89 kB / 411.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001949/0.2712, allocations: 139.7 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2713, allocations: 28.22 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005426/0.2719, allocations: 0.5732 MB / 412 MB, free: 14.31 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001325/0.272, allocations: 71.7 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.2721, allocations: 8 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.883e-05/0.2721, allocations: 8 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.243e-05/0.2722, allocations: 63.77 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001097/0.2723, allocations: 119.1 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003221/0.2726, allocations: 374.7 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.189e-06/0.2726, allocations: 4 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.2727, allocations: 3.938 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.453e-06/0.2727, allocations: 0 / 412.6 MB, free: 13.67 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.0007095/0.2734, allocations: 0.7127 MB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.278e-05/0.2734, allocations: 12.03 kB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.048e-05/0.2735, allocations: 38.75 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.769e-05/0.2735, allocations: 32.56 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002826/0.2738, allocations: 278.3 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.273e-05/0.2739, allocations: 8.375 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.732e-05/0.2739, allocations: 8.375 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.2742, allocations: 137.7 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.277e-06/0.2742, allocations: 0 / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.2743, allocations: 11.88 kB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.251e-06/0.2743, allocations: 4 kB / 413.8 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001378/0.2744, allocations: 63.94 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006215/0.275, allocations: 460.4 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001663/0.2752, allocations: 98.55 kB / 414.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001349/0.2754, allocations: 84.88 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.2754, allocations: 4 kB / 414.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003072/0.2757, allocations: 214.1 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.392e-06/0.2757, allocations: 0 / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007246/0.2764, allocations: 471.9 kB / 415.2 MB, free: 10.83 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.879e-05/0.2765, allocations: 170.2 kB / 415.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005498/0.2771, allocations: 0.513 MB / 415.9 MB, free: 10.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/0.2771, allocations: 29.7 kB / 415.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.601e-05/0.2772, allocations: 101.1 kB / 416 MB, free: 9.961 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.742e-05/0.2772, allocations: 31.56 kB / 416 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001056/0.2773, allocations: 81.42 kB / 416.1 MB, free: 9.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.2775, allocations: 326.8 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.2776, allocations: 55.97 kB / 416.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001276/0.2777, allocations: 77.67 kB / 416.6 MB, free: 9.379 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000319/0.278, allocations: 347.4 kB / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.2781, allocations: 0 / 416.9 MB, free: 8.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005024/0.2786, allocations: 384.3 kB / 417.3 MB, free: 8.578 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.525e-05/0.2786, allocations: 129.8 kB / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.2787, allocations: 0 / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.168e-05/0.2787, allocations: 0 / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.846e-05/0.2787, allocations: 4.125 kB / 417.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.2787, allocations: 4.031 kB / 417.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.2788, allocations: 23.92 kB / 417.4 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.77e-05/0.2789, allocations: 59.88 kB / 417.5 MB, free: 8.34 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.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.0002954/0.2792, allocations: 362.7 kB / 417.8 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.541e-05/0.2793, allocations: 39.53 kB / 417.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.127e-05/0.2794, allocations: 67.14 kB / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2794, allocations: 4 kB / 418 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.2794, allocations: 3.984 kB / 418 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.2794, allocations: 112 / 418 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009158/0.2803, allocations: 0.8207 MB / 418.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.2803, allocations: 0 / 418.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.731e-06/0.2803, allocations: 7.938 kB / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.175e-06/0.2803, allocations: 0 / 418.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.878e-05/0.2804, allocations: 12 kB / 418.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.2804, allocations: 4 kB / 418.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.906e-06/0.2804, allocations: 3.938 kB / 418.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006248/0.281, allocations: 0.5407 MB / 419.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003194/0.2813, allocations: 244.5 kB / 419.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.85e-05/0.2814, allocations: 12 kB / 419.6 MB, free: 6.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.2815, allocations: 11.98 kB / 419.6 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001031/0.2816, allocations: 31.91 kB / 419.6 MB, free: 6.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.348e-05/0.2817, allocations: 55.94 kB / 419.7 MB, free: 5.961 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004347/0.2821, allocations: 386.9 kB / 420.1 MB, free: 5.586 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2821, allocations: 0 / 420.1 MB, free: 5.586 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002721/0.2824, allocations: 44 kB / 420.1 MB, free: 5.543 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,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.0009672/0.2834, allocations: 1.096 MB / 421.2 MB, free: 4.398 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005256/0.2839, allocations: 441.5 kB / 421.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.284, allocations: 0 / 421.6 MB, free: 3.918 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003084/0.2843, allocations: 369.6 kB / 422 MB, free: 3.508 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006029/0.2849, allocations: 131.2 kB / 422.1 MB, free: 3.395 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003157/0.288, allocations: 2.75 MB / 424.9 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004229/0.2885, allocations: 0.7983 MB / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.409e-05/0.2885, allocations: 8.656 kB / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.741e-05/0.2886, allocations: 31.42 kB / 425.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of SimCode: time 3.095e-06/0.2886, allocations: 4 kB / 425.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02486/0.3135, allocations: 6.117 MB / 431.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.572/7.885, allocations: 5.562 kB / 431.8 MB, free: 9.531 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Digital.Examples.NRXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,nRXFERGATE.y Variables in the result:e_table.n,e_table.t[1],e_table.t[2],e_table.t[3],e_table.x[1],e_table.x[2],e_table.x[3],e_table.y,e_table.y0,nRXFERGATE.enable,nRXFERGATE.tHL,nRXFERGATE.tLH,nRXFERGATE.x,nRXFERGATE.y,time,x_table.n,x_table.t[1],x_table.t[2],x_table.x[1],x_table.x[2],x_table.y,x_table.y0