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.001562/0.001562, allocations: 115.9 kB / 20.43 MB, free: 1.449 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.001542/0.001542, allocations: 213.4 kB / 23.74 MB, free: 4.656 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.454/1.454, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.002187/0.002187, allocations: 39.94 kB / 377.8 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2897/0.2919, allocations: 53.37 MB / 431.1 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003492/0.2954, allocations: 1.522 MB / 432.7 MB, free: 5.332 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.2977, allocations: 0.9043 MB / 433.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.818e-05/0.2978, allocations: 0 / 433.6 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001155/0.2979, allocations: 11.86 kB / 433.6 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001172/0.298, allocations: 15.86 kB / 433.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003296/0.2983, allocations: 59.88 kB / 433.6 MB, free: 4.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002468/0.2986, allocations: 127.7 kB / 433.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001067/0.2987, allocations: 8.234 kB / 433.8 MB, free: 4.199 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007305/0.2994, allocations: 0.581 MB / 434.4 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001726/0.2996, allocations: 83.67 kB / 434.4 MB, free: 3.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.259e-05/0.2996, allocations: 8 kB / 434.5 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.096e-05/0.2997, allocations: 12 kB / 434.5 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.2998, allocations: 63.7 kB / 434.5 MB, free: 3.453 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001457/0.2999, allocations: 111.2 kB / 434.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004397/0.3004, allocations: 374.9 kB / 435 MB, free: 2.98 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.3004, allocations: 3.938 kB / 435 MB, free: 2.977 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3004, allocations: 3.938 kB / 435 MB, free: 2.973 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.112e-05/0.3004, allocations: 0 / 435 MB, free: 2.973 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.0007977/0.3012, allocations: 0.6592 MB / 435.7 MB, free: 2.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.3012, allocations: 8.031 kB / 435.7 MB, free: 2.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.791e-05/0.3013, allocations: 42.69 kB / 435.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.375e-05/0.3013, allocations: 40.7 kB / 435.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.3016, allocations: 220.8 kB / 436 MB, free: 1.918 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.216e-05/0.3016, allocations: 8.375 kB / 436 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.596e-05/0.3017, allocations: 4.375 kB / 436 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000298/0.302, allocations: 129.7 kB / 436.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.302, allocations: 0 / 436.1 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.051e-05/0.302, allocations: 4 kB / 436.1 MB, free: 1.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-06/0.302, allocations: 4 kB / 436.1 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.3021, allocations: 59.97 kB / 436.2 MB, free: 1.707 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006744/0.3028, allocations: 435.5 kB / 436.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001759/0.303, allocations: 78.53 kB / 436.7 MB, free: 1.152 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001314/0.3031, allocations: 60.89 kB / 436.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.038e-05/0.3031, allocations: 0 / 436.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003714/0.3035, allocations: 216.4 kB / 436.9 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.203e-06/0.3035, allocations: 0 / 436.9 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007888/0.3043, allocations: 468.1 kB / 437.4 MB, free: 376 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001075/0.3044, allocations: 166.2 kB / 437.6 MB, free: 172 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006552/0.3051, allocations: 0.5168 MB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.492e-05/0.3051, allocations: 33.7 kB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.198e-05/0.3052, allocations: 97.09 kB / 438.2 MB, free: 15.5 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.3052, allocations: 31.78 kB / 438.2 MB, free: 15.47 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001167/0.3053, allocations: 85.55 kB / 438.3 MB, free: 15.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.3055, allocations: 326.8 kB / 438.6 MB, free: 15.05 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001283/0.3056, allocations: 55.97 kB / 438.7 MB, free: 15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001369/0.3057, allocations: 77.67 kB / 438.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.3061, allocations: 335.3 kB / 439.1 MB, free: 14.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3061, allocations: 7.938 kB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005409/0.3066, allocations: 387.8 kB / 439.5 MB, free: 14.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.818e-05/0.3067, allocations: 126.8 kB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.628e-06/0.3067, allocations: 240 / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.3067, allocations: 3.938 kB / 439.6 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.341e-05/0.3068, allocations: 11.98 kB / 439.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.619e-06/0.3068, allocations: 0 / 439.6 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001205/0.3069, allocations: 11.94 kB / 439.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.487e-05/0.307, allocations: 59.92 kB / 439.7 MB, free: 13.89 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.0003644/0.3073, allocations: 366.5 kB / 440.1 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.849e-05/0.3074, allocations: 35.77 kB / 440.1 MB, free: 13.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001044/0.3075, allocations: 71.03 kB / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3075, allocations: 0 / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.3075, allocations: 0 / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.405e-06/0.3075, allocations: 0 / 440.2 MB, free: 13.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.3085, allocations: 0.7891 MB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3085, allocations: 0 / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.102e-06/0.3085, allocations: 3.938 kB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.3085, allocations: 4 kB / 441 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.172e-05/0.3085, allocations: 15.98 kB / 441 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.3085, allocations: 0 / 441 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.369e-06/0.3085, allocations: 7.922 kB / 441 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006683/0.3092, allocations: 0.5332 MB / 441.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003812/0.3096, allocations: 209.3 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.186e-05/0.3096, allocations: 8 kB / 441.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001298/0.3098, allocations: 15.97 kB / 441.7 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001008/0.3099, allocations: 31.92 kB / 441.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.229e-05/0.3099, allocations: 59.98 kB / 441.8 MB, free: 11.6 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004849/0.3104, allocations: 386.9 kB / 442.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3104, allocations: 0 / 442.2 MB, free: 11.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002797/0.3107, allocations: 40 kB / 442.3 MB, free: 11.19 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.001058/0.3118, allocations: 1.101 MB / 443.4 MB, free: 10.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004986/0.3123, allocations: 373.5 kB / 443.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.3123, allocations: 0 / 443.7 MB, free: 9.621 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002978/0.3126, allocations: 305.5 kB / 444 MB, free: 9.273 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005981/0.3132, allocations: 126 kB / 444.1 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003526/0.3167, allocations: 2.749 MB / 446.9 MB, free: 6.309 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005205/0.3172, allocations: 0.7983 MB / 447.7 MB, free: 5.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.615e-05/0.3173, allocations: 8.656 kB / 447.7 MB, free: 5.477 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.377e-05/0.3173, allocations: 31.42 kB / 447.7 MB, free: 5.445 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3173, allocations: 7.938 kB / 447.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03616/0.3535, allocations: 6.211 MB / 453.9 MB, free: 15.28 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.27, allocations: 13.59 kB / 454 MB, free: 15.27 MB / 366.1 MB " [Timeout remaining time 649] (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.724156517069787]