Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001386/0.001386, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 215.9 kB / 23.73 MB, free: 4.16 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.516/1.516, allocations: 230.6 MB / 257.5 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 47.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2686, allocations: 53.36 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002928/0.2715, allocations: 1.494 MB / 432.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002109/0.2736, allocations: 0.8342 MB / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.369e-05/0.2737, allocations: 0 / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.773e-05/0.2738, allocations: 15.86 kB / 433.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.833e-05/0.2739, allocations: 23.84 kB / 433.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000297/0.2742, allocations: 47.89 kB / 433.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002291/0.2744, allocations: 135.7 kB / 433.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001006/0.2745, allocations: 12.22 kB / 433.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007042/0.2752, allocations: 0.581 MB / 434.2 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001537/0.2754, allocations: 67.7 kB / 434.3 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.678e-05/0.2754, allocations: 8 kB / 434.3 MB, free: 3.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.739e-05/0.2755, allocations: 12 kB / 434.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.237e-05/0.2756, allocations: 59.77 kB / 434.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000115/0.2757, allocations: 91.28 kB / 434.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004168/0.2761, allocations: 376.2 kB / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.2761, allocations: 0 / 434.8 MB, free: 2.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.2761, allocations: 3.938 kB / 434.8 MB, free: 2.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.2761, allocations: 0 / 434.8 MB, free: 2.879 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.0008578/0.277, allocations: 0.6514 MB / 435.5 MB, free: 2.172 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.35e-05/0.277, allocations: 12.03 kB / 435.5 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.208e-05/0.2771, allocations: 42.73 kB / 435.5 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.303e-05/0.2771, allocations: 36.7 kB / 435.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003351/0.2775, allocations: 220.8 kB / 435.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.046e-05/0.2775, allocations: 8.375 kB / 435.8 MB, free: 1.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.601e-05/0.2775, allocations: 8.375 kB / 435.8 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004063/0.2779, allocations: 252.5 kB / 436 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.435e-06/0.2779, allocations: 0 / 436 MB, free: 1.539 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.278, allocations: 8 kB / 436 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.419e-06/0.278, allocations: 0 / 436 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002323/0.2782, allocations: 174.8 kB / 436.2 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007547/0.2789, allocations: 415.6 kB / 436.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002658/0.2792, allocations: 193.3 kB / 436.8 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002317/0.2794, allocations: 183.7 kB / 437 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.2795, allocations: 0 / 437 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004583/0.2799, allocations: 333.6 kB / 437.3 MB, free: 84 kB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.322e-06/0.2799, allocations: 0 / 437.3 MB, free: 84 kB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.00103/0.2809, allocations: 0.7041 MB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000121/0.2811, allocations: 170.2 kB / 438.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007131/0.2818, allocations: 0.5091 MB / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.276e-05/0.2818, allocations: 29.7 kB / 438.7 MB, free: 14.54 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.612e-05/0.2819, allocations: 105.1 kB / 438.8 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.683e-05/0.2819, allocations: 35.72 kB / 438.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.2821, allocations: 81.55 kB / 438.9 MB, free: 14.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.2822, allocations: 330.8 kB / 439.3 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002185/0.2824, allocations: 174.8 kB / 439.4 MB, free: 13.79 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.2827, allocations: 196.5 kB / 439.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003942/0.2831, allocations: 351.3 kB / 440 MB, free: 13.17 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.2831, allocations: 0 / 440 MB, free: 13.17 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006801/0.2837, allocations: 0.503 MB / 440.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/0.2838, allocations: 122.8 kB / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.047e-06/0.2839, allocations: 7.984 kB / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.2839, allocations: 0 / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.882e-05/0.2839, allocations: 4.031 kB / 440.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.844e-06/0.2839, allocations: 4.062 kB / 440.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.284, allocations: 8 kB / 440.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.34e-05/0.2841, allocations: 67.86 kB / 440.7 MB, free: 12.38 MB / 350.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.0003954/0.2845, allocations: 366.5 kB / 441 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.048e-05/0.2846, allocations: 43.75 kB / 441.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.2847, allocations: 59.09 kB / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.2847, allocations: 0 / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.2847, allocations: 0 / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.2847, allocations: 4 kB / 441.1 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001147/0.2858, allocations: 0.8962 MB / 442 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2858, allocations: 0 / 442 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.555e-06/0.2858, allocations: 3.938 kB / 442 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.2858, allocations: 4 kB / 442 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.832e-05/0.2859, allocations: 15.92 kB / 442.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.2859, allocations: 0 / 442.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.16e-06/0.2859, allocations: 7.938 kB / 442.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007736/0.2866, allocations: 0.6531 MB / 442.7 MB, free: 10.13 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000415/0.2871, allocations: 209.3 kB / 442.9 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.757e-05/0.2871, allocations: 12 kB / 442.9 MB, free: 9.918 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.2873, allocations: 15.98 kB / 443 MB, free: 9.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.2874, allocations: 27.92 kB / 443 MB, free: 9.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.447e-05/0.2874, allocations: 55.98 kB / 443 MB, free: 9.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004982/0.2879, allocations: 382.9 kB / 443.4 MB, free: 9.445 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2879, allocations: 0 / 443.4 MB, free: 9.445 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.2882, allocations: 44 kB / 443.5 MB, free: 9.402 MB / 350.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.001159/0.2894, allocations: 1.221 MB / 444.7 MB, free: 8.105 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006687/0.29, allocations: 0.6085 MB / 445.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.29, allocations: 0 / 445.3 MB, free: 7.398 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003856/0.2904, allocations: 432.4 kB / 445.7 MB, free: 6.902 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000604/0.291, allocations: 121.4 kB / 445.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004116/0.2952, allocations: 3.347 MB / 449.2 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002763/0.2954, allocations: 193.7 kB / 449.4 MB, free: 3.008 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.199e-05/0.2955, allocations: 8.656 kB / 449.4 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.667e-05/0.2955, allocations: 31.42 kB / 449.4 MB, free: 2.969 MB / 350.1 MB Notification: Performance of SimCode: time 7.22e-07/0.2955, allocations: 4 kB / 449.4 MB, free: 2.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03576/0.3313, allocations: 6.975 MB / 456.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.45, allocations: 7.969 kB / 456.4 MB, free: 12.07 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_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_1_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable nXFERGATE.y in file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv. Warning: Get data of variable nXFERGATE.y from file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.080509301275015]