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.001326/0.001326, allocations: 107.5 kB / 20.43 MB, free: 1.066 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.001436/0.001436, allocations: 187.5 kB / 23.7 MB, free: 4.188 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.378/1.378, allocations: 225.7 MB / 252.5 MB, free: 12.85 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.001494/0.001494, allocations: 43.92 kB / 370.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2585/0.26, allocations: 52.19 MB / 422.6 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002958/0.2629, allocations: 1.47 MB / 424 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.2649, allocations: 0.8109 MB / 424.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.585e-05/0.265, allocations: 0 / 424.9 MB, free: 12.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001015/0.2651, allocations: 11.92 kB / 424.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.041e-05/0.2651, allocations: 19.81 kB / 424.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00029/0.2654, allocations: 51.88 kB / 424.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002103/0.2657, allocations: 123.8 kB / 425.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001153/0.2658, allocations: 24.2 kB / 425.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007129/0.2665, allocations: 0.581 MB / 425.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001536/0.2666, allocations: 75.67 kB / 425.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.603e-05/0.2667, allocations: 8 kB / 425.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.413e-05/0.2667, allocations: 8 kB / 425.7 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.344e-05/0.2668, allocations: 67.7 kB / 425.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001091/0.2669, allocations: 79.36 kB / 425.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004061/0.2673, allocations: 380.1 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2673, allocations: 4 kB / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2673, allocations: 0 / 426.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2673, allocations: 4 kB / 426.3 MB, free: 10.67 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.0008042/0.2681, allocations: 0.6552 MB / 426.9 MB, free: 9.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/0.2682, allocations: 8.031 kB / 426.9 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.903e-05/0.2682, allocations: 42.75 kB / 427 MB, free: 9.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.422e-05/0.2683, allocations: 36.7 kB / 427 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003076/0.2686, allocations: 212.9 kB / 427.2 MB, free: 9.633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.933e-05/0.2686, allocations: 8.375 kB / 427.2 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.2686, allocations: 8.375 kB / 427.2 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003985/0.269, allocations: 248.5 kB / 427.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.877e-06/0.2691, allocations: 0 / 427.5 MB, free: 9.344 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.187e-05/0.2691, allocations: 4 kB / 427.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.2691, allocations: 4 kB / 427.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002214/0.2693, allocations: 178.8 kB / 427.7 MB, free: 9.137 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007361/0.27, allocations: 419.5 kB / 428.1 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002506/0.2703, allocations: 189.3 kB / 428.3 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002255/0.2705, allocations: 183.7 kB / 428.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.147e-05/0.2705, allocations: 0 / 428.4 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004659/0.271, allocations: 333.4 kB / 428.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.302e-06/0.271, allocations: 0 / 428.8 MB, free: 7.883 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.001001/0.272, allocations: 0.7049 MB / 429.5 MB, free: 7.098 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001143/0.2721, allocations: 174.2 kB / 429.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006711/0.2728, allocations: 0.5207 MB / 430.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.108e-05/0.2728, allocations: 29.7 kB / 430.2 MB, free: 6.324 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.165e-05/0.2729, allocations: 101.1 kB / 430.3 MB, free: 6.223 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.744e-05/0.2729, allocations: 23.81 kB / 430.3 MB, free: 6.199 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.273, allocations: 89.48 kB / 430.4 MB, free: 6.105 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000159/0.2732, allocations: 326.8 kB / 430.7 MB, free: 5.777 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002106/0.2734, allocations: 178.8 kB / 430.9 MB, free: 5.578 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000222/0.2736, allocations: 196.5 kB / 431.1 MB, free: 5.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003916/0.274, allocations: 354.8 kB / 431.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.274, allocations: 4 kB / 431.4 MB, free: 4.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000652/0.2747, allocations: 0.4991 MB / 431.9 MB, free: 4.398 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.619e-05/0.2748, allocations: 130.8 kB / 432.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.138e-06/0.2748, allocations: 0 / 432.1 MB, free: 4.246 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.2748, allocations: 4 kB / 432.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.756e-05/0.2748, allocations: 0 / 432.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.639e-06/0.2748, allocations: 0 / 432.1 MB, free: 4.242 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001207/0.2749, allocations: 11.98 kB / 432.1 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.809e-05/0.275, allocations: 55.94 kB / 432.1 MB, free: 4.176 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.0003672/0.2754, allocations: 366.5 kB / 432.5 MB, free: 3.785 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.554e-05/0.2754, allocations: 47.7 kB / 432.5 MB, free: 3.738 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.2756, allocations: 59.09 kB / 432.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.2756, allocations: 0 / 432.6 MB, free: 3.676 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.574e-06/0.2756, allocations: 3.984 kB / 432.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2756, allocations: 0 / 432.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001102/0.2767, allocations: 0.8896 MB / 433.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.2767, allocations: 3.984 kB / 433.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.258e-06/0.2767, allocations: 0 / 433.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.2767, allocations: 0 / 433.5 MB, free: 2.68 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.923e-05/0.2767, allocations: 16 kB / 433.5 MB, free: 2.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-06/0.2767, allocations: 4.125 kB / 433.5 MB, free: 2.66 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.582e-06/0.2767, allocations: 7.938 kB / 433.5 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007749/0.2775, allocations: 0.657 MB / 434.2 MB, free: 1.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004111/0.2779, allocations: 209.3 kB / 434.4 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.48e-05/0.278, allocations: 11.98 kB / 434.4 MB, free: 1.715 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.2781, allocations: 8 kB / 434.4 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001043/0.2782, allocations: 35.89 kB / 434.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.931e-05/0.2783, allocations: 55.94 kB / 434.5 MB, free: 1.617 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004762/0.2787, allocations: 390.9 kB / 434.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2787, allocations: 3.938 kB / 434.9 MB, free: 1.234 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002764/0.279, allocations: 44 kB / 434.9 MB, free: 1.191 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.001185/0.2802, allocations: 1.216 MB / 436.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006821/0.2809, allocations: 0.6085 MB / 436.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2809, allocations: 0 / 436.7 MB, free: 15.2 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003895/0.2813, allocations: 424.3 kB / 437.2 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006164/0.2819, allocations: 123.6 kB / 437.3 MB, free: 14.6 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004011/0.2859, allocations: 3.356 MB / 440.6 MB, free: 11.01 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002618/0.2862, allocations: 197.6 kB / 440.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.02e-05/0.2862, allocations: 12.64 kB / 440.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.958e-05/0.2863, allocations: 27.42 kB / 440.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of SimCode: time 3.9e-07/0.2863, allocations: 0 / 440.9 MB, free: 10.75 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03748/0.3237, allocations: 6.968 MB / 447.8 MB, free: 3.859 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.28, allocations: 4 kB / 447.8 MB, free: 3.855 MB / 350.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/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] "Error: Could not read variable nXFERGATE.y in file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv. Warning: Get data of variable nXFERGATE.y from file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.711825470905751]