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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001733/0.001733, allocations: 107.7 kB / 16.92 MB, free: 6.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002543/0.002543, allocations: 187.4 kB / 17.85 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.735/1.735, allocations: 222.9 MB / 241.5 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.001649, allocations: 50.64 kB / 300.7 MB, free: 5.77 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1317/0.1334, allocations: 49.45 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.004509/0.1379, allocations: 1.497 MB / 351.7 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002662/0.1406, allocations: 0.8551 MB / 352.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.722e-05/0.1407, allocations: 0 / 352.5 MB, free: 1.938 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001146/0.1409, allocations: 15.81 kB / 352.5 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000112/0.141, allocations: 19.84 kB / 352.6 MB, free: 1.902 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.1413, allocations: 47.89 kB / 352.6 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002898/0.1416, allocations: 139.7 kB / 352.7 MB, free: 1.719 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.1418, allocations: 20.2 kB / 352.8 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000836/0.1426, allocations: 0.5694 MB / 353.3 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001757/0.1428, allocations: 67.7 kB / 353.4 MB, free: 1.059 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.829e-05/0.1429, allocations: 12 kB / 353.4 MB, free: 1.047 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.645e-05/0.143, allocations: 8 kB / 353.4 MB, free: 1.039 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001292/0.1431, allocations: 63.77 kB / 353.5 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001912/0.1433, allocations: 119.1 kB / 353.6 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004858/0.1438, allocations: 370.6 kB / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1438, allocations: 0 / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1438, allocations: 0 / 354 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.619e-05/0.1439, allocations: 0 / 354 MB, free: 0.4961 MB / 286.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.001074/0.1449, allocations: 0.7152 MB / 354.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.145, allocations: 16.02 kB / 354.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.895e-05/0.1451, allocations: 42.75 kB / 354.7 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.468e-05/0.1452, allocations: 36.47 kB / 354.8 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003372/0.1455, allocations: 274.3 kB / 355 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.577e-05/0.1456, allocations: 12.38 kB / 355 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.165e-05/0.1456, allocations: 4.375 kB / 355 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003995/0.146, allocations: 129.7 kB / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.906e-06/0.1461, allocations: 0 / 355.2 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.875e-05/0.1461, allocations: 4 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/0.1461, allocations: 8 kB / 355.2 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002026/0.1463, allocations: 59.91 kB / 355.2 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008775/0.1472, allocations: 460.6 kB / 355.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002565/0.1475, allocations: 94.55 kB / 355.8 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002115/0.1477, allocations: 88.89 kB / 355.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.049e-05/0.1477, allocations: 3.938 kB / 355.9 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004759/0.1482, allocations: 210.7 kB / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.886e-06/0.1482, allocations: 0 / 356.1 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.001086/0.1493, allocations: 475.4 kB / 356.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001078/0.1494, allocations: 166.2 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008949/0.1504, allocations: 0.5169 MB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.96e-05/0.1504, allocations: 37.64 kB / 357.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.683e-05/0.1505, allocations: 101 kB / 357.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.202e-05/0.1506, allocations: 31.62 kB / 357.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.1507, allocations: 81.42 kB / 357.5 MB, free: 12.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001332/0.1509, allocations: 330.8 kB / 357.8 MB, free: 12.34 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.151, allocations: 55.97 kB / 357.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001897/0.1513, allocations: 77.61 kB / 357.9 MB, free: 12.2 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004405/0.1517, allocations: 347.2 kB / 358.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.756e-06/0.1517, allocations: 0 / 358.3 MB, free: 11.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0007453/0.1525, allocations: 388.2 kB / 358.6 MB, free: 11.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.1526, allocations: 130.8 kB / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.1526, allocations: 0 / 358.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.528e-05/0.1526, allocations: 3.938 kB / 358.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.144e-05/0.1527, allocations: 0 / 358.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.196e-06/0.1527, allocations: 4 kB / 358.8 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001843/0.1529, allocations: 12.03 kB / 358.8 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.085e-05/0.153, allocations: 60 kB / 358.8 MB, free: 11.17 MB / 302.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.0004482/0.1534, allocations: 370.8 kB / 359.2 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.957e-05/0.1535, allocations: 31.62 kB / 359.2 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001425/0.1537, allocations: 71.14 kB / 359.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.544e-06/0.1537, allocations: 0 / 359.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.529e-06/0.1537, allocations: 0 / 359.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.1537, allocations: 0 / 359.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.155, allocations: 0.8251 MB / 360.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.155, allocations: 0 / 360.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.112e-06/0.155, allocations: 0 / 360.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.675e-06/0.155, allocations: 0 / 360.1 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.748e-05/0.1551, allocations: 19.97 kB / 360.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1551, allocations: 0 / 360.2 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.1551, allocations: 3.938 kB / 360.2 MB, free: 9.734 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009056/0.156, allocations: 0.536 MB / 360.7 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004454/0.1565, allocations: 248.4 kB / 360.9 MB, free: 8.898 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.058e-05/0.1566, allocations: 12 kB / 360.9 MB, free: 8.887 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002003/0.1568, allocations: 11.98 kB / 361 MB, free: 8.875 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.1569, allocations: 27.92 kB / 361 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.158e-05/0.157, allocations: 59.92 kB / 361 MB, free: 8.789 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006763/0.1577, allocations: 390.8 kB / 361.4 MB, free: 8.41 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1577, allocations: 0 / 361.4 MB, free: 8.41 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004534/0.1582, allocations: 47.94 kB / 361.5 MB, free: 8.363 MB / 302.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.001335/0.1595, allocations: 1.089 MB / 362.6 MB, free: 7.223 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007346/0.1603, allocations: 437.7 kB / 363 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.317e-06/0.1603, allocations: 0 / 363 MB, free: 6.746 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004573/0.1608, allocations: 381.7 kB / 363.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008572/0.1616, allocations: 122.3 kB / 363.5 MB, free: 6.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00468/0.1663, allocations: 2.756 MB / 366.2 MB, free: 3.348 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006726/0.167, allocations: 0.806 MB / 367 MB, free: 2.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.388e-05/0.1671, allocations: 8.656 kB / 367.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.298e-05/0.1672, allocations: 23.44 kB / 367.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1672, allocations: 0 / 367.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2226/0.3899, allocations: 5.981 MB / 373.1 MB, free: 25.4 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.236/8.626, allocations: 6.656 kB / 373.1 MB, free: 25.39 MB / 302.1 MB (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.0048 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) 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) Reference file matches