Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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.001301/0.001301, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001557/0.001557, allocations: 188.2 kB / 23.72 MB, free: 4.684 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.397/1.397, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001618/0.001618, allocations: 51.91 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2594/0.261, allocations: 52.18 MB / 422.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.00272/0.2637, allocations: 1.517 MB / 424.1 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.2657, allocations: 0.8576 MB / 425 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.213e-05/0.2657, allocations: 4 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.435e-05/0.2658, allocations: 7.922 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.053e-05/0.2659, allocations: 19.81 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002754/0.2662, allocations: 51.88 kB / 425.1 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002358/0.2664, allocations: 127.8 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2665, allocations: 20.22 kB / 425.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007219/0.2673, allocations: 0.5848 MB / 425.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002088/0.2675, allocations: 71.75 kB / 425.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.537e-05/0.2675, allocations: 8 kB / 425.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.691e-05/0.2676, allocations: 12 kB / 425.9 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001026/0.2677, allocations: 67.69 kB / 426 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.2678, allocations: 111.2 kB / 426.1 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004894/0.2683, allocations: 378.8 kB / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.2683, allocations: 0 / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.485e-06/0.2683, allocations: 0 / 426.4 MB, free: 10.76 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.186e-05/0.2683, allocations: 4 kB / 426.5 MB, free: 10.75 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.001088/0.2694, allocations: 0.6552 MB / 427.1 MB, free: 10.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.2694, allocations: 12.03 kB / 427.1 MB, free: 10.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.42e-05/0.2695, allocations: 38.73 kB / 427.2 MB, free: 9.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.519e-05/0.2696, allocations: 36.7 kB / 427.2 MB, free: 9.949 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000336/0.2699, allocations: 212.9 kB / 427.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.729e-05/0.27, allocations: 4.375 kB / 427.4 MB, free: 9.711 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.065e-05/0.27, allocations: 12.38 kB / 427.4 MB, free: 9.699 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003711/0.2704, allocations: 133.7 kB / 427.5 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.123e-05/0.2704, allocations: 4 kB / 427.6 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.766e-05/0.2704, allocations: 4 kB / 427.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.2704, allocations: 0 / 427.6 MB, free: 9.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000153/0.2706, allocations: 63.89 kB / 427.6 MB, free: 9.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008694/0.2714, allocations: 439.5 kB / 428 MB, free: 9.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.2716, allocations: 74.53 kB / 428.1 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.2718, allocations: 68.89 kB / 428.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.263e-05/0.2718, allocations: 0 / 428.2 MB, free: 8.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004075/0.2722, allocations: 206.7 kB / 428.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.333e-06/0.2722, allocations: 0 / 428.4 MB, free: 8.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.000855/0.2731, allocations: 484.2 kB / 428.9 MB, free: 8.137 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001272/0.2732, allocations: 162.2 kB / 429 MB, free: 7.941 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007074/0.2739, allocations: 0.5129 MB / 429.5 MB, free: 7.418 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.2739, allocations: 33.7 kB / 429.6 MB, free: 7.379 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.274, allocations: 105.1 kB / 429.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.481e-05/0.274, allocations: 31.8 kB / 429.7 MB, free: 7.242 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.2742, allocations: 77.56 kB / 429.8 MB, free: 7.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.2743, allocations: 330.7 kB / 430.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001285/0.2744, allocations: 59.97 kB / 430.2 MB, free: 6.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001318/0.2746, allocations: 68.92 kB / 430.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003855/0.2749, allocations: 350.2 kB / 430.6 MB, free: 6.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.275, allocations: 3.984 kB / 430.6 MB, free: 6.301 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006366/0.2756, allocations: 384.3 kB / 430.9 MB, free: 5.895 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001156/0.2757, allocations: 126.2 kB / 431.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.2757, allocations: 0 / 431.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.2757, allocations: 0 / 431.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.575e-05/0.2758, allocations: 0 / 431.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2758, allocations: 4 kB / 431.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001512/0.2759, allocations: 15.98 kB / 431.1 MB, free: 5.73 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.249e-05/0.276, allocations: 59.97 kB / 431.1 MB, free: 5.672 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.0004332/0.2764, allocations: 366.5 kB / 431.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-05/0.2765, allocations: 39.77 kB / 431.5 MB, free: 5.242 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001141/0.2766, allocations: 71.02 kB / 431.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2766, allocations: 0 / 431.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.146e-06/0.2766, allocations: 4 kB / 431.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.2766, allocations: 112 / 431.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001052/0.2777, allocations: 0.7851 MB / 432.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.607e-06/0.2777, allocations: 8 kB / 432.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.579e-06/0.2777, allocations: 0 / 432.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.634e-06/0.2777, allocations: 0 / 432.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.047e-05/0.2777, allocations: 16.19 kB / 432.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.2777, allocations: 7.984 kB / 432.4 MB, free: 4.273 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.2777, allocations: 3.938 kB / 432.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006598/0.2784, allocations: 0.5293 MB / 433 MB, free: 3.699 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003877/0.2788, allocations: 213.3 kB / 433.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.396e-05/0.2788, allocations: 16 kB / 433.2 MB, free: 3.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.279, allocations: 8 kB / 433.2 MB, free: 3.469 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/0.2791, allocations: 31.91 kB / 433.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.685e-05/0.2791, allocations: 55.94 kB / 433.3 MB, free: 3.383 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004714/0.2796, allocations: 390.9 kB / 433.7 MB, free: 3 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2796, allocations: 0 / 433.7 MB, free: 3 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.2799, allocations: 44 kB / 433.7 MB, free: 2.957 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.001069/0.2809, allocations: 1.095 MB / 434.8 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005377/0.2815, allocations: 381.5 kB / 435.2 MB, free: 1.391 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.2815, allocations: 3.938 kB / 435.2 MB, free: 1.387 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000313/0.2818, allocations: 305.5 kB / 435.5 MB, free: 1.039 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.2824, allocations: 118.4 kB / 435.6 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003517/0.2859, allocations: 2.745 MB / 438.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/0.2864, allocations: 0.802 MB / 439.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.298e-05/0.2865, allocations: 12.64 kB / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.866e-05/0.2865, allocations: 27.42 kB / 439.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2865, allocations: 0 / 439.2 MB, free: 13.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.3225, allocations: 6.215 MB / 445.4 MB, free: 7.051 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/11.58, allocations: 2.969 kB / 445.4 MB, free: 7.051 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --stepSize=0.0023933 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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: 13.944370675133541]