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.0008982/0.0008982, 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.0007379/0.0007379, allocations: 149.1 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.8582/0.8582, allocations: 173.3 MB / 200.4 MB, free: 9.426 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 2.094e-06/2.094e-06, allocations: 0 / 318.4 MB, free: 6.352 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.664e-05/2.873e-05, allocations: 5.516 kB / 318.4 MB, free: 6.348 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.00322/0.003249, allocations: 1.459 MB / 319.9 MB, free: 4.875 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002251/0.0055, allocations: 0.8069 MB / 320.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.359e-05/0.005573, allocations: 0 / 320.7 MB, free: 4.062 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.005707, allocations: 11.86 kB / 320.7 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001089/0.005816, allocations: 11.88 kB / 320.7 MB, free: 4.039 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003843/0.0062, allocations: 59.81 kB / 320.8 MB, free: 3.98 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002677/0.006468, allocations: 131.6 kB / 320.9 MB, free: 3.852 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001405/0.006608, allocations: 16.22 kB / 320.9 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007402/0.007348, allocations: 0.6004 MB / 321.5 MB, free: 3.23 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.007533, allocations: 67.8 kB / 321.6 MB, free: 3.164 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.37e-05/0.007577, allocations: 8 kB / 321.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.71e-05/0.007604, allocations: 12 kB / 321.6 MB, free: 3.145 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001029/0.007706, allocations: 63.72 kB / 321.7 MB, free: 3.082 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001058/0.007812, allocations: 55.73 kB / 321.7 MB, free: 3.027 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000443/0.008255, allocations: 382.8 kB / 322.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.008262, allocations: 0 / 322.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.008264, allocations: 0 / 322.1 MB, free: 2.652 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.183e-06/0.008271, allocations: 0 / 322.1 MB, free: 2.652 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.0008894/0.009161, allocations: 0.6584 MB / 322.8 MB, free: 1.941 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.194e-05/0.009213, allocations: 8.922 kB / 322.8 MB, free: 1.934 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.196e-05/0.009265, allocations: 42.73 kB / 322.8 MB, free: 1.883 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.289e-05/0.009338, allocations: 40.7 kB / 322.9 MB, free: 1.844 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002853/0.009623, allocations: 216.1 kB / 323.1 MB, free: 1.605 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.483e-05/0.009648, allocations: 4.375 kB / 323.1 MB, free: 1.602 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.026e-05/0.009678, allocations: 12.31 kB / 323.1 MB, free: 1.59 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004052/0.01008, allocations: 252.9 kB / 323.3 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.061e-05/0.01009, allocations: 192 / 323.3 MB, free: 1.312 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.055e-05/0.01011, allocations: 8.125 kB / 323.3 MB, free: 1.305 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.43e-06/0.01012, allocations: 4 kB / 323.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001645/0.01028, allocations: 178.8 kB / 323.5 MB, free: 1.102 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006259/0.01091, allocations: 407.7 kB / 323.9 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.01112, allocations: 197.3 kB / 324.1 MB, free: 444 kB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001449/0.01126, allocations: 175.7 kB / 324.3 MB, free: 240 kB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.76e-05/0.01128, allocations: 4 kB / 324.3 MB, free: 236 kB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004454/0.01173, allocations: 329.4 kB / 324.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 2.134e-06/0.01173, allocations: 4 kB / 324.6 MB, free: 15.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0007626/0.01249, allocations: 0.7048 MB / 325.3 MB, free: 15.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/0.01258, allocations: 174.2 kB / 325.5 MB, free: 14.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004424/0.01302, allocations: 0.5091 MB / 326 MB, free: 14.35 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.01305, allocations: 33.7 kB / 326 MB, free: 14.31 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.872e-05/0.0131, allocations: 97.12 kB / 326.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.262e-05/0.01314, allocations: 35.69 kB / 326.2 MB, free: 14.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.809e-05/0.01321, allocations: 77.55 kB / 326.2 MB, free: 14.09 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.74e-05/0.0133, allocations: 322.8 kB / 326.5 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.01342, allocations: 178.8 kB / 326.7 MB, free: 13.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001475/0.01357, allocations: 192.5 kB / 326.9 MB, free: 13.35 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.01379, allocations: 367.1 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.01379, allocations: 4 kB / 327.3 MB, free: 12.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003886/0.01418, allocations: 0.5107 MB / 327.8 MB, free: 12.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.625e-05/0.01426, allocations: 118.8 kB / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.6e-06/0.01426, allocations: 0 / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.54e-05/0.01428, allocations: 4 kB / 327.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.131e-05/0.0143, allocations: 3.984 kB / 327.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.0143, allocations: 112 / 327.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.307e-05/0.0144, allocations: 11.94 kB / 327.9 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.247e-05/0.01446, allocations: 59.98 kB / 328 MB, free: 12.15 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.0003508/0.01481, allocations: 374.6 kB / 328.3 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.01485, allocations: 39.77 kB / 328.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.481e-05/0.01493, allocations: 67.08 kB / 328.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.01494, allocations: 0 / 328.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.01495, allocations: 0 / 328.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.01495, allocations: 4 kB / 328.4 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009373/0.01589, allocations: 0.8894 MB / 329.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.01589, allocations: 0 / 329.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.254e-05/0.01591, allocations: 0 / 329.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.681e-06/0.01591, allocations: 0 / 329.3 MB, free: 10.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.027e-05/0.01594, allocations: 15.98 kB / 329.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.01595, allocations: 4 kB / 329.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.276e-06/0.01595, allocations: 0 / 329.4 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005145/0.01646, allocations: 0.6764 MB / 330 MB, free: 9.879 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002475/0.01671, allocations: 205.4 kB / 330.2 MB, free: 9.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.014e-05/0.01676, allocations: 12 kB / 330.2 MB, free: 9.668 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.659e-05/0.01686, allocations: 11.98 kB / 330.3 MB, free: 9.656 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.73e-05/0.01696, allocations: 19.98 kB / 330.3 MB, free: 9.637 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.997e-05/0.017, allocations: 63.92 kB / 330.3 MB, free: 9.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002993/0.0173, allocations: 382.9 kB / 330.7 MB, free: 9.199 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0173, allocations: 4 kB / 330.7 MB, free: 9.195 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002072/0.0175, allocations: 47.94 kB / 330.8 MB, free: 9.148 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.0008136/0.01832, allocations: 1.217 MB / 332 MB, free: 7.859 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004272/0.01874, allocations: 0.6126 MB / 332.6 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.01875, allocations: 0 / 332.6 MB, free: 7.148 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002199/0.01897, allocations: 424.4 kB / 333 MB, free: 6.66 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004137/0.01938, allocations: 129.2 kB / 333.1 MB, free: 6.543 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002827/0.02221, allocations: 3.372 MB / 336.5 MB, free: 2.945 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001691/0.02238, allocations: 201.7 kB / 336.7 MB, free: 2.727 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 5.264e-05/0.02243, allocations: 8.719 kB / 336.7 MB, free: 2.719 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.445e-05/0.02247, allocations: 28.48 kB / 336.7 MB, free: 2.691 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.02247, allocations: 0 / 336.7 MB, free: 2.691 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.04256, allocations: 7.075 MB / 343.8 MB, free: 11.69 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.037/7.079, allocations: 11.98 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --stepSize=0.0023933 --timeout=50 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 8.698695491999388]