Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001973/0.001973, allocations: 112.1 kB / 21.19 MB, free: 0.7031 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.003781/0.003781, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.531/1.531, allocations: 207.6 MB / 235.3 MB, free: 9.992 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 59.92 kB / 347.2 MB, free: 10.12 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2638/0.2657, allocations: 49.16 MB / 396.3 MB, free: 8.957 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002309/0.268, allocations: 1.503 MB / 397.9 MB, free: 7.93 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001712/0.2697, allocations: 0.9116 MB / 398.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.098e-05/0.2698, allocations: 0 / 398.8 MB, free: 7.316 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 9.046e-05/0.2699, allocations: 12.19 kB / 398.8 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.487e-05/0.27, allocations: 24.31 kB / 398.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002232/0.2702, allocations: 47.94 kB / 398.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001762/0.2704, allocations: 136.1 kB / 399 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.697e-05/0.2704, allocations: 16.81 kB / 399 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006192/0.2711, allocations: 0.5765 MB / 399.6 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001378/0.2712, allocations: 78.28 kB / 399.6 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.715e-05/0.2712, allocations: 9.188 kB / 399.7 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.808e-05/0.2713, allocations: 9.75 kB / 399.7 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.552e-05/0.2713, allocations: 62.55 kB / 399.7 MB, free: 7.082 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.522e-05/0.2714, allocations: 119.2 kB / 399.8 MB, free: 6.992 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003829/0.2718, allocations: 369 kB / 400.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.2718, allocations: 4.547 kB / 400.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2718, allocations: 1.156 kB / 400.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.2718, allocations: 4 kB / 400.2 MB, free: 6.875 MB / 318.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.0005827/0.2724, allocations: 0.6594 MB / 400.9 MB, free: 6.293 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.478e-05/0.2724, allocations: 13.95 kB / 400.9 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.153e-05/0.2725, allocations: 40.62 kB / 400.9 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.446e-05/0.2725, allocations: 41.92 kB / 401 MB, free: 6.223 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002137/0.2728, allocations: 219 kB / 401.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.935e-05/0.2728, allocations: 4.5 kB / 401.2 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.481e-05/0.2728, allocations: 11.97 kB / 401.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002677/0.2731, allocations: 128 kB / 401.3 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.2731, allocations: 4 kB / 401.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.25e-05/0.2731, allocations: 4.031 kB / 401.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.429e-06/0.2731, allocations: 1.219 kB / 401.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001515/0.2733, allocations: 57.92 kB / 401.4 MB, free: 5.945 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005999/0.2739, allocations: 433.6 kB / 401.8 MB, free: 5.621 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001521/0.274, allocations: 73.22 kB / 401.9 MB, free: 5.582 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.2741, allocations: 65.42 kB / 401.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.2741, allocations: 1.344 kB / 401.9 MB, free: 5.555 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003001/0.2744, allocations: 212.6 kB / 402.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.2744, allocations: 0 / 402.2 MB, free: 5.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0006822/0.2751, allocations: 478.3 kB / 402.6 MB, free: 5.156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.692e-05/0.2752, allocations: 166.4 kB / 402.8 MB, free: 4.965 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005702/0.2757, allocations: 0.5133 MB / 403.3 MB, free: 4.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/0.2758, allocations: 32.67 kB / 403.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.865e-05/0.2758, allocations: 104.3 kB / 403.4 MB, free: 4.547 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.253e-05/0.2758, allocations: 27.97 kB / 403.5 MB, free: 4.527 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.94e-05/0.2759, allocations: 85.73 kB / 403.5 MB, free: 4.48 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.276, allocations: 325 kB / 403.9 MB, free: 4.16 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001172/0.2761, allocations: 58.89 kB / 403.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001145/0.2762, allocations: 71.16 kB / 404 MB, free: 4.109 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000241/0.2764, allocations: 345.4 kB / 404.3 MB, free: 3.793 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2764, allocations: 3.938 kB / 404.3 MB, free: 3.789 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004661/0.2769, allocations: 388.3 kB / 404.7 MB, free: 3.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.265e-05/0.277, allocations: 120 kB / 404.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.277, allocations: 1.281 kB / 404.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.277, allocations: 1.156 kB / 404.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.955e-05/0.277, allocations: 1.578 kB / 404.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.129e-06/0.277, allocations: 1.062 kB / 404.8 MB, free: 3.438 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.2772, allocations: 22.98 kB / 404.9 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.725e-05/0.2772, allocations: 60.95 kB / 404.9 MB, free: 3.418 MB / 318.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.0002783/0.2775, allocations: 361.2 kB / 405.3 MB, free: 3.117 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.462e-05/0.2776, allocations: 38.92 kB / 405.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.763e-05/0.2777, allocations: 64.59 kB / 405.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.2777, allocations: 1.406 kB / 405.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.2777, allocations: 0 / 405.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2777, allocations: 2.094 kB / 405.4 MB, free: 3.059 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008669/0.2785, allocations: 0.7985 MB / 406.2 MB, free: 2.504 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2785, allocations: 3.938 kB / 406.2 MB, free: 2.5 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.76e-06/0.2785, allocations: 5.969 kB / 406.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.2785, allocations: 0 / 406.2 MB, free: 2.496 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.755e-05/0.2786, allocations: 17.11 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.484e-06/0.2786, allocations: 2.172 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.2786, allocations: 3.938 kB / 406.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005481/0.2791, allocations: 0.5329 MB / 406.7 MB, free: 2.141 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003687/0.2795, allocations: 210.7 kB / 406.9 MB, free: 2.02 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/0.2795, allocations: 11.72 kB / 407 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001322/0.2797, allocations: 9.641 kB / 407 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.2798, allocations: 33.52 kB / 407 MB, free: 2 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.427e-05/0.2799, allocations: 59.53 kB / 407.1 MB, free: 1.996 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0004265/0.2803, allocations: 385.8 kB / 407.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2803, allocations: 0.9062 kB / 407.4 MB, free: 1.793 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000294/0.2806, allocations: 49.11 kB / 407.5 MB, free: 1.785 MB / 318.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.000757/0.2813, allocations: 1.087 MB / 408.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003789/0.2817, allocations: 379.9 kB / 408.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2817, allocations: 0 / 408.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002038/0.2819, allocations: 300.2 kB / 409.2 MB, free: 328 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005874/0.2825, allocations: 115.3 kB / 409.3 MB, free: 296 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003519/0.286, allocations: 2.764 MB / 412.1 MB, free: 14.35 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005298/0.2865, allocations: 0.799 MB / 412.9 MB, free: 13.62 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.883e-05/0.2866, allocations: 9.547 kB / 412.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.049e-05/0.2867, allocations: 25.36 kB / 412.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2867, allocations: 3.938 kB / 412.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03497/0.3216, allocations: 6.218 MB / 419.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.42, allocations: 1.5 kB / 419.2 MB, free: 10.47 MB / 334.1 MB " [Timeout remaining time 648] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --stepSize=0.0023933 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.944391516968608]