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.001828/0.001828, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001416/0.001416, allocations: 210.6 kB / 23.73 MB, free: 4.523 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.407/1.407, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001521/0.001521, allocations: 47.92 kB / 377.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2657, allocations: 53.36 MB / 431.1 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002738/0.2685, allocations: 1.49 MB / 432.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001982/0.2704, allocations: 0.8343 MB / 433.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.967e-05/0.2705, allocations: 4 kB / 433.4 MB, free: 4.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001047/0.2706, allocations: 15.86 kB / 433.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.312e-05/0.2707, allocations: 11.88 kB / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002785/0.271, allocations: 55.88 kB / 433.5 MB, free: 4.246 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002068/0.2712, allocations: 127.7 kB / 433.6 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.2713, allocations: 16.22 kB / 433.6 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006407/0.2719, allocations: 0.5771 MB / 434.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001393/0.2721, allocations: 83.61 kB / 434.3 MB, free: 3.441 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.251e-05/0.2721, allocations: 11.94 kB / 434.3 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.474e-05/0.2721, allocations: 8 kB / 434.3 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.35e-05/0.2722, allocations: 63.77 kB / 434.4 MB, free: 3.359 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001104/0.2723, allocations: 87.3 kB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003728/0.2727, allocations: 384.1 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.2727, allocations: 0 / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2727, allocations: 0 / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.481e-06/0.2727, allocations: 0 / 434.8 MB, free: 2.898 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.0007339/0.2734, allocations: 0.6553 MB / 435.5 MB, free: 2.188 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.2735, allocations: 8.031 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.904e-05/0.2735, allocations: 42.75 kB / 435.5 MB, free: 2.129 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.407e-05/0.2736, allocations: 36.7 kB / 435.6 MB, free: 2.094 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.2739, allocations: 224.8 kB / 435.8 MB, free: 1.848 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.959e-05/0.2739, allocations: 8.375 kB / 435.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.729e-05/0.274, allocations: 8.375 kB / 435.8 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000364/0.2743, allocations: 244.5 kB / 436 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.2743, allocations: 0 / 436 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/0.2743, allocations: 8 kB / 436 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2744, allocations: 0 / 436 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002139/0.2746, allocations: 182.7 kB / 436.2 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006894/0.2753, allocations: 415.6 kB / 436.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002392/0.2755, allocations: 189.3 kB / 436.8 MB, free: 0.6836 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001977/0.2757, allocations: 191.6 kB / 437 MB, free: 480 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.043e-05/0.2757, allocations: 4 kB / 437 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004242/0.2761, allocations: 329.6 kB / 437.3 MB, free: 96 kB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.453e-06/0.2761, allocations: 4 kB / 437.3 MB, free: 92 kB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009368/0.2771, allocations: 0.6893 MB / 438 MB, free: 15.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.2772, allocations: 182.1 kB / 438.2 MB, free: 15.11 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000629/0.2778, allocations: 0.5091 MB / 438.7 MB, free: 14.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.361e-05/0.2778, allocations: 29.7 kB / 438.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.353e-05/0.2779, allocations: 105.1 kB / 438.8 MB, free: 14.45 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.061e-05/0.278, allocations: 27.84 kB / 438.9 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00011/0.2781, allocations: 77.56 kB / 438.9 MB, free: 14.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.2782, allocations: 330.8 kB / 439.3 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001955/0.2784, allocations: 178.8 kB / 439.4 MB, free: 13.8 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002/0.2786, allocations: 192.5 kB / 439.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003581/0.279, allocations: 358.2 kB / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.279, allocations: 0 / 440 MB, free: 13.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0006576/0.2796, allocations: 0.503 MB / 440.5 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.2797, allocations: 126.8 kB / 440.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.66e-06/0.2797, allocations: 0 / 440.6 MB, free: 12.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.2797, allocations: 4 kB / 440.6 MB, free: 12.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.125e-05/0.2798, allocations: 7.969 kB / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.2798, allocations: 0 / 440.6 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001387/0.2799, allocations: 16.11 kB / 440.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.068e-05/0.28, allocations: 55.94 kB / 440.7 MB, free: 12.39 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.0003773/0.2804, allocations: 374.5 kB / 441.1 MB, free: 12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.732e-05/0.2804, allocations: 39.77 kB / 441.1 MB, free: 11.96 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.2805, allocations: 63.08 kB / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.2805, allocations: 0 / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2805, allocations: 0 / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.2805, allocations: 0 / 441.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.2816, allocations: 0.8973 MB / 442 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2816, allocations: 0 / 442 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.551e-06/0.2816, allocations: 0 / 442 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-06/0.2816, allocations: 0 / 442 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.847e-05/0.2816, allocations: 12 kB / 442.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.2816, allocations: 0 / 442.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.2816, allocations: 3.938 kB / 442.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007213/0.2823, allocations: 0.6637 MB / 442.7 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000393/0.2827, allocations: 209.3 kB / 442.9 MB, free: 9.949 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.689e-05/0.2828, allocations: 15.98 kB / 442.9 MB, free: 9.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.2829, allocations: 8 kB / 443 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001385/0.2831, allocations: 35.84 kB / 443 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.222e-05/0.2831, allocations: 52 kB / 443 MB, free: 9.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000465/0.2836, allocations: 386.9 kB / 443.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2836, allocations: 0 / 443.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002838/0.2839, allocations: 44 kB / 443.5 MB, free: 9.422 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.001054/0.2849, allocations: 1.217 MB / 444.7 MB, free: 8.129 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006227/0.2855, allocations: 0.6085 MB / 445.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.2855, allocations: 0 / 445.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.2859, allocations: 428.4 kB / 445.7 MB, free: 6.93 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006031/0.2865, allocations: 113.8 kB / 445.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003998/0.2905, allocations: 3.359 MB / 449.2 MB, free: 3.238 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002612/0.2908, allocations: 197.7 kB / 449.4 MB, free: 3.023 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.955e-05/0.2908, allocations: 4.672 kB / 449.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.952e-05/0.2909, allocations: 31.42 kB / 449.4 MB, free: 2.988 MB / 350.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2909, allocations: 4 kB / 449.4 MB, free: 2.984 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03494/0.3258, allocations: 6.985 MB / 456.4 MB, free: 12.08 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.93/11.26, allocations: 12.03 kB / 456.4 MB, free: 12.07 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 & python3 -m fmpy simulate --output-file Modelica_4.1.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_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.csv","/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] "Error: Could not read variable nXFERGATE.y in file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv. Warning: Get data of variable nXFERGATE.y from file Modelica_4.1.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.758686496992595]