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.0008268/0.0008268, allocations: 79.7 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.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.0008496/0.0008496, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8439/0.8439, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.212e-06/1.212e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.106e-05/2.227e-05, allocations: 4.953 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002056/0.002078, allocations: 1.487 MB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.003463, allocations: 0.8419 MB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.363e-05/0.003527, allocations: 4 kB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001121/0.003639, allocations: 11.86 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.487e-05/0.003724, allocations: 15.86 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002825/0.004006, allocations: 55.81 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000185/0.004191, allocations: 131.7 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.004293, allocations: 12.22 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004416/0.004734, allocations: 0.5966 MB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.00484, allocations: 59.83 kB / 327.8 MB, free: 12.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.944e-05/0.004869, allocations: 8 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.386e-05/0.004893, allocations: 12 kB / 327.8 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.985e-05/0.004963, allocations: 79.64 kB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.248e-05/0.005026, allocations: 51.78 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.005295, allocations: 378.8 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.005297, allocations: 0 / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.005299, allocations: 0 / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.701e-06/0.005305, allocations: 0 / 328.3 MB, free: 12.18 MB / 298.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.000586/0.005891, allocations: 0.6623 MB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.005935, allocations: 8.031 kB / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.772e-05/0.005973, allocations: 38.73 kB / 329 MB, free: 11.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.011e-05/0.006023, allocations: 40.7 kB / 329 MB, free: 11.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002538/0.006277, allocations: 220.1 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.144e-05/0.006298, allocations: 8.375 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.987e-05/0.006318, allocations: 12.31 kB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002798/0.006598, allocations: 245 kB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.207e-06/0.006607, allocations: 192 / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.006626, allocations: 8.125 kB / 329.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.006631, allocations: 0 / 329.5 MB, free: 10.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001292/0.00676, allocations: 178.8 kB / 329.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004773/0.007238, allocations: 411.7 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001543/0.007392, allocations: 197.3 kB / 330.3 MB, free: 9.957 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.007508, allocations: 183.7 kB / 330.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.018e-05/0.007518, allocations: 4 kB / 330.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002729/0.007791, allocations: 322.5 kB / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.372e-06/0.007792, allocations: 0 / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005928/0.008385, allocations: 0.7087 MB / 331.5 MB, free: 8.594 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.573e-05/0.00845, allocations: 170.2 kB / 331.7 MB, free: 8.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003919/0.008842, allocations: 0.513 MB / 332.2 MB, free: 7.871 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.008863, allocations: 33.64 kB / 332.2 MB, free: 7.832 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.203e-05/0.008915, allocations: 101.1 kB / 332.3 MB, free: 7.73 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.844e-05/0.008943, allocations: 27.73 kB / 332.3 MB, free: 7.703 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.897e-05/0.009022, allocations: 89.55 kB / 332.4 MB, free: 7.609 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.605e-05/0.009108, allocations: 322.8 kB / 332.7 MB, free: 7.285 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000119/0.009227, allocations: 174.8 kB / 332.9 MB, free: 7.09 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.009346, allocations: 192.5 kB / 333.1 MB, free: 6.871 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002169/0.009563, allocations: 363.2 kB / 333.5 MB, free: 6.461 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.009565, allocations: 0 / 333.5 MB, free: 6.461 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000368/0.009933, allocations: 0.5106 MB / 334 MB, free: 5.898 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.285e-05/0.01001, allocations: 126.8 kB / 334.1 MB, free: 5.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.75e-06/0.01001, allocations: 0 / 334.1 MB, free: 5.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.01002, allocations: 4.031 kB / 334.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.334e-05/0.01005, allocations: 8 kB / 334.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.01005, allocations: 0 / 334.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.01016, allocations: 8 kB / 334.1 MB, free: 5.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.976e-05/0.01021, allocations: 59.92 kB / 334.2 MB, free: 5.672 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.0002495/0.01046, allocations: 382.5 kB / 334.5 MB, free: 5.266 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.96e-05/0.01049, allocations: 39.77 kB / 334.6 MB, free: 5.227 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.774e-05/0.01056, allocations: 63.09 kB / 334.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.796e-06/0.01056, allocations: 0 / 334.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.01057, allocations: 0 / 334.6 MB, free: 5.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.01057, allocations: 4 kB / 334.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006808/0.01125, allocations: 0.8895 MB / 335.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.01125, allocations: 0 / 335.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.939e-06/0.01126, allocations: 0 / 335.5 MB, free: 4.168 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.01126, allocations: 3.938 kB / 335.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.01128, allocations: 19.98 kB / 335.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.01128, allocations: 0 / 335.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01128, allocations: 0 / 335.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000493/0.01178, allocations: 0.6686 MB / 336.2 MB, free: 3.41 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002262/0.012, allocations: 205.3 kB / 336.4 MB, free: 3.211 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.529e-05/0.01204, allocations: 8 kB / 336.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.331e-05/0.01211, allocations: 15.98 kB / 336.4 MB, free: 3.188 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.954e-05/0.01219, allocations: 27.97 kB / 336.5 MB, free: 3.16 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.423e-05/0.01222, allocations: 52 kB / 336.5 MB, free: 3.109 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002829/0.01251, allocations: 386.9 kB / 336.9 MB, free: 2.734 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01251, allocations: 0 / 336.9 MB, free: 2.734 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001914/0.0127, allocations: 51.94 kB / 337 MB, free: 2.684 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.0007858/0.01348, allocations: 1.213 MB / 338.2 MB, free: 1.395 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003705/0.01386, allocations: 0.6087 MB / 338.8 MB, free: 0.6836 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01386, allocations: 4.062 kB / 338.8 MB, free: 0.6797 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002026/0.01406, allocations: 440.4 kB / 339.2 MB, free: 180 kB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003597/0.01442, allocations: 124.6 kB / 339.3 MB, free: 72 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002638/0.01706, allocations: 3.361 MB / 342.7 MB, free: 12.46 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001678/0.01722, allocations: 197.7 kB / 342.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 4.674e-05/0.01727, allocations: 4.734 kB / 342.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.52e-05/0.01732, allocations: 32.48 kB / 342.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01732, allocations: 0 / 342.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.03614, allocations: 7.08 MB / 350 MB, free: 5.207 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.656/6.692, allocations: 3.938 kB / 350 MB, free: 5.203 MB / 314.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins/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: 8.284309730865061]