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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001344/0.001344, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001453/0.001453, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 205.1 MB / 224.4 MB, free: 12.32 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 51.92 kB / 280.7 MB, free: 3.09 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0844/0.08556, allocations: 46.64 MB / 327.4 MB, free: 4.379 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.002573/0.08817, allocations: 1.493 MB / 328.9 MB, free: 2.867 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.08994, allocations: 0.8974 MB / 329.8 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.418e-05/0.09, allocations: 4 kB / 329.8 MB, free: 1.957 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.236e-05/0.09011, allocations: 7.875 kB / 329.8 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.27e-05/0.09019, allocations: 19.84 kB / 329.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002137/0.09041, allocations: 47.89 kB / 329.9 MB, free: 1.883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001799/0.0906, allocations: 135.8 kB / 330 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.776e-05/0.0907, allocations: 28.22 kB / 330 MB, free: 1.719 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000546/0.09126, allocations: 0.5576 MB / 330.6 MB, free: 1.16 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001225/0.09139, allocations: 71.64 kB / 330.6 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.09144, allocations: 11.94 kB / 330.7 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.4e-05/0.09148, allocations: 12 kB / 330.7 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.294e-05/0.09157, allocations: 59.77 kB / 330.7 MB, free: 1.008 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.0917, allocations: 127.1 kB / 330.8 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003084/0.09201, allocations: 362.7 kB / 331.2 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.09202, allocations: 0 / 331.2 MB, free: 0.5273 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.09203, allocations: 4 kB / 331.2 MB, free: 0.5234 MB / 270.1 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.09205, allocations: 4 kB / 331.2 MB, free: 0.5195 MB / 270.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.0006915/0.09274, allocations: 0.7191 MB / 331.9 MB, free: 15.73 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.512e-05/0.09278, allocations: 8.031 kB / 331.9 MB, free: 15.72 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.672e-05/0.09284, allocations: 42.73 kB / 332 MB, free: 15.67 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.043e-05/0.0929, allocations: 36.56 kB / 332 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002589/0.09317, allocations: 274.3 kB / 332.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.0932, allocations: 8.375 kB / 332.3 MB, free: 15.32 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.69e-05/0.09323, allocations: 8.375 kB / 332.3 MB, free: 15.31 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002981/0.09353, allocations: 137.7 kB / 332.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.09355, allocations: 0 / 332.4 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.434e-05/0.09358, allocations: 4 kB / 332.4 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.09359, allocations: 0 / 332.4 MB, free: 15.16 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001348/0.09373, allocations: 59.97 kB / 332.5 MB, free: 15.11 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006002/0.09434, allocations: 464.4 kB / 332.9 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001865/0.09454, allocations: 94.55 kB / 333 MB, free: 14.5 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001452/0.09469, allocations: 80.89 kB / 333.1 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.189e-05/0.09471, allocations: 4 kB / 333.1 MB, free: 14.41 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003376/0.09505, allocations: 206.6 kB / 333.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of pre-optimization done (n=13): time 1.582e-06/0.09507, allocations: 0 / 333.3 MB, free: 14.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=13): time 0.0007664/0.09584, allocations: 484 kB / 333.8 MB, free: 13.68 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.619e-05/0.09594, allocations: 170.2 kB / 334 MB, free: 13.48 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005765/0.09652, allocations: 0.5052 MB / 334.5 MB, free: 12.97 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.833e-05/0.09657, allocations: 33.7 kB / 334.5 MB, free: 12.93 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.938e-05/0.09663, allocations: 101.9 kB / 334.6 MB, free: 12.83 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.213e-05/0.09668, allocations: 39.56 kB / 334.6 MB, free: 12.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001138/0.0968, allocations: 81.42 kB / 334.7 MB, free: 12.7 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001117/0.09692, allocations: 326.8 kB / 335 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001237/0.09705, allocations: 55.97 kB / 335.1 MB, free: 12.32 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001341/0.09719, allocations: 77.69 kB / 335.2 MB, free: 12.24 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003214/0.09752, allocations: 351.6 kB / 335.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.09753, allocations: 0 / 335.5 MB, free: 11.84 MB / 286.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005132/0.09805, allocations: 380.3 kB / 335.9 MB, free: 11.44 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.777e-05/0.09816, allocations: 122.9 kB / 336 MB, free: 11.29 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.815e-06/0.09817, allocations: 11.92 kB / 336 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.192e-05/0.09819, allocations: 0 / 336 MB, free: 11.28 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.605e-05/0.09822, allocations: 7.969 kB / 336 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.364e-06/0.09823, allocations: 8 kB / 336 MB, free: 11.27 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001269/0.09836, allocations: 11.91 kB / 336 MB, free: 11.25 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.353e-05/0.09843, allocations: 64.05 kB / 336.1 MB, free: 11.19 MB / 286.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.0003132/0.09875, allocations: 362.7 kB / 336.5 MB, free: 10.8 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/0.09881, allocations: 39.61 kB / 336.5 MB, free: 10.77 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-05/0.09891, allocations: 63.16 kB / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.09892, allocations: 0 / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.09893, allocations: 4 kB / 336.6 MB, free: 10.7 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.09893, allocations: 4 kB / 336.6 MB, free: 10.69 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009446/0.09988, allocations: 0.8212 MB / 337.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.0999, allocations: 0 / 337.4 MB, free: 9.789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.7e-06/0.09991, allocations: 7.938 kB / 337.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.09992, allocations: 0 / 337.4 MB, free: 9.781 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.589e-05/0.09995, allocations: 11.98 kB / 337.4 MB, free: 9.77 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.09995, allocations: 4 kB / 337.4 MB, free: 9.766 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.09996, allocations: 3.938 kB / 337.4 MB, free: 9.762 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006348/0.1006, allocations: 0.533 MB / 337.9 MB, free: 9.188 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002843/0.1009, allocations: 244.4 kB / 338.2 MB, free: 8.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.534e-05/0.101, allocations: 12 kB / 338.2 MB, free: 8.918 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001283/0.1011, allocations: 11.98 kB / 338.2 MB, free: 8.906 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.534e-05/0.1012, allocations: 23.92 kB / 338.2 MB, free: 8.883 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.802e-05/0.1013, allocations: 63.92 kB / 338.3 MB, free: 8.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0004564/0.1017, allocations: 382.9 kB / 338.7 MB, free: 8.445 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1017, allocations: 0 / 338.7 MB, free: 8.445 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002844/0.102, allocations: 52 kB / 338.7 MB, free: 8.395 MB / 286.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.0009224/0.103, allocations: 1.093 MB / 339.8 MB, free: 7.25 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0004779/0.1034, allocations: 441.5 kB / 340.2 MB, free: 6.77 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1035, allocations: 0 / 340.2 MB, free: 6.77 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003069/0.1038, allocations: 373.6 kB / 340.6 MB, free: 6.355 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005769/0.1044, allocations: 124.5 kB / 340.7 MB, free: 6.234 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003165/0.1075, allocations: 2.742 MB / 343.5 MB, free: 3.383 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004026/0.1079, allocations: 0.8059 MB / 344.3 MB, free: 2.547 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 4.023e-05/0.108, allocations: 8.656 kB / 344.3 MB, free: 2.539 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.118e-05/0.108, allocations: 23.44 kB / 344.3 MB, free: 2.516 MB / 286.1 MB Notification: Performance of SimCode: time 3.71e-07/0.108, allocations: 7.938 kB / 344.3 MB, free: 2.508 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02301/0.1311, allocations: 5.995 MB / 350.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.473/7.605, allocations: 7.734 kB / 350.3 MB, free: 12.34 MB / 302.1 MB (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.0048 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1) 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) Reference file matches