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.0008596/0.0008596, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0008383/0.0008383, allocations: 170 kB / 23.95 MB, free: 0.6094 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.9187/0.9187, allocations: 177.1 MB / 204.3 MB, free: 5.703 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 2.074e-06/2.074e-06, allocations: 0 / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.218e-05/2.426e-05, allocations: 2.281 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.001932/0.001956, allocations: 1.495 MB / 326.1 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001551/0.003507, allocations: 0.8381 MB / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.186e-05/0.003579, allocations: 0 / 326.9 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001114/0.00369, allocations: 15.86 kB / 326.9 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.474e-05/0.003775, allocations: 19.86 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002973/0.004072, allocations: 47.83 kB / 327 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001862/0.004259, allocations: 131.7 kB / 327.1 MB, free: 13.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.004362, allocations: 12.22 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004504/0.004812, allocations: 0.5966 MB / 327.7 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001068/0.004919, allocations: 67.81 kB / 327.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.004e-05/0.004949, allocations: 16 kB / 327.8 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.004971, allocations: 8 kB / 327.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.805e-05/0.005049, allocations: 71.66 kB / 327.9 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.657e-05/0.005116, allocations: 51.8 kB / 327.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002719/0.005388, allocations: 374.8 kB / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.884e-06/0.00539, allocations: 0 / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.005391, allocations: 0 / 328.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5e-06/0.005396, 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.0005941/0.00599, allocations: 0.6591 MB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.006036, allocations: 8.031 kB / 329 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.987e-05/0.006076, allocations: 46.73 kB / 329 MB, free: 11.4 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.592e-05/0.006122, allocations: 40.7 kB / 329 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002082/0.00633, allocations: 212.1 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.811e-05/0.006349, allocations: 8.375 kB / 329.3 MB, free: 11.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.93e-05/0.006368, allocations: 8.375 kB / 329.3 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002772/0.006645, allocations: 248.9 kB / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.006652, allocations: 192 / 329.5 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.00667, allocations: 12.11 kB / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.006677, allocations: 4 kB / 329.5 MB, free: 10.82 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/0.006797, allocations: 174.8 kB / 329.7 MB, free: 10.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004615/0.007258, allocations: 407.7 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.00742, allocations: 201.3 kB / 330.3 MB, free: 9.953 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.007532, allocations: 179.7 kB / 330.5 MB, free: 9.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.059e-05/0.007543, allocations: 3.984 kB / 330.5 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002493/0.007792, allocations: 322.5 kB / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of pre-optimization done (n=13): time 1.142e-06/0.007793, allocations: 0 / 330.8 MB, free: 9.383 MB / 298.7 MB Notification: Performance of matching and sorting (n=13): time 0.0005888/0.008382, allocations: 0.7162 MB / 331.5 MB, free: 8.59 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.856e-05/0.008451, allocations: 166.2 kB / 331.7 MB, free: 8.391 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003995/0.00885, allocations: 0.513 MB / 332.2 MB, free: 7.871 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.851e-05/0.008869, allocations: 33.64 kB / 332.2 MB, free: 7.832 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/0.008923, allocations: 105.1 kB / 332.3 MB, free: 7.727 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.481e-05/0.008957, allocations: 39.72 kB / 332.4 MB, free: 7.688 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.084e-05/0.009028, allocations: 81.55 kB / 332.4 MB, free: 7.602 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.804e-05/0.009106, allocations: 322.8 kB / 332.7 MB, free: 7.277 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.009217, allocations: 170.8 kB / 332.9 MB, free: 7.086 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.009334, allocations: 195.3 kB / 333.1 MB, free: 6.867 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002114/0.009545, allocations: 367.2 kB / 333.5 MB, free: 6.453 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.009547, allocations: 0 / 333.5 MB, free: 6.453 MB / 298.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003552/0.009902, allocations: 0.5069 MB / 334 MB, free: 5.891 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.008e-05/0.009972, allocations: 122.8 kB / 334.1 MB, free: 5.746 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.00998, allocations: 8.031 kB / 334.1 MB, free: 5.738 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.335e-05/0.009993, allocations: 3.984 kB / 334.1 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.722e-05/0.01001, allocations: 0 / 334.1 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.01002, allocations: 0 / 334.1 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/0.0101, allocations: 8 kB / 334.1 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.806e-05/0.01015, allocations: 63.92 kB / 334.2 MB, free: 5.664 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.0002302/0.01038, allocations: 370.5 kB / 334.5 MB, free: 5.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.01041, allocations: 39.77 kB / 334.6 MB, free: 5.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.945e-05/0.01048, allocations: 63.09 kB / 334.6 MB, free: 5.164 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.01049, allocations: 8 kB / 334.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.01049, allocations: 0 / 334.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.0105, allocations: 0 / 334.6 MB, free: 5.156 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006625/0.01116, allocations: 0.8934 MB / 335.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.194e-06/0.01116, allocations: 0 / 335.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.779e-06/0.01116, allocations: 0 / 335.5 MB, free: 4.164 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.01117, allocations: 7.938 kB / 335.5 MB, free: 4.156 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.909e-05/0.01119, allocations: 11.98 kB / 335.6 MB, free: 4.145 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.329e-06/0.01119, allocations: 4 kB / 335.6 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.01119, allocations: 0 / 335.6 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004366/0.01163, allocations: 0.6792 MB / 336.2 MB, free: 3.398 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002183/0.01185, allocations: 201.3 kB / 336.4 MB, free: 3.203 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.814e-05/0.01188, allocations: 12 kB / 336.4 MB, free: 3.191 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.506e-05/0.01196, allocations: 11.98 kB / 336.5 MB, free: 3.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.46e-05/0.01203, allocations: 23.98 kB / 336.5 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.639e-05/0.01207, allocations: 59.98 kB / 336.5 MB, free: 3.098 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000283/0.01235, allocations: 386.9 kB / 336.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01235, allocations: 0 / 336.9 MB, free: 2.723 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001868/0.01254, allocations: 43.94 kB / 337 MB, free: 2.68 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.0006592/0.0132, allocations: 1.213 MB / 338.2 MB, free: 1.391 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004011/0.0136, allocations: 0.6165 MB / 338.8 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.0136, allocations: 0 / 338.8 MB, free: 0.6719 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000198/0.0138, allocations: 432.2 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.0003561/0.01416, allocations: 121.3 kB / 339.3 MB, free: 72 kB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002378/0.01654, 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.0001656/0.0167, allocations: 197.7 kB / 342.9 MB, free: 12.25 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 3.88e-05/0.01674, allocations: 8.797 kB / 342.9 MB, free: 12.24 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.188e-05/0.01678, allocations: 28.48 kB / 342.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of SimCode: time 7.22e-07/0.01678, allocations: 0 / 342.9 MB, free: 12.21 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01889/0.03567, allocations: 7.085 MB / 350 MB, free: 5.203 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.85/6.885, allocations: 11.94 kB / 350 MB, free: 5.191 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 & 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/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] "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: 8.725732230581343]