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.001223/0.001223, allocations: 114.1 kB / 16.63 MB, free: 6.816 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.001296/0.001296, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.35/1.35, allocations: 222.9 MB / 241.2 MB, free: 13.71 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001049/0.001049, allocations: 46.64 kB / 300.2 MB, free: 5.867 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1104, allocations: 49.44 MB / 349.7 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003411/0.1139, allocations: 1.564 MB / 351.2 MB, free: 2.852 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.1157, allocations: 0.8459 MB / 352.1 MB, free: 2 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.406e-05/0.1158, allocations: 7.938 kB / 352.1 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001248/0.116, allocations: 3.984 kB / 352.1 MB, free: 1.988 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.158e-05/0.1161, allocations: 15.86 kB / 352.1 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002716/0.1163, allocations: 43.95 kB / 352.2 MB, free: 1.93 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002179/0.1166, allocations: 135.7 kB / 352.3 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001262/0.1167, allocations: 28.22 kB / 352.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006034/0.1173, allocations: 0.5693 MB / 352.9 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001372/0.1175, allocations: 71.75 kB / 353 MB, free: 1.125 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.027e-05/0.1175, allocations: 8 kB / 353 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.022e-05/0.1175, allocations: 8 kB / 353 MB, free: 1.109 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.953e-05/0.1176, allocations: 67.7 kB / 353 MB, free: 1.043 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.1178, allocations: 115.2 kB / 353.2 MB, free: 0.9297 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003493/0.1181, allocations: 370.6 kB / 353.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.1182, allocations: 0 / 353.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.1182, allocations: 0 / 353.5 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.525e-06/0.1182, allocations: 4 kB / 353.5 MB, free: 0.5625 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.0008606/0.119, allocations: 0.723 MB / 354.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.1191, allocations: 8.031 kB / 354.2 MB, free: 15.76 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.411e-05/0.1192, allocations: 38.75 kB / 354.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.77e-05/0.1193, allocations: 40.47 kB / 354.3 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002934/0.1196, allocations: 270.3 kB / 354.6 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.423e-05/0.1196, allocations: 8.375 kB / 354.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.1196, allocations: 8.375 kB / 354.6 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003151/0.1199, allocations: 135.8 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.966e-06/0.12, allocations: 4 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.591e-05/0.12, allocations: 4 kB / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.12, allocations: 0 / 354.7 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001432/0.1202, allocations: 55.97 kB / 354.8 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006488/0.1208, allocations: 464.5 kB / 355.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.121, allocations: 106.5 kB / 355.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.1212, allocations: 80.89 kB / 355.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.868e-06/0.1212, allocations: 0 / 355.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003919/0.1216, allocations: 210.6 kB / 355.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.653e-06/0.1216, allocations: 0 / 355.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0008083/0.1224, allocations: 484.2 kB / 356.1 MB, free: 13.72 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001096/0.1226, allocations: 174.2 kB / 356.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006256/0.1232, allocations: 0.5091 MB / 356.8 MB, free: 13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.262e-05/0.1232, allocations: 33.7 kB / 356.8 MB, free: 12.96 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.018e-05/0.1233, allocations: 101 kB / 356.9 MB, free: 12.86 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.07e-05/0.1234, allocations: 27.64 kB / 357 MB, free: 12.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.1235, allocations: 81.42 kB / 357 MB, free: 12.74 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.1236, allocations: 326.8 kB / 357.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.1237, allocations: 63.95 kB / 357.4 MB, free: 12.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001323/0.1239, allocations: 81.61 kB / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003445/0.1242, allocations: 342.7 kB / 357.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.1243, allocations: 0 / 357.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005417/0.1248, allocations: 388.2 kB / 358.2 MB, free: 11.47 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.424e-05/0.1249, allocations: 130.8 kB / 358.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.1249, allocations: 0 / 358.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.1249, allocations: 0 / 358.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.17e-05/0.125, allocations: 0 / 358.3 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.125, allocations: 8.031 kB / 358.3 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001394/0.1251, allocations: 8 kB / 358.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.926e-05/0.1252, allocations: 60.05 kB / 358.4 MB, free: 11.24 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.0003225/0.1255, allocations: 370.7 kB / 358.8 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.191e-05/0.1256, allocations: 35.62 kB / 358.8 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.862e-05/0.1257, allocations: 63.16 kB / 358.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.1257, allocations: 0 / 358.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.1257, allocations: 0 / 358.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.1257, allocations: 4 kB / 358.9 MB, free: 10.74 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009099/0.1266, allocations: 0.8211 MB / 359.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.1267, allocations: 0 / 359.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.21e-06/0.1267, allocations: 0 / 359.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.996e-06/0.1267, allocations: 0 / 359.7 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.525e-05/0.1267, allocations: 19.98 kB / 359.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1267, allocations: 0 / 359.7 MB, free: 9.816 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1267, allocations: 3.938 kB / 359.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006255/0.1274, allocations: 0.5368 MB / 360.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003105/0.1277, allocations: 248.4 kB / 360.5 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/0.1278, allocations: 12 kB / 360.5 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001483/0.1279, allocations: 15.92 kB / 360.5 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001286/0.128, allocations: 35.84 kB / 360.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.835e-05/0.1281, allocations: 55.98 kB / 360.6 MB, free: 8.855 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004404/0.1286, allocations: 386.9 kB / 361 MB, free: 8.477 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1286, allocations: 0 / 361 MB, free: 8.477 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.1289, allocations: 47.94 kB / 361 MB, free: 8.43 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.0009695/0.1299, allocations: 1.1 MB / 362.1 MB, free: 7.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005155/0.1304, allocations: 433.5 kB / 362.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1304, allocations: 0 / 362.6 MB, free: 6.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000314/0.1307, allocations: 381.5 kB / 362.9 MB, free: 6.387 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006517/0.1314, allocations: 127.8 kB / 363.1 MB, free: 6.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003418/0.1348, allocations: 2.804 MB / 365.9 MB, free: 3.355 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004535/0.1353, allocations: 0.806 MB / 366.7 MB, free: 2.523 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.669e-05/0.1354, allocations: 12.64 kB / 366.7 MB, free: 2.512 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.08e-05/0.1354, allocations: 23.44 kB / 366.7 MB, free: 2.488 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.1354, allocations: 0 / 366.7 MB, free: 2.488 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1776/0.3131, allocations: 5.784 MB / 372.5 MB, free: 25.5 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001585/0.3133, allocations: 198.2 kB / 372.7 MB, free: 25.25 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.917/2.23, allocations: 0 / 372.7 MB, free: 25.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 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.mat","/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