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) 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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 104.8 kB / 17.05 MB, free: 6.027 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.001757/0.001757, allocations: 196 kB / 18 MB, free: 5.105 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.414/1.414, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00122/0.00122, allocations: 43.94 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2811, allocations: 49.45 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002514/0.2837, allocations: 1.491 MB / 401.7 MB, free: 7.227 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.2856, allocations: 0.8502 MB / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.67e-05/0.2857, allocations: 0 / 402.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 8.456e-05/0.2858, allocations: 3.938 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.649e-05/0.2859, allocations: 23.78 kB / 402.6 MB, free: 6.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002343/0.2861, allocations: 51.94 kB / 402.7 MB, free: 6.379 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000191/0.2863, allocations: 139.7 kB / 402.8 MB, free: 6.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000111/0.2865, allocations: 36.2 kB / 402.8 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005375/0.287, allocations: 0.5693 MB / 403.4 MB, free: 5.633 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.2871, allocations: 75.69 kB / 403.5 MB, free: 5.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.452e-05/0.2872, allocations: 8 kB / 403.5 MB, free: 5.551 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.859e-05/0.2872, allocations: 16 kB / 403.5 MB, free: 5.535 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.835e-05/0.2873, allocations: 59.77 kB / 403.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001143/0.2874, allocations: 119.1 kB / 403.7 MB, free: 5.359 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003124/0.2877, allocations: 378.6 kB / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2877, allocations: 0 / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.2877, allocations: 0 / 404 MB, free: 4.988 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2878, allocations: 0 / 404 MB, free: 4.988 MB / 318.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.0006864/0.2885, allocations: 0.7127 MB / 404.8 MB, free: 4.203 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.2885, allocations: 12.03 kB / 404.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.306e-05/0.2885, allocations: 46.62 kB / 404.8 MB, free: 4.137 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.822e-05/0.2886, allocations: 40.56 kB / 404.8 MB, free: 4.098 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.2889, allocations: 270.3 kB / 405.1 MB, free: 3.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.2889, allocations: 8.375 kB / 405.1 MB, free: 3.785 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.595e-05/0.289, allocations: 8.375 kB / 405.1 MB, free: 3.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002739/0.2892, allocations: 137.7 kB / 405.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.2893, allocations: 0 / 405.3 MB, free: 3.637 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.102e-05/0.2893, allocations: 4 kB / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.2893, allocations: 0 / 405.3 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001308/0.2894, allocations: 59.91 kB / 405.3 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006522/0.2901, allocations: 464.6 kB / 405.8 MB, free: 3.07 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001708/0.2903, allocations: 102.5 kB / 405.9 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.2904, allocations: 84.94 kB / 406 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.417e-06/0.2904, allocations: 0 / 406 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003364/0.2908, allocations: 222.3 kB / 406.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.794e-06/0.2908, allocations: 0 / 406.2 MB, free: 2.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007529/0.2915, allocations: 475.8 kB / 406.6 MB, free: 2.141 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.609e-05/0.2916, allocations: 166.2 kB / 406.8 MB, free: 1.941 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005619/0.2922, allocations: 0.5169 MB / 407.3 MB, free: 1.41 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.2922, allocations: 29.7 kB / 407.4 MB, free: 1.375 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.009e-05/0.2923, allocations: 97.14 kB / 407.4 MB, free: 1.277 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.351e-05/0.2923, allocations: 23.7 kB / 407.5 MB, free: 1.254 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/0.2925, allocations: 85.33 kB / 407.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001021/0.2926, allocations: 330.8 kB / 407.9 MB, free: 0.832 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001195/0.2927, allocations: 55.97 kB / 407.9 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.2928, allocations: 77.05 kB / 408 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000313/0.2931, allocations: 350 kB / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2932, allocations: 0 / 408.3 MB, free: 312 kB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005342/0.2937, allocations: 388.4 kB / 408.7 MB, free: 15.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.414e-05/0.2938, allocations: 130.8 kB / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.2938, allocations: 0 / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.2938, allocations: 0 / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.949e-05/0.2938, allocations: 0 / 408.9 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.023e-06/0.2939, allocations: 4 kB / 408.9 MB, free: 15.73 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.294, allocations: 20.05 kB / 408.9 MB, free: 15.71 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.041e-05/0.2941, allocations: 56 kB / 408.9 MB, free: 15.66 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.0003088/0.2944, allocations: 366.7 kB / 409.3 MB, free: 15.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.249e-05/0.2944, allocations: 35.53 kB / 409.3 MB, free: 15.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.028e-05/0.2945, allocations: 71.16 kB / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2945, allocations: 0 / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.2945, allocations: 0 / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.2945, allocations: 0 / 409.4 MB, free: 15.16 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008956/0.2954, allocations: 0.8211 MB / 410.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.2955, allocations: 0 / 410.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.392e-06/0.2955, allocations: 3.984 kB / 410.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.2955, allocations: 0 / 410.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.698e-05/0.2955, allocations: 12 kB / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.665e-06/0.2955, allocations: 0 / 410.2 MB, free: 14.25 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2955, allocations: 11.88 kB / 410.2 MB, free: 14.23 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006231/0.2962, allocations: 0.5369 MB / 410.8 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003055/0.2965, allocations: 252.3 kB / 411 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.768e-05/0.2965, allocations: 8 kB / 411 MB, free: 13.38 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001231/0.2967, allocations: 15.98 kB / 411.1 MB, free: 13.37 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.581e-05/0.2968, allocations: 27.91 kB / 411.1 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.598e-05/0.2968, allocations: 59.94 kB / 411.1 MB, free: 13.28 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004205/0.2973, allocations: 390.9 kB / 411.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2973, allocations: 0 / 411.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002718/0.2975, allocations: 40 kB / 411.6 MB, free: 12.86 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.0008637/0.2984, allocations: 1.101 MB / 412.7 MB, free: 11.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000521/0.2989, allocations: 437.5 kB / 413.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.115e-06/0.299, allocations: 4.062 kB / 413.1 MB, free: 11.23 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003273/0.2993, allocations: 377.6 kB / 413.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006066/0.2999, allocations: 119.3 kB / 413.6 MB, free: 10.71 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003071/0.303, allocations: 2.749 MB / 416.3 MB, free: 7.844 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003761/0.3034, allocations: 0.8095 MB / 417.1 MB, free: 7.012 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.935e-05/0.3034, allocations: 12.66 kB / 417.1 MB, free: 7 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.489e-05/0.3035, allocations: 31.42 kB / 417.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3035, allocations: 0 / 417.2 MB, free: 6.969 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.804/3.107, allocations: 6.116 MB / 423.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/17.05, allocations: 3.453 kB / 423.3 MB, free: 0.8633 MB / 334.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,nXFERGATE.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,nXFERGATE.enable,nXFERGATE.tHL,nXFERGATE.tLH,nXFERGATE.x,nXFERGATE.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