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.0009638/0.0009638, allocations: 87.62 kB / 21.43 MB, free: 3.133 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.005794/0.005794, allocations: 164.6 kB / 24.69 MB, free: 9.43 MB / 18.57 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 0.9593/0.9593, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 2.795e-06/2.795e-06, allocations: 0 / 298.4 MB, free: 3.602 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.518e-05/2.797e-05, allocations: 2.281 kB / 298.4 MB, free: 3.598 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003519/0.003547, allocations: 1.455 MB / 299.9 MB, free: 2.129 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002287/0.005835, allocations: 0.8553 MB / 300.8 MB, free: 1.266 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001022/0.005937, allocations: 0 / 300.8 MB, free: 1.266 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.006075, allocations: 15.8 kB / 300.8 MB, free: 1.25 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001129/0.006188, allocations: 15.86 kB / 300.8 MB, free: 1.234 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004043/0.006592, allocations: 55.81 kB / 300.8 MB, free: 1.18 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002696/0.006861, allocations: 131.7 kB / 301 MB, free: 1.051 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.007002, allocations: 20.2 kB / 301 MB, free: 1.027 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006778/0.00768, allocations: 0.5889 MB / 301.6 MB, free: 448 kB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001542/0.007834, allocations: 63.81 kB / 301.6 MB, free: 384 kB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 3.988e-05/0.007874, allocations: 8 kB / 301.7 MB, free: 376 kB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.686e-05/0.007901, allocations: 12 kB / 301.7 MB, free: 364 kB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.424e-05/0.007995, allocations: 67.66 kB / 301.7 MB, free: 296 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.763e-05/0.008093, allocations: 55.78 kB / 301.8 MB, free: 240 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1496/0.1577, allocations: 367.2 kB / 302.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.555e-06/0.1577, allocations: 0 / 302.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1577, allocations: 0.5469 kB / 302.1 MB, free: 13.88 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.13e-05/0.1577, allocations: 0 / 302.1 MB, free: 13.88 MB / 282.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.0006815/0.1584, allocations: 0.6624 MB / 302.8 MB, free: 13.36 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.781e-05/0.1584, allocations: 14.31 kB / 302.8 MB, free: 13.36 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.695e-05/0.1584, allocations: 39.39 kB / 302.9 MB, free: 13.32 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.658e-05/0.1585, allocations: 41.67 kB / 302.9 MB, free: 13.3 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002332/0.1587, allocations: 214.1 kB / 303.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/0.1588, allocations: 7.719 kB / 303.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.207e-05/0.1588, allocations: 10.28 kB / 303.1 MB, free: 13.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002896/0.1591, allocations: 248.5 kB / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.755e-06/0.1591, allocations: 192 / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.011e-05/0.1591, allocations: 9.062 kB / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.1591, allocations: 5 kB / 303.4 MB, free: 12.96 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001282/0.1592, allocations: 180.8 kB / 303.6 MB, free: 12.83 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005575/0.1598, allocations: 410.1 kB / 304 MB, free: 12.57 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001685/0.16, allocations: 197.9 kB / 304.2 MB, free: 12.42 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001063/0.1601, allocations: 181.8 kB / 304.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.177e-05/0.1601, allocations: 2.047 kB / 304.3 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003527/0.1604, allocations: 329.5 kB / 304.7 MB, free: 12.05 MB / 282.7 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.1604, allocations: 1.625 kB / 304.7 MB, free: 12.05 MB / 282.7 MB Notification: Performance of matching and sorting (n=13): time 0.0006469/0.1611, allocations: 0.7109 MB / 305.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.472e-05/0.1611, allocations: 166.4 kB / 305.5 MB, free: 11.44 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000547/0.1617, allocations: 0.5136 MB / 306 MB, free: 11.25 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 2.411e-05/0.1617, allocations: 29.36 kB / 306.1 MB, free: 11.21 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.523e-05/0.1618, allocations: 101.9 kB / 306.2 MB, free: 11.13 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.109e-05/0.1618, allocations: 34.52 kB / 306.2 MB, free: 11.11 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.532e-05/0.1619, allocations: 85.8 kB / 306.3 MB, free: 11.08 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 3.665e-05/0.1619, allocations: 321 kB / 306.6 MB, free: 10.77 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.162, allocations: 176.7 kB / 306.8 MB, free: 10.64 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001113/0.1621, allocations: 198.7 kB / 307 MB, free: 10.5 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002124/0.1624, allocations: 355 kB / 307.3 MB, free: 10.22 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.1624, allocations: 3.938 kB / 307.3 MB, free: 10.22 MB / 282.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003944/0.1628, allocations: 0.5109 MB / 307.8 MB, free: 9.859 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.404e-05/0.1628, allocations: 123.3 kB / 307.9 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.873e-06/0.1628, allocations: 1.5 kB / 308 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.503e-05/0.1628, allocations: 0.6094 kB / 308 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.999e-05/0.1628, allocations: 4.375 kB / 308 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/0.1629, allocations: 1.734 kB / 308 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.163, allocations: 14.84 kB / 308 MB, free: 9.727 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.008e-05/0.163, allocations: 57.36 kB / 308 MB, free: 9.723 MB / 282.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.0002228/0.1632, allocations: 369.6 kB / 308.4 MB, free: 9.418 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.296e-05/0.1633, allocations: 39.53 kB / 308.4 MB, free: 9.398 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.491e-05/0.1634, allocations: 68.86 kB / 308.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.326e-06/0.1634, allocations: 1.219 kB / 308.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1634, allocations: 0 / 308.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.28e-06/0.1634, allocations: 2.109 kB / 308.5 MB, free: 9.355 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006888/0.1641, allocations: 0.8837 MB / 309.4 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.1641, allocations: 2.141 kB / 309.4 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-06/0.1641, allocations: 2.531 kB / 309.4 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.039e-06/0.1641, allocations: 2.234 kB / 309.4 MB, free: 8.688 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.186e-05/0.1641, allocations: 23.64 kB / 309.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.875e-06/0.1641, allocations: 0.75 kB / 309.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.1641, allocations: 0 / 309.4 MB, free: 8.68 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000438/0.1645, allocations: 0.6741 MB / 310.1 MB, free: 8.184 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002504/0.1648, allocations: 211.9 kB / 310.3 MB, free: 8.066 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.083e-05/0.1648, allocations: 11.97 kB / 310.3 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.512e-05/0.1649, allocations: 13.38 kB / 310.3 MB, free: 8.062 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000108/0.165, allocations: 26.42 kB / 310.3 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.205e-05/0.1651, allocations: 59.19 kB / 310.4 MB, free: 8.051 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003598/0.1654, allocations: 390.4 kB / 310.8 MB, free: 7.848 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-07/0.1654, allocations: 4 kB / 310.8 MB, free: 7.844 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002289/0.1657, allocations: 45.72 kB / 310.8 MB, free: 7.84 MB / 282.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.0006786/0.1664, allocations: 1.213 MB / 312 MB, free: 6.824 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0004052/0.1668, allocations: 0.6084 MB / 312.7 MB, free: 6.254 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1668, allocations: 0 / 312.7 MB, free: 6.254 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001841/0.1669, allocations: 424.2 kB / 313.1 MB, free: 5.844 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004548/0.1674, allocations: 117.3 kB / 313.2 MB, free: 5.812 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.17, allocations: 3.378 MB / 316.6 MB, free: 3.203 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001768/0.1702, allocations: 191.6 kB / 316.7 MB, free: 3.09 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.658e-05/0.1703, allocations: 12.64 kB / 316.8 MB, free: 3.086 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.341e-05/0.1703, allocations: 27.53 kB / 316.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of SimCode: time 1.042e-06/0.1703, allocations: 0 / 316.8 MB, free: 3.066 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02629/0.1966, allocations: 7.079 MB / 323.9 MB, free: 0.6406 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.139/7.335, allocations: 5.062 kB / 323.9 MB, free: 0.6367 MB / 282.7 MB " [Timeout remaining time 653] (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins/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] "Error: Could not read variable nXFERGATE.y in file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.csv. Warning: Get data of variable nXFERGATE.y from file Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.177868001163006]