Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001511/0.001511, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001794/0.001794, allocations: 197.2 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.371/1.371, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001192/0.001192, allocations: 67.89 kB / 358.2 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.284, allocations: 50.53 MB / 408.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003141/0.2872, allocations: 1.511 MB / 410.3 MB, free: 32 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0018/0.289, allocations: 0.8873 MB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.161e-05/0.2891, allocations: 8 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.617e-05/0.2892, allocations: 11.92 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.157e-05/0.2893, allocations: 11.88 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002995/0.2897, allocations: 47.88 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000235/0.2899, allocations: 143.7 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001169/0.29, allocations: 20.22 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005866/0.2906, allocations: 0.5732 MB / 412 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.2908, allocations: 67.7 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.527e-05/0.2908, allocations: 12 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.728e-05/0.2908, allocations: 8 kB / 412 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.226e-05/0.2909, allocations: 67.75 kB / 412.1 MB, free: 14.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001056/0.291, allocations: 115.1 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003244/0.2914, allocations: 382.6 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.2914, allocations: 0 / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2914, allocations: 0 / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.2914, allocations: 4 kB / 412.6 MB, free: 13.68 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.0006776/0.2921, allocations: 0.7205 MB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.2921, allocations: 12.03 kB / 413.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.915e-05/0.2922, allocations: 38.73 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.676e-05/0.2923, allocations: 36.5 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002731/0.2925, allocations: 270.3 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.097e-05/0.2926, allocations: 8.375 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.349e-05/0.2926, allocations: 8.375 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003028/0.2929, allocations: 133.7 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2929, allocations: 4 kB / 413.8 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.293, allocations: 7.938 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.293, allocations: 4 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001403/0.2931, allocations: 63.89 kB / 413.9 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007125/0.2938, allocations: 460.5 kB / 414.3 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001886/0.294, allocations: 98.47 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001465/0.2942, allocations: 84.89 kB / 414.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.575e-06/0.2942, allocations: 4 kB / 414.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004156/0.2946, allocations: 202.7 kB / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.743e-06/0.2946, allocations: 0 / 414.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008193/0.2955, allocations: 479.5 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.2956, allocations: 174.1 kB / 415.4 MB, free: 10.63 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006147/0.2962, allocations: 0.5052 MB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.491e-05/0.2963, allocations: 37.7 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.206e-05/0.2963, allocations: 97.12 kB / 416 MB, free: 9.973 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.2964, allocations: 27.62 kB / 416 MB, free: 9.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001345/0.2965, allocations: 85.41 kB / 416.1 MB, free: 9.855 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.2966, allocations: 326.8 kB / 416.4 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001276/0.2968, allocations: 56.03 kB / 416.5 MB, free: 9.473 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.2969, allocations: 81.2 kB / 416.6 MB, free: 9.391 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003158/0.2972, allocations: 351.4 kB / 416.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.2973, allocations: 0 / 416.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005337/0.2978, allocations: 388.2 kB / 417.3 MB, free: 8.582 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.402e-05/0.2979, allocations: 122.8 kB / 417.4 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2979, allocations: 4 kB / 417.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.2979, allocations: 0 / 417.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.935e-05/0.2979, allocations: 0 / 417.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.298, allocations: 0 / 417.4 MB, free: 8.434 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001282/0.2981, allocations: 15.92 kB / 417.4 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.647e-05/0.2982, allocations: 63.97 kB / 417.5 MB, free: 8.355 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.0003212/0.2985, allocations: 378.6 kB / 417.9 MB, free: 7.953 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.848e-05/0.2986, allocations: 39.53 kB / 417.9 MB, free: 7.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.252e-05/0.2987, allocations: 67.14 kB / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2987, allocations: 4 kB / 418 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.2987, allocations: 0 / 418 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.2987, allocations: 112 / 418 MB, free: 7.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008801/0.2996, allocations: 0.8172 MB / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.2996, allocations: 4 kB / 418.8 MB, free: 6.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.514e-06/0.2996, allocations: 4 kB / 418.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.2996, allocations: 0 / 418.8 MB, free: 6.934 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.2996, allocations: 12 kB / 418.8 MB, free: 6.922 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.2997, allocations: 7.984 kB / 418.8 MB, free: 6.914 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.2997, allocations: 3.938 kB / 418.8 MB, free: 6.91 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006422/0.3003, allocations: 0.5325 MB / 419.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003182/0.3006, allocations: 240.5 kB / 419.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.67e-05/0.3007, allocations: 20.17 kB / 419.6 MB, free: 6.066 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001263/0.3008, allocations: 15.94 kB / 419.6 MB, free: 6.051 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.3009, allocations: 31.91 kB / 419.6 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.787e-05/0.301, allocations: 55.94 kB / 419.7 MB, free: 5.965 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004773/0.3015, allocations: 386.9 kB / 420.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3015, allocations: 0 / 420.1 MB, free: 5.59 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002925/0.3018, allocations: 48 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,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.0009225/0.3027, allocations: 1.085 MB / 421.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004845/0.3032, allocations: 441.5 kB / 421.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3032, allocations: 4 kB / 421.6 MB, free: 3.922 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003034/0.3036, allocations: 373.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.0006089/0.3042, allocations: 129.4 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.003313/0.3075, allocations: 2.746 MB / 424.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.3079, allocations: 0.7983 MB / 425.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.344e-05/0.308, 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.566e-05/0.308, allocations: 27.42 kB / 425.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of SimCode: time 4.31e-07/0.308, allocations: 0 / 425.7 MB, free: 15.68 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02434/0.3324, allocations: 6.13 MB / 431.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.516/7.849, allocations: 8.047 kB / 431.9 MB, free: 9.527 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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