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.001011/0.001011, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008751/0.0008751, allocations: 157.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8664/0.8664, allocations: 173.4 MB / 200.4 MB, free: 9.422 MB / 186.7 MB " [Timeout remaining time 179] 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 1.883e-06/1.883e-06, allocations: 0 / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.573e-05/1.761e-05, allocations: 10.22 kB / 318.4 MB, free: 6.344 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.00176/0.001778, allocations: 1.452 MB / 319.9 MB, free: 4.879 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001296/0.003074, allocations: 0.8069 MB / 320.7 MB, free: 4.066 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.416e-05/0.003138, allocations: 4 kB / 320.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 9.767e-05/0.003236, allocations: 11.86 kB / 320.7 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.035e-05/0.003306, allocations: 19.86 kB / 320.7 MB, free: 4.031 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002598/0.003566, allocations: 55.81 kB / 320.8 MB, free: 3.977 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001648/0.003731, allocations: 127.7 kB / 320.9 MB, free: 3.852 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.41e-05/0.003825, allocations: 20.22 kB / 320.9 MB, free: 3.828 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004385/0.004264, allocations: 0.5966 MB / 321.5 MB, free: 3.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.004374, allocations: 71.75 kB / 321.6 MB, free: 3.16 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.21e-05/0.004406, allocations: 8 kB / 321.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.032e-05/0.004426, allocations: 12 kB / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.367e-05/0.0045, allocations: 63.72 kB / 321.7 MB, free: 3.078 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 7.169e-05/0.004571, allocations: 55.78 kB / 321.7 MB, free: 3.023 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002672/0.004838, allocations: 374.8 kB / 322.1 MB, free: 2.656 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.00484, allocations: 7.938 kB / 322.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.004841, allocations: 0 / 322.1 MB, free: 2.648 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.9e-06/0.004846, allocations: 0 / 322.1 MB, free: 2.648 MB / 282.7 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.000543/0.005389, allocations: 0.6507 MB / 322.8 MB, free: 1.945 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.005428, allocations: 16.91 kB / 322.8 MB, free: 1.93 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.544e-05/0.005463, allocations: 38.75 kB / 322.8 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.507e-05/0.005508, allocations: 36.7 kB / 322.8 MB, free: 1.848 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000195/0.005703, allocations: 220 kB / 323.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.00572, allocations: 8.375 kB / 323.1 MB, free: 1.598 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.729e-05/0.005738, allocations: 4.375 kB / 323.1 MB, free: 1.594 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000261/0.005999, allocations: 249 kB / 323.3 MB, free: 1.32 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.006007, allocations: 192 / 323.3 MB, free: 1.32 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.345e-05/0.00603, allocations: 12.12 kB / 323.3 MB, free: 1.309 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.336e-06/0.006039, allocations: 7.938 kB / 323.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.006171, allocations: 178.8 kB / 323.5 MB, free: 1.102 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004638/0.006635, allocations: 407.7 kB / 323.9 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000168/0.006803, allocations: 201.2 kB / 324.1 MB, free: 440 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001206/0.006924, allocations: 179.7 kB / 324.3 MB, free: 232 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.05e-05/0.006934, allocations: 0 / 324.3 MB, free: 232 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.007222, allocations: 337.4 kB / 324.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.192e-06/0.007224, allocations: 0 / 324.6 MB, free: 15.85 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.000619/0.007843, allocations: 0.6998 MB / 325.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.168e-05/0.007914, allocations: 178.2 kB / 325.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005888/0.008503, allocations: 0.5052 MB / 326 MB, free: 14.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.981e-05/0.008523, allocations: 29.7 kB / 326 MB, free: 14.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.787e-05/0.008571, allocations: 101.1 kB / 326.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.008599, allocations: 35.69 kB / 326.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.968e-05/0.008669, allocations: 81.55 kB / 326.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.389e-05/0.008743, allocations: 322.8 kB / 326.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.008857, allocations: 174.8 kB / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.008985, allocations: 196.5 kB / 326.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.009191, allocations: 359.3 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.009193, allocations: 4 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003466/0.00954, allocations: 0.503 MB / 327.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.64e-05/0.009596, allocations: 130.8 kB / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.009601, allocations: 0 / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.009612, allocations: 0 / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.624e-05/0.009628, allocations: 0 / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.009632, allocations: 4 kB / 327.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.202e-05/0.009715, allocations: 11.98 kB / 327.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.247e-05/0.009757, allocations: 52 kB / 328 MB, free: 12.16 MB / 298.7 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.0002242/0.009981, allocations: 382.6 kB / 328.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.709e-05/0.01001, allocations: 35.77 kB / 328.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.582e-05/0.01007, allocations: 67.08 kB / 328.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.01008, allocations: 0 / 328.4 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.01008, allocations: 4.094 kB / 328.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.01009, allocations: 7.922 kB / 328.4 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006203/0.01071, allocations: 0.8894 MB / 329.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.233e-06/0.01071, allocations: 0 / 329.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.997e-06/0.01071, allocations: 0 / 329.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.165e-06/0.01071, allocations: 3.984 kB / 329.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.01073, allocations: 15.94 kB / 329.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.01073, allocations: 4 kB / 329.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.01073, allocations: 0 / 329.4 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004133/0.01115, allocations: 0.6685 MB / 330 MB, free: 9.883 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002143/0.01136, allocations: 209.3 kB / 330.2 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.276e-05/0.01139, allocations: 12 kB / 330.2 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.43e-05/0.01147, allocations: 11.98 kB / 330.3 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.204e-05/0.01154, allocations: 23.97 kB / 330.3 MB, free: 9.633 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/0.01158, allocations: 63.92 kB / 330.3 MB, free: 9.57 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002814/0.01186, allocations: 390.9 kB / 330.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01186, allocations: 0 / 330.7 MB, free: 9.188 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001949/0.01205, allocations: 47.94 kB / 330.8 MB, free: 9.141 MB / 298.7 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.0007058/0.01276, allocations: 1.213 MB / 332 MB, free: 7.852 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0006739/0.01343, allocations: 0.6087 MB / 332.6 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.01344, allocations: 0 / 332.6 MB, free: 7.145 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002413/0.01368, allocations: 432.4 kB / 333 MB, free: 6.648 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.01408, allocations: 125.5 kB / 333.1 MB, free: 6.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002396/0.01648, allocations: 3.369 MB / 336.5 MB, free: 2.938 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.01664, allocations: 185.8 kB / 336.7 MB, free: 2.734 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.941e-05/0.01667, allocations: 12.7 kB / 336.7 MB, free: 2.723 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.937e-05/0.0167, allocations: 28.5 kB / 336.7 MB, free: 2.695 MB / 298.7 MB Notification: Performance of SimCode: time 7.02e-07/0.01671, allocations: 0 / 336.7 MB, free: 2.695 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01734/0.03404, allocations: 7.086 MB / 343.8 MB, free: 11.68 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.943/6.977, allocations: 6.938 kB / 343.8 MB, free: 11.68 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins/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: 8.720205274410546]