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.001621/0.001621, allocations: 112.1 kB / 21.19 MB, free: 0.7031 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.00143/0.00143, allocations: 208.6 kB / 24.49 MB, free: 4.055 MB / 14.72 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 1.319/1.319, allocations: 207.6 MB / 235.3 MB, free: 10 MB / 190.1 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 55.91 kB / 347.2 MB, free: 10.11 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2466, allocations: 49.16 MB / 396.3 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002473/0.2491, allocations: 1.509 MB / 397.9 MB, free: 7.926 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001669/0.2507, allocations: 0.9099 MB / 398.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.841e-05/0.2508, allocations: 1.656 kB / 398.8 MB, free: 7.312 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.2509, allocations: 10.33 kB / 398.8 MB, free: 7.309 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.834e-05/0.251, allocations: 21.25 kB / 398.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.2512, allocations: 52.56 kB / 398.8 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001959/0.2514, allocations: 125.3 kB / 399 MB, free: 7.203 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.2515, allocations: 24.02 kB / 399 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006348/0.2522, allocations: 0.5723 MB / 399.6 MB, free: 7.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001472/0.2523, allocations: 82.27 kB / 399.6 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.814e-05/0.2523, allocations: 9.344 kB / 399.7 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.11e-05/0.2524, allocations: 10.72 kB / 399.7 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.88e-05/0.2525, allocations: 64.67 kB / 399.7 MB, free: 7.078 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.491e-05/0.2525, allocations: 111.6 kB / 399.8 MB, free: 6.996 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003892/0.2529, allocations: 374.1 kB / 400.2 MB, free: 6.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.2529, allocations: 4 kB / 400.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2529, allocations: 0 / 400.2 MB, free: 6.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.241e-05/0.253, allocations: 3.938 kB / 400.2 MB, free: 6.875 MB / 318.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.0006044/0.2536, allocations: 0.656 MB / 400.9 MB, free: 6.297 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.2536, allocations: 14.17 kB / 400.9 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.666e-05/0.2536, allocations: 44.17 kB / 400.9 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.515e-05/0.2537, allocations: 38.64 kB / 401 MB, free: 6.227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002183/0.2539, allocations: 214.5 kB / 401.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.908e-05/0.2539, allocations: 4.938 kB / 401.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.029e-05/0.254, allocations: 20.31 kB / 401.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002779/0.2542, allocations: 128 kB / 401.3 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.2542, allocations: 3.938 kB / 401.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.396e-05/0.2543, allocations: 8.438 kB / 401.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.875e-06/0.2543, allocations: 1.156 kB / 401.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.2544, allocations: 57.39 kB / 401.4 MB, free: 5.941 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006206/0.255, allocations: 434.3 kB / 401.8 MB, free: 5.617 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001578/0.2552, allocations: 83.25 kB / 401.9 MB, free: 5.566 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001182/0.2553, allocations: 65.05 kB / 402 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.103e-05/0.2553, allocations: 1.031 kB / 402 MB, free: 5.539 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003041/0.2556, allocations: 206.4 kB / 402.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=13): time 1.393e-06/0.2556, allocations: 0 / 402.2 MB, free: 5.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007061/0.2563, allocations: 474.6 kB / 402.6 MB, free: 5.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.969e-05/0.2564, allocations: 170.9 kB / 402.8 MB, free: 4.957 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005922/0.257, allocations: 0.5117 MB / 403.3 MB, free: 4.672 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.257, allocations: 30.3 kB / 403.3 MB, free: 4.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.066e-05/0.257, allocations: 103.7 kB / 403.4 MB, free: 4.543 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.281e-05/0.2571, allocations: 28.72 kB / 403.5 MB, free: 4.523 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.996e-05/0.2572, allocations: 88.94 kB / 403.5 MB, free: 4.473 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 3.926e-05/0.2572, allocations: 324.9 kB / 403.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001194/0.2573, allocations: 57.02 kB / 403.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001146/0.2574, allocations: 80.61 kB / 404 MB, free: 4.094 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002314/0.2577, allocations: 341.2 kB / 404.3 MB, free: 3.781 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.2577, allocations: 0 / 404.3 MB, free: 3.781 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0004483/0.2581, allocations: 390.1 kB / 404.7 MB, free: 3.555 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.479e-05/0.2582, allocations: 122.4 kB / 404.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2582, allocations: 1.094 kB / 404.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.569e-05/0.2582, allocations: 1.062 kB / 404.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.943e-05/0.2582, allocations: 1.875 kB / 404.8 MB, free: 3.426 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.082e-06/0.2582, allocations: 6 kB / 404.8 MB, free: 3.422 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/0.2584, allocations: 13.89 kB / 404.9 MB, free: 3.418 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-05/0.2584, allocations: 58.03 kB / 404.9 MB, free: 3.414 MB / 318.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.000283/0.2587, allocations: 360.5 kB / 405.3 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.811e-05/0.2587, allocations: 38.3 kB / 405.3 MB, free: 3.094 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.922e-05/0.2588, allocations: 66.17 kB / 405.4 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.555e-06/0.2588, allocations: 0 / 405.4 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2589, allocations: 1.875 kB / 405.4 MB, free: 3.055 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2589, allocations: 4 kB / 405.4 MB, free: 3.051 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000831/0.2597, allocations: 0.8036 MB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.2597, allocations: 0 / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.829e-06/0.2597, allocations: 1.344 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.415e-06/0.2597, allocations: 0.7031 kB / 406.2 MB, free: 2.492 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.78e-05/0.2597, allocations: 18.11 kB / 406.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.2597, allocations: 0 / 406.2 MB, free: 2.488 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.2597, allocations: 4.453 kB / 406.2 MB, free: 2.484 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005547/0.2603, allocations: 0.5371 MB / 406.7 MB, free: 2.133 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003631/0.2606, allocations: 207.1 kB / 406.9 MB, free: 2.016 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.578e-05/0.2607, allocations: 10.7 kB / 406.9 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001301/0.2608, allocations: 10.77 kB / 407 MB, free: 2.012 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001024/0.2609, allocations: 37.39 kB / 407 MB, free: 1.992 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.034e-05/0.261, allocations: 63.19 kB / 407.1 MB, free: 1.984 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000419/0.2614, allocations: 386.7 kB / 407.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2614, allocations: 0 / 407.4 MB, free: 1.781 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002981/0.2617, allocations: 45.2 kB / 407.5 MB, free: 1.777 MB / 318.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.0007464/0.2625, allocations: 1.084 MB / 408.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004012/0.2629, allocations: 373.9 kB / 408.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2629, allocations: 1.344 kB / 408.9 MB, free: 0.5977 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002067/0.2631, allocations: 301.3 kB / 409.2 MB, free: 328 kB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006085/0.2637, allocations: 123.1 kB / 409.3 MB, free: 288 kB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.2673, allocations: 2.759 MB / 412.1 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005387/0.2678, allocations: 0.7979 MB / 412.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.665e-05/0.2679, allocations: 10.42 kB / 412.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.612e-05/0.2679, allocations: 25.89 kB / 412.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of SimCode: time 8.02e-07/0.2679, allocations: 4 kB / 412.9 MB, free: 13.58 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.3022, allocations: 6.215 MB / 419.2 MB, free: 10.46 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.29, allocations: 1.375 kB / 419.2 MB, free: 10.46 MB / 334.1 MB " [Timeout remaining time 649] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/NXFER/NXFER.csv","/var/lib/jenkins1/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: 13.594513092997659]