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.001824/0.001824, allocations: 108 kB / 20.43 MB, free: 1.473 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.001667/0.001667, allocations: 186.2 kB / 23.71 MB, free: 4.719 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.433/1.433, 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.001528/0.001528, allocations: 47.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.273/0.2745, allocations: 52.18 MB / 422.6 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NRXFER): time 0.002731/0.2772, allocations: 1.525 MB / 424.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001925/0.2791, allocations: 0.8576 MB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.764e-05/0.2792, allocations: 0 / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.811e-05/0.2793, allocations: 7.938 kB / 425 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.188e-05/0.2794, allocations: 19.84 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002503/0.2796, allocations: 55.89 kB / 425.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002081/0.2798, allocations: 131.7 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.152e-05/0.2799, allocations: 16.22 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006545/0.2806, allocations: 0.5771 MB / 425.8 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001535/0.2807, allocations: 75.7 kB / 425.9 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.829e-05/0.2808, allocations: 12 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.799e-05/0.2808, allocations: 8 kB / 425.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.928e-05/0.2809, allocations: 67.7 kB / 426 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001239/0.281, allocations: 115.1 kB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003939/0.2814, allocations: 370.8 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.2814, allocations: 4 kB / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2814, allocations: 0 / 426.4 MB, free: 10.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.015e-05/0.2814, allocations: 0 / 426.4 MB, free: 10.79 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.0007664/0.2822, allocations: 0.663 MB / 427.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.2822, allocations: 8.031 kB / 427.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.04e-05/0.2823, allocations: 42.73 kB / 427.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.37e-05/0.2823, allocations: 40.7 kB / 427.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.2826, allocations: 212.9 kB / 427.4 MB, free: 9.734 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.2827, allocations: 4.375 kB / 427.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.906e-05/0.2827, allocations: 12.38 kB / 427.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002988/0.283, allocations: 125.7 kB / 427.5 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.283, allocations: 3.938 kB / 427.5 MB, free: 9.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.214e-05/0.283, allocations: 8 kB / 427.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.283, allocations: 0 / 427.6 MB, free: 9.578 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001395/0.2832, allocations: 59.97 kB / 427.6 MB, free: 9.52 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006812/0.2838, allocations: 435.5 kB / 428 MB, free: 9.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001857/0.284, allocations: 82.48 kB / 428.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001332/0.2842, allocations: 60.89 kB / 428.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.086e-05/0.2842, allocations: 0 / 428.2 MB, free: 8.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003631/0.2845, allocations: 210.6 kB / 428.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.293e-06/0.2845, allocations: 0 / 428.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008103/0.2853, allocations: 482.9 kB / 428.9 MB, free: 8.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001165/0.2855, allocations: 174.2 kB / 429 MB, free: 7.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006544/0.2861, allocations: 0.5168 MB / 429.5 MB, free: 7.434 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.2861, allocations: 29.7 kB / 429.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.702e-05/0.2862, allocations: 101.1 kB / 429.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.932e-05/0.2863, allocations: 23.81 kB / 429.7 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.2864, allocations: 89.55 kB / 429.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.2866, allocations: 322.8 kB / 430.1 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000129/0.2867, allocations: 55.97 kB / 430.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.2868, allocations: 81.62 kB / 430.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003703/0.2872, allocations: 335.3 kB / 430.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2872, allocations: 0 / 430.6 MB, free: 6.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005525/0.2877, allocations: 388.3 kB / 430.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.869e-05/0.2878, allocations: 129 kB / 431.1 MB, free: 5.773 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.482e-06/0.2878, allocations: 3.984 kB / 431.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.445e-05/0.2879, allocations: 4 kB / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.76e-05/0.2879, allocations: 0 / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.2879, allocations: 4.031 kB / 431.1 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001195/0.288, allocations: 11.98 kB / 431.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.356e-05/0.2881, allocations: 55.94 kB / 431.1 MB, free: 5.695 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.0003603/0.2884, allocations: 366.5 kB / 431.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.209e-05/0.2885, allocations: 43.77 kB / 431.5 MB, free: 5.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001101/0.2886, allocations: 59.09 kB / 431.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.2886, allocations: 0 / 431.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2886, allocations: 0 / 431.6 MB, free: 5.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.2886, allocations: 7.984 kB / 431.6 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009743/0.2896, allocations: 0.7969 MB / 432.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.547e-06/0.2896, allocations: 3.984 kB / 432.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.228e-06/0.2896, allocations: 0 / 432.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.2896, allocations: 0 / 432.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/0.2896, allocations: 12 kB / 432.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.2896, allocations: 0 / 432.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.2896, allocations: 4.125 kB / 432.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006773/0.2903, allocations: 0.5442 MB / 433 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003906/0.2907, allocations: 217.3 kB / 433.2 MB, free: 3.508 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.38e-05/0.2908, allocations: 8 kB / 433.2 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001269/0.2909, allocations: 11.98 kB / 433.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.291, allocations: 27.91 kB / 433.2 MB, free: 3.461 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.433e-05/0.2911, allocations: 59.94 kB / 433.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004796/0.2915, allocations: 390.9 kB / 433.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2915, allocations: 0 / 433.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002799/0.2918, allocations: 40 kB / 433.7 MB, free: 2.98 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.001008/0.2928, allocations: 1.1 MB / 434.8 MB, free: 1.828 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0004974/0.2933, allocations: 369.5 kB / 435.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2933, allocations: 3.938 kB / 435.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000287/0.2936, allocations: 297.6 kB / 435.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005918/0.2942, allocations: 124.6 kB / 435.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003476/0.2977, allocations: 2.756 MB / 438.3 MB, free: 14.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.2982, allocations: 0.806 MB / 439.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.476e-05/0.2983, allocations: 4.656 kB / 439.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.158e-05/0.2983, allocations: 31.42 kB / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of SimCode: time 3e-07/0.2983, allocations: 0 / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03171/0.33, allocations: 6.213 MB / 445.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/11.09, allocations: 6.641 kB / 445.4 MB, free: 7.07 MB / 350.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0023933 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.csv","/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] "Error: Could not read variable nRXFERGATE.y in file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.csv. Warning: Get data of variable nRXFERGATE.y from file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.580342970999482]