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.001733/0.001733, allocations: 113.1 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.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.002259/0.002259, allocations: 217 kB / 23.75 MB, free: 4.668 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.441/1.441, allocations: 230.6 MB / 257.5 MB, free: 8.023 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.00149/0.00149, allocations: 55.91 kB / 377.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.282/0.2835, allocations: 53.36 MB / 431.1 MB, free: 6.816 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002821/0.2863, allocations: 1.518 MB / 432.7 MB, free: 5.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001989/0.2883, allocations: 0.9004 MB / 433.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.07e-05/0.2884, allocations: 0 / 433.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001048/0.2885, allocations: 11.92 kB / 433.6 MB, free: 4.375 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.993e-05/0.2886, allocations: 19.8 kB / 433.6 MB, free: 4.355 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002807/0.2888, allocations: 51.94 kB / 433.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002238/0.2891, allocations: 127.7 kB / 433.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.2892, allocations: 20.22 kB / 433.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006829/0.2899, allocations: 0.5809 MB / 434.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001586/0.29, allocations: 71.73 kB / 434.4 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.919e-05/0.2901, allocations: 12 kB / 434.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.858e-05/0.2901, allocations: 8 kB / 434.5 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.2902, allocations: 71.64 kB / 434.5 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.2903, allocations: 107.2 kB / 434.6 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004298/0.2908, allocations: 374.8 kB / 435 MB, free: 2.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2908, allocations: 4 kB / 435 MB, free: 2.941 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.2908, allocations: 0 / 435 MB, free: 2.941 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.2908, allocations: 0 / 435 MB, free: 2.941 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.0008175/0.2916, allocations: 0.6591 MB / 435.7 MB, free: 2.227 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.2916, allocations: 8.031 kB / 435.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.97e-05/0.2917, allocations: 46.69 kB / 435.7 MB, free: 2.164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.542e-05/0.2917, allocations: 36.7 kB / 435.7 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003163/0.2921, allocations: 220.8 kB / 436 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.258e-05/0.2921, allocations: 8.375 kB / 436 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.899e-05/0.2921, allocations: 8.375 kB / 436 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.2924, allocations: 129.7 kB / 436.1 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.2924, allocations: 4 kB / 436.1 MB, free: 1.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.059e-05/0.2925, allocations: 4 kB / 436.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.83e-06/0.2925, allocations: 4 kB / 436.1 MB, free: 1.727 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001371/0.2926, allocations: 59.91 kB / 436.2 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000715/0.2933, allocations: 443.5 kB / 436.6 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001761/0.2935, allocations: 74.48 kB / 436.7 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001303/0.2936, allocations: 64.89 kB / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.009e-05/0.2936, allocations: 4 kB / 436.8 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003618/0.294, allocations: 208.4 kB / 437 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.343e-06/0.294, allocations: 0 / 437 MB, free: 0.8125 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007965/0.2948, allocations: 479.2 kB / 437.4 MB, free: 324 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.2949, allocations: 166.2 kB / 437.6 MB, free: 120 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006624/0.2956, allocations: 0.5091 MB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.218e-05/0.2956, allocations: 33.7 kB / 438.1 MB, free: 15.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.899e-05/0.2957, allocations: 105.1 kB / 438.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.2957, allocations: 23.86 kB / 438.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/0.2958, allocations: 81.55 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.296, allocations: 326.8 kB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001248/0.2961, allocations: 55.97 kB / 438.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.2962, allocations: 79.3 kB / 438.8 MB, free: 14.88 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.2966, allocations: 343.3 kB / 439.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.2966, allocations: 0 / 439.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006118/0.2972, allocations: 388.3 kB / 439.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.605e-05/0.2973, allocations: 126.8 kB / 439.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.412e-06/0.2973, allocations: 4.109 kB / 439.6 MB, free: 13.93 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.2973, allocations: 3.938 kB / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.93e-05/0.2974, allocations: 0 / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.2974, allocations: 0 / 439.6 MB, free: 13.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001163/0.2975, allocations: 8 kB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.328e-05/0.2976, allocations: 63.95 kB / 439.7 MB, free: 13.85 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.0003573/0.2979, allocations: 366.5 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.066e-05/0.298, allocations: 39.77 kB / 440.1 MB, free: 13.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001042/0.2981, allocations: 67.08 kB / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2981, allocations: 0 / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.2981, allocations: 0 / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.2981, allocations: 0 / 440.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009859/0.2991, allocations: 0.789 MB / 441 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2991, allocations: 4 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.578e-06/0.2991, allocations: 0 / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2991, allocations: 4 kB / 441 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.76e-05/0.2991, allocations: 12.17 kB / 441 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.2991, allocations: 4 kB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/0.2991, allocations: 7.938 kB / 441 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006826/0.2998, allocations: 0.5401 MB / 441.5 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003785/0.3002, allocations: 205.3 kB / 441.7 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.555e-05/0.3002, allocations: 15.94 kB / 441.7 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.3003, allocations: 15.98 kB / 441.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.3005, allocations: 23.92 kB / 441.8 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.693e-05/0.3005, allocations: 63.98 kB / 441.8 MB, free: 11.56 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004707/0.301, allocations: 382.9 kB / 442.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.301, allocations: 0 / 442.2 MB, free: 11.19 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002794/0.3013, allocations: 44 kB / 442.3 MB, free: 11.15 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.001027/0.3023, allocations: 1.101 MB / 443.4 MB, free: 9.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000511/0.3028, allocations: 369.5 kB / 443.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.3028, allocations: 0 / 443.7 MB, free: 9.586 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003305/0.3031, allocations: 309.5 kB / 444 MB, free: 9.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006049/0.3038, allocations: 123 kB / 444.1 MB, free: 9.125 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003729/0.3075, allocations: 2.755 MB / 446.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005449/0.308, allocations: 0.7944 MB / 447.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.684e-05/0.3081, allocations: 12.64 kB / 447.7 MB, free: 5.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.315e-05/0.3081, allocations: 27.44 kB / 447.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of SimCode: time 1.443e-06/0.3082, allocations: 0 / 447.7 MB, free: 5.402 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03536/0.3435, allocations: 6.215 MB / 453.9 MB, free: 15.24 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.11, allocations: 2.812 kB / 453.9 MB, free: 15.24 MB / 366.1 MB " [Timeout remaining time 649] (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: 13.63258520999807]