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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001433/0.001433, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001656/0.001656, allocations: 180.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 47.92 kB / 370.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2732/0.2749, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002931/0.2779, allocations: 1.516 MB / 424.1 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.2798, allocations: 0.8499 MB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.607e-05/0.2799, allocations: 4 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001086/0.28, allocations: 19.8 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.906e-05/0.2801, allocations: 23.84 kB / 425 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002889/0.2804, allocations: 47.89 kB / 425.1 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002142/0.2806, allocations: 131.7 kB / 425.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001431/0.2807, allocations: 16.22 kB / 425.2 MB, free: 11.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007107/0.2814, allocations: 0.5771 MB / 425.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001488/0.2816, allocations: 75.69 kB / 425.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.985e-05/0.2816, allocations: 12 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.89e-05/0.2817, allocations: 8 kB / 425.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.793e-05/0.2818, allocations: 67.77 kB / 426 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.2819, allocations: 115.1 kB / 426.1 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000397/0.2823, allocations: 374.8 kB / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.2823, allocations: 0 / 426.4 MB, free: 10.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2823, allocations: 4 kB / 426.4 MB, free: 10.74 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.2823, allocations: 0 / 426.4 MB, free: 10.74 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.0009299/0.2832, allocations: 0.6591 MB / 427.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.2833, allocations: 8.031 kB / 427.1 MB, free: 10.02 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.1e-05/0.2833, allocations: 34.75 kB / 427.1 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.813e-05/0.2834, allocations: 44.7 kB / 427.2 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002916/0.2837, allocations: 220.8 kB / 427.4 MB, free: 9.691 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.2837, allocations: 8.375 kB / 427.4 MB, free: 9.684 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.615e-05/0.2837, allocations: 8.375 kB / 427.4 MB, free: 9.676 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003075/0.284, allocations: 129.5 kB / 427.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.033e-05/0.284, allocations: 0 / 427.6 MB, free: 9.547 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.961e-05/0.2841, allocations: 7.938 kB / 427.6 MB, free: 9.539 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.2841, allocations: 7.984 kB / 427.6 MB, free: 9.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001425/0.2842, allocations: 63.91 kB / 427.6 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007071/0.2849, allocations: 439.5 kB / 428.1 MB, free: 8.996 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001875/0.2851, allocations: 70.55 kB / 428.1 MB, free: 8.918 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/0.2853, allocations: 60.89 kB / 428.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.073e-05/0.2853, allocations: 3.938 kB / 428.2 MB, free: 8.852 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003773/0.2857, allocations: 202.7 kB / 428.4 MB, free: 8.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.2857, allocations: 4 kB / 428.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008648/0.2866, allocations: 480.3 kB / 428.9 MB, free: 8.125 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.2867, allocations: 166.2 kB / 429 MB, free: 7.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007688/0.2875, allocations: 0.5168 MB / 429.5 MB, free: 7.398 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.239e-05/0.2875, allocations: 33.7 kB / 429.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.66e-05/0.2876, allocations: 97.12 kB / 429.7 MB, free: 7.262 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.272e-05/0.2876, allocations: 27.8 kB / 429.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001132/0.2877, allocations: 81.56 kB / 429.8 MB, free: 7.148 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001551/0.2879, allocations: 330.8 kB / 430.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001288/0.288, allocations: 55.97 kB / 430.2 MB, free: 6.762 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000132/0.2881, allocations: 77.61 kB / 430.2 MB, free: 6.68 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003577/0.2885, allocations: 347.2 kB / 430.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2885, allocations: 0 / 430.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005439/0.2891, allocations: 380.3 kB / 430.9 MB, free: 5.883 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.978e-05/0.2892, allocations: 122.8 kB / 431.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.92e-06/0.2892, allocations: 4.031 kB / 431.1 MB, free: 5.734 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.525e-05/0.2892, allocations: 7.938 kB / 431.1 MB, free: 5.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.077e-05/0.2892, allocations: 4 kB / 431.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.2892, allocations: 0 / 431.1 MB, free: 5.723 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001235/0.2893, allocations: 8 kB / 431.1 MB, free: 5.715 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.397e-05/0.2894, allocations: 59.92 kB / 431.1 MB, free: 5.656 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.0004685/0.2899, allocations: 366.5 kB / 431.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.411e-05/0.2899, allocations: 39.77 kB / 431.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001145/0.29, allocations: 67.09 kB / 431.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.073e-06/0.29, allocations: 112 / 431.6 MB, free: 5.156 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.29, allocations: 3.938 kB / 431.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.29, allocations: 0 / 431.6 MB, free: 5.152 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001063/0.2911, allocations: 0.7961 MB / 432.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2911, allocations: 192 / 432.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.494e-06/0.2911, allocations: 4 kB / 432.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.2911, allocations: 0 / 432.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.939e-05/0.2911, allocations: 19.98 kB / 432.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.2911, allocations: 0 / 432.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.796e-06/0.2912, allocations: 7.938 kB / 432.4 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007831/0.2919, allocations: 0.5371 MB / 433 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003939/0.2923, allocations: 209.3 kB / 433.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.245e-05/0.2924, allocations: 12 kB / 433.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.2925, allocations: 11.98 kB / 433.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.2926, allocations: 23.92 kB / 433.2 MB, free: 3.426 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.673e-05/0.2927, allocations: 63.86 kB / 433.3 MB, free: 3.363 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004802/0.2932, allocations: 386.9 kB / 433.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2932, allocations: 0 / 433.7 MB, free: 2.984 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000289/0.2935, allocations: 48 kB / 433.7 MB, free: 2.938 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.001216/0.2947, allocations: 1.082 MB / 434.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005455/0.2952, allocations: 377.5 kB / 435.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.2952, allocations: 4.062 kB / 435.2 MB, free: 1.383 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003227/0.2955, allocations: 305.6 kB / 435.5 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000638/0.2962, allocations: 128 kB / 435.6 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004016/0.3002, allocations: 2.749 MB / 438.3 MB, free: 14.06 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005564/0.3008, allocations: 0.806 MB / 439.1 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001591/0.3009, allocations: 12.66 kB / 439.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.725e-05/0.301, allocations: 23.44 kB / 439.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of SimCode: time 8.01e-07/0.301, allocations: 0 / 439.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03893/0.3399, allocations: 6.209 MB / 445.4 MB, free: 7.043 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.53, allocations: 19.8 kB / 445.4 MB, free: 7.023 MB / 350.1 MB " [Timeout remaining time 648] (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 --stepSize=0.0023933 --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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.011169171892107]