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.001511/0.001511, allocations: 117.7 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001261/0.001261, allocations: 204.6 kB / 18.73 MB, free: 4.316 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.315/1.315, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.2864, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.003847/0.2903, allocations: 1.511 MB / 410.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002979/0.2933, allocations: 0.8834 MB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.2934, allocations: 7.938 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001061/0.2935, allocations: 3.938 kB / 411.2 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.735e-05/0.2936, allocations: 15.86 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003097/0.2939, allocations: 55.81 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002699/0.2942, allocations: 139.8 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001346/0.2944, allocations: 24.2 kB / 411.4 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008194/0.2952, allocations: 0.5654 MB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000182/0.2954, allocations: 79.69 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.959e-05/0.2954, allocations: 8 kB / 412 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.952e-05/0.2955, allocations: 16 kB / 412.1 MB, free: 14.22 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.2956, allocations: 63.7 kB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001737/0.2958, allocations: 111.2 kB / 412.2 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004991/0.2963, allocations: 378.6 kB / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.2963, allocations: 0 / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2963, allocations: 0 / 412.6 MB, free: 13.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.923e-06/0.2964, allocations: 0 / 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.001023/0.2974, allocations: 0.7166 MB / 413.3 MB, free: 12.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.2975, allocations: 12.03 kB / 413.3 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.205e-05/0.2975, allocations: 38.75 kB / 413.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.663e-05/0.2976, allocations: 44.5 kB / 413.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003929/0.298, allocations: 274.2 kB / 413.7 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.812e-05/0.2981, allocations: 12.38 kB / 413.7 MB, free: 12.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.997e-05/0.2981, allocations: 8.375 kB / 413.7 MB, free: 12.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000415/0.2986, allocations: 137.2 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.034e-05/0.2986, allocations: 0 / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.2986, allocations: 4 kB / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.049e-06/0.2986, allocations: 0 / 413.8 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.2988, allocations: 55.97 kB / 413.9 MB, free: 12.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008018/0.2996, allocations: 472.4 kB / 414.4 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.2999, allocations: 94.55 kB / 414.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000224/0.3001, allocations: 80.89 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.331e-05/0.3002, allocations: 4 kB / 414.5 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004926/0.3007, allocations: 214.6 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.924e-06/0.3007, allocations: 3.938 kB / 414.7 MB, free: 11.33 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.001115/0.3018, allocations: 471.9 kB / 415.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.3019, allocations: 166.2 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009396/0.3029, allocations: 0.5168 MB / 415.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.436e-05/0.3029, allocations: 33.7 kB / 415.9 MB, free: 10.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.717e-05/0.303, allocations: 97.08 kB / 416 MB, free: 9.969 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.591e-05/0.3031, allocations: 31.59 kB / 416 MB, free: 9.938 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001623/0.3033, allocations: 81.42 kB / 416.1 MB, free: 9.852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.3034, allocations: 334.8 kB / 416.4 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001991/0.3037, allocations: 55.97 kB / 416.5 MB, free: 9.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002038/0.3039, allocations: 73.67 kB / 416.6 MB, free: 9.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004877/0.3044, allocations: 347.4 kB / 416.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3044, allocations: 0 / 416.9 MB, free: 8.988 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007944/0.3052, allocations: 380.3 kB / 417.3 MB, free: 8.586 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001293/0.3053, allocations: 134.8 kB / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.101e-06/0.3054, allocations: 0 / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.531e-05/0.3054, allocations: 0 / 417.4 MB, free: 8.43 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.509e-05/0.3054, allocations: 3.938 kB / 417.4 MB, free: 8.426 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.869e-06/0.3054, allocations: 4.109 kB / 417.4 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001884/0.3056, allocations: 15.88 kB / 417.4 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.937e-05/0.3057, allocations: 59.92 kB / 417.5 MB, free: 8.348 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.0005029/0.3062, allocations: 366.8 kB / 417.9 MB, free: 7.957 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.005e-05/0.3063, allocations: 39.53 kB / 417.9 MB, free: 7.918 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001669/0.3065, allocations: 71.16 kB / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.3065, allocations: 0 / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3065, allocations: 0 / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.097e-06/0.3065, allocations: 0 / 418 MB, free: 7.844 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001386/0.3079, allocations: 0.8247 MB / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.355e-06/0.308, allocations: 0 / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.601e-06/0.308, allocations: 0 / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.308, allocations: 0 / 418.8 MB, free: 6.941 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.983e-05/0.308, allocations: 15.98 kB / 418.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.3081, allocations: 0 / 418.8 MB, free: 6.926 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/0.3081, allocations: 7.938 kB / 418.8 MB, free: 6.918 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009776/0.309, allocations: 0.5369 MB / 419.3 MB, free: 6.34 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004889/0.3096, allocations: 240.5 kB / 419.6 MB, free: 6.086 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.035e-05/0.3097, allocations: 12 kB / 419.6 MB, free: 6.074 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.3099, allocations: 11.98 kB / 419.6 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/0.31, allocations: 27.92 kB / 419.6 MB, free: 6.035 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001029/0.3102, allocations: 59.92 kB / 419.7 MB, free: 5.977 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0007542/0.3109, allocations: 390.9 kB / 420.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.3109, allocations: 0 / 420.1 MB, free: 5.598 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005004/0.3115, allocations: 47.94 kB / 420.1 MB, free: 5.551 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.00141/0.3129, allocations: 1.092 MB / 421.2 MB, free: 4.41 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007354/0.3136, allocations: 441.5 kB / 421.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.557e-06/0.3136, allocations: 0 / 421.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004536/0.3141, allocations: 373.9 kB / 422 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009193/0.315, allocations: 137.3 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.005124/0.3202, allocations: 2.742 MB / 424.9 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006162/0.3208, allocations: 0.8061 MB / 425.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.51e-05/0.3209, 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 6.145e-05/0.321, allocations: 27.42 kB / 425.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.321, allocations: 0 / 425.7 MB, free: 15.67 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03662/0.3576, allocations: 6.123 MB / 431.8 MB, free: 9.539 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.657/8.015, allocations: 4.812 kB / 431.9 MB, free: 9.535 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