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.001288/0.001288, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001655/0.001655, allocations: 209.2 kB / 23.73 MB, free: 4.523 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.486/1.486, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001586/0.001586, allocations: 43.92 kB / 377.7 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2819/0.2835, allocations: 53.36 MB / 431.1 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002948/0.2864, allocations: 1.487 MB / 432.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002218/0.2887, allocations: 0.8381 MB / 433.4 MB, free: 4.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.923e-05/0.2887, allocations: 3.938 kB / 433.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.2888, allocations: 11.92 kB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.422e-05/0.2889, allocations: 15.86 kB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004271/0.2894, allocations: 55.89 kB / 433.5 MB, free: 4.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002277/0.2896, allocations: 131.7 kB / 433.6 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2897, allocations: 16.22 kB / 433.6 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007315/0.2904, allocations: 0.5732 MB / 434.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001742/0.2906, allocations: 83.62 kB / 434.3 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.538e-05/0.2907, allocations: 8 kB / 434.3 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.22e-05/0.2907, allocations: 12 kB / 434.3 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001085/0.2908, allocations: 63.7 kB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.2909, allocations: 87.34 kB / 434.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004484/0.2914, allocations: 378.8 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.2914, allocations: 0 / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.2914, allocations: 0 / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.231e-05/0.2914, allocations: 0 / 434.8 MB, free: 2.898 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.0009759/0.2924, allocations: 0.6591 MB / 435.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.059e-05/0.2924, allocations: 8.031 kB / 435.5 MB, free: 2.176 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.857e-05/0.2925, allocations: 38.75 kB / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.594e-05/0.2925, allocations: 40.7 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003227/0.2929, allocations: 216.8 kB / 435.8 MB, free: 1.852 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.2929, allocations: 12.38 kB / 435.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.756e-05/0.2929, allocations: 4.375 kB / 435.8 MB, free: 1.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004108/0.2933, allocations: 248.5 kB / 436 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.2933, allocations: 7.938 kB / 436 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.152e-05/0.2934, allocations: 0 / 436 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2934, allocations: 4 kB / 436.1 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/0.2936, allocations: 174.8 kB / 436.2 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008652/0.2945, allocations: 415.6 kB / 436.6 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.2947, allocations: 197.3 kB / 436.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002641/0.295, allocations: 183.7 kB / 437 MB, free: 484 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.251e-05/0.295, allocations: 4 kB / 437 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006404/0.2957, allocations: 329.6 kB / 437.3 MB, free: 100 kB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.552e-06/0.2957, allocations: 0 / 437.3 MB, free: 100 kB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.001275/0.2969, allocations: 0.7078 MB / 438 MB, free: 15.31 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001481/0.2971, allocations: 174.1 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007262/0.2978, allocations: 0.5052 MB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.798e-05/0.2979, allocations: 33.7 kB / 438.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.636e-05/0.298, allocations: 101.1 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.315e-05/0.298, allocations: 23.86 kB / 438.9 MB, free: 14.43 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/0.2981, allocations: 85.55 kB / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001734/0.2983, allocations: 330.8 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002149/0.2985, allocations: 182.7 kB / 439.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002228/0.2987, allocations: 196.4 kB / 439.6 MB, free: 13.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00041/0.2991, allocations: 347.3 kB / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.2991, allocations: 0 / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007026/0.2998, allocations: 0.5069 MB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001434/0.3, allocations: 126.8 kB / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.3, allocations: 0 / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.684e-05/0.3, allocations: 0 / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.178e-05/0.3, allocations: 4.031 kB / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.887e-06/0.3, allocations: 4 kB / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001535/0.3002, allocations: 15.98 kB / 440.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.749e-05/0.3003, allocations: 55.94 kB / 440.7 MB, free: 12.39 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.0005392/0.3008, allocations: 358.5 kB / 441 MB, free: 12.01 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.748e-05/0.3009, allocations: 39.77 kB / 441.1 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001075/0.301, allocations: 71.06 kB / 441.1 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.301, allocations: 4 kB / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.994e-06/0.301, allocations: 3.984 kB / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.301, allocations: 4 kB / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.3022, allocations: 0.8817 MB / 442 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.512e-06/0.3022, allocations: 7.984 kB / 442 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.37e-06/0.3022, allocations: 0 / 442 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.515e-06/0.3022, allocations: 0 / 442 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.3022, allocations: 12 kB / 442.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.3022, allocations: 0 / 442.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/0.3022, allocations: 4.125 kB / 442.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008977/0.3031, allocations: 0.6639 MB / 442.7 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004564/0.3036, allocations: 209.4 kB / 442.9 MB, free: 9.953 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.391e-05/0.3037, allocations: 19.98 kB / 443 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.3038, allocations: 12 kB / 443 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001297/0.3039, allocations: 31.91 kB / 443 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.373e-05/0.304, allocations: 52 kB / 443 MB, free: 9.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005585/0.3046, allocations: 390.9 kB / 443.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3046, allocations: 0 / 443.4 MB, free: 9.461 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.3049, allocations: 44 kB / 443.5 MB, free: 9.418 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.001368/0.3063, allocations: 1.209 MB / 444.7 MB, free: 8.133 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007545/0.307, allocations: 0.6046 MB / 445.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/0.307, allocations: 64 / 445.3 MB, free: 7.43 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003985/0.3074, allocations: 432.4 kB / 445.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006344/0.308, allocations: 118.7 kB / 445.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00451/0.3126, allocations: 3.356 MB / 449.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002711/0.3128, allocations: 193.7 kB / 449.4 MB, free: 3.027 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.574e-05/0.3129, allocations: 8.656 kB / 449.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7e-05/0.3129, allocations: 27.42 kB / 449.4 MB, free: 2.992 MB / 350.1 MB Notification: Performance of SimCode: time 7.42e-07/0.3129, allocations: 4 kB / 449.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03665/0.3496, allocations: 6.987 MB / 456.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.45, allocations: 14.31 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --stepSize=0.0023933 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.868993872980354]