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.001318/0.001318, allocations: 109.5 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.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.001341/0.001341, allocations: 189.8 kB / 23.72 MB, free: 4.684 MB / 14.72 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 1.385/1.385, allocations: 225.6 MB / 252.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001528/0.001528, allocations: 51.92 kB / 370.4 MB, free: 9.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2398, allocations: 52.18 MB / 422.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002803/0.2426, allocations: 1.521 MB / 424.1 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001947/0.2445, allocations: 0.8615 MB / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.164e-05/0.2446, allocations: 0 / 425 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.318e-05/0.2446, allocations: 7.875 kB / 425 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.384e-05/0.2447, allocations: 23.84 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002515/0.245, allocations: 47.89 kB / 425.1 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.2452, allocations: 135.7 kB / 425.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.496e-05/0.2453, allocations: 16.2 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006311/0.2459, allocations: 0.581 MB / 425.8 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.2461, allocations: 71.7 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.878e-05/0.2461, allocations: 8 kB / 425.9 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.948e-05/0.2461, allocations: 16 kB / 425.9 MB, free: 11.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.578e-05/0.2462, allocations: 63.75 kB / 426 MB, free: 11.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001237/0.2463, allocations: 115.1 kB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004166/0.2468, allocations: 376.1 kB / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.2468, allocations: 0 / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2468, allocations: 0 / 426.4 MB, free: 10.78 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.991e-06/0.2468, allocations: 0 / 426.4 MB, free: 10.78 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.00075/0.2475, allocations: 0.6514 MB / 427.1 MB, free: 10.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.2476, allocations: 12.03 kB / 427.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.956e-05/0.2476, allocations: 42.73 kB / 427.2 MB, free: 10.01 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.4e-05/0.2477, allocations: 40.7 kB / 427.2 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002846/0.248, allocations: 216.8 kB / 427.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.01e-05/0.248, allocations: 4.375 kB / 427.4 MB, free: 9.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/0.248, allocations: 12.38 kB / 427.4 MB, free: 9.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002845/0.2483, allocations: 129.7 kB / 427.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.2483, allocations: 0 / 427.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.23e-05/0.2483, allocations: 7.984 kB / 427.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.058e-06/0.2483, allocations: 0 / 427.6 MB, free: 9.574 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001374/0.2485, allocations: 63.84 kB / 427.6 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006714/0.2491, allocations: 435.6 kB / 428 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001715/0.2493, allocations: 70.55 kB / 428.1 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001374/0.2495, allocations: 68.81 kB / 428.2 MB, free: 8.895 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.213e-05/0.2495, allocations: 4 kB / 428.2 MB, free: 8.891 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003566/0.2498, allocations: 204.9 kB / 428.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of pre-optimization done (n=13): time 1.373e-06/0.2498, allocations: 0 / 428.4 MB, free: 8.668 MB / 334.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008074/0.2506, allocations: 476.3 kB / 428.8 MB, free: 8.172 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001139/0.2507, allocations: 178.1 kB / 429 MB, free: 7.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006494/0.2514, allocations: 0.509 MB / 429.5 MB, free: 7.441 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.071e-05/0.2514, allocations: 29.7 kB / 429.6 MB, free: 7.406 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.659e-05/0.2515, allocations: 105.1 kB / 429.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.39e-05/0.2515, allocations: 31.8 kB / 429.7 MB, free: 7.27 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001123/0.2517, allocations: 81.55 kB / 429.8 MB, free: 7.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001406/0.2518, allocations: 330.8 kB / 430.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.2519, allocations: 59.97 kB / 430.2 MB, free: 6.793 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001347/0.2521, allocations: 65.69 kB / 430.2 MB, free: 6.723 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.2524, allocations: 349.7 kB / 430.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.2524, allocations: 0 / 430.6 MB, free: 6.328 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005449/0.253, allocations: 384.3 kB / 430.9 MB, free: 5.922 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.49e-05/0.2531, allocations: 130.8 kB / 431.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2531, allocations: 0 / 431.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2531, allocations: 0 / 431.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.763e-05/0.2531, allocations: 0 / 431.1 MB, free: 5.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.894e-06/0.2531, allocations: 4 kB / 431.1 MB, free: 5.766 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001298/0.2532, allocations: 15.98 kB / 431.1 MB, free: 5.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.136e-05/0.2533, allocations: 56.06 kB / 431.1 MB, free: 5.695 MB / 334.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.0003521/0.2537, allocations: 366.5 kB / 431.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.309e-05/0.2537, allocations: 39.77 kB / 431.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.2538, allocations: 67.09 kB / 431.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.2538, allocations: 4 kB / 431.6 MB, free: 5.191 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/0.2538, allocations: 3.984 kB / 431.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.936e-06/0.2538, allocations: 112 / 431.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001006/0.2548, allocations: 0.8007 MB / 432.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.2548, allocations: 0 / 432.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.188e-06/0.2548, allocations: 0 / 432.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.2548, allocations: 0 / 432.4 MB, free: 4.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.925e-05/0.2549, allocations: 16 kB / 432.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.413e-06/0.2549, allocations: 0 / 432.4 MB, free: 4.297 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.605e-06/0.2549, allocations: 7.938 kB / 432.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006502/0.2555, allocations: 0.5293 MB / 433 MB, free: 3.719 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003775/0.2559, allocations: 209.3 kB / 433.2 MB, free: 3.516 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.404e-05/0.256, allocations: 12 kB / 433.2 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000129/0.2561, allocations: 11.98 kB / 433.2 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.2562, allocations: 35.84 kB / 433.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.102e-05/0.2562, allocations: 55.94 kB / 433.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004723/0.2567, allocations: 390.9 kB / 433.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2567, allocations: 0 / 433.7 MB, free: 3.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000283/0.257, allocations: 44 kB / 433.7 MB, free: 2.977 MB / 334.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.001047/0.2581, allocations: 1.089 MB / 434.8 MB, free: 1.84 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005055/0.2586, allocations: 381.5 kB / 435.2 MB, free: 1.418 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2586, allocations: 3.938 kB / 435.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002852/0.2588, allocations: 297.6 kB / 435.5 MB, free: 1.074 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006017/0.2594, allocations: 127.1 kB / 435.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003555/0.263, allocations: 2.748 MB / 438.3 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004913/0.2635, allocations: 0.8098 MB / 439.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.587e-05/0.2635, allocations: 8.656 kB / 439.2 MB, free: 13.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.61e-05/0.2636, allocations: 23.44 kB / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.2636, allocations: 0 / 439.2 MB, free: 13.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03392/0.2975, allocations: 6.214 MB / 445.4 MB, free: 7.074 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.14, allocations: 9.703 kB / 445.4 MB, free: 7.07 MB / 350.1 MB " [Timeout remaining time 649] (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 & python3 -m fmpy simulate --output-file Modelica_4.0.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_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.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/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] "Error: Could not read variable nXFERGATE.y in file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv. Warning: Get data of variable nXFERGATE.y from file Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.557252091999544]