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.0016/0.0016, allocations: 112.2 kB / 16.51 MB, free: 6.707 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.00194/0.00194, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.401/1.401, allocations: 222.9 MB / 241.1 MB, free: 13.77 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 48.06 kB / 300.1 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1105, allocations: 49.44 MB / 349.5 MB, free: 4.539 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.NXFER): time 0.003886/0.1145, allocations: 1.556 MB / 351.1 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002249/0.1168, allocations: 0.8694 MB / 351.9 MB, free: 2.094 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.271e-05/0.1169, allocations: 3.938 kB / 351.9 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001364/0.117, allocations: 3.984 kB / 351.9 MB, free: 2.086 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001225/0.1172, allocations: 19.86 kB / 352 MB, free: 2.066 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003166/0.1175, allocations: 43.95 kB / 352 MB, free: 2.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001691/0.1177, allocations: 103.7 kB / 352.1 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001341/0.1179, allocations: 28.2 kB / 352.1 MB, free: 1.891 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006699/0.1185, allocations: 0.5615 MB / 352.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001445/0.1187, allocations: 63.75 kB / 352.8 MB, free: 1.266 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.194e-05/0.1187, allocations: 4 kB / 352.8 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.949e-05/0.1188, allocations: 4 kB / 352.8 MB, free: 1.258 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001209/0.1189, allocations: 71.64 kB / 352.8 MB, free: 1.188 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001746/0.1191, allocations: 103.2 kB / 352.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004091/0.1195, allocations: 362.6 kB / 353.3 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.022e-06/0.1195, allocations: 4 kB / 353.3 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1195, allocations: 0 / 353.3 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.1196, allocations: 0 / 353.3 MB, free: 0.7266 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.0009851/0.1206, allocations: 0.7232 MB / 354 MB, free: 15.93 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.1206, allocations: 12.03 kB / 354 MB, free: 15.91 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.693e-05/0.1207, allocations: 42.73 kB / 354.1 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.672e-05/0.1208, allocations: 36.47 kB / 354.1 MB, free: 15.83 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003221/0.1211, allocations: 270.3 kB / 354.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.118e-05/0.1211, allocations: 8.375 kB / 354.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.08e-05/0.1212, allocations: 12.38 kB / 354.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003295/0.1215, allocations: 139.6 kB / 354.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.1215, allocations: 3.938 kB / 354.5 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.934e-05/0.1216, allocations: 8 kB / 354.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.1216, allocations: 7.938 kB / 354.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.1218, allocations: 55.97 kB / 354.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007863/0.1226, allocations: 456.6 kB / 355 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.1228, allocations: 98.47 kB / 355.1 MB, free: 14.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001659/0.123, allocations: 84.89 kB / 355.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.355e-05/0.123, allocations: 4 kB / 355.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004157/0.1234, allocations: 202.7 kB / 355.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 2.285e-06/0.1234, allocations: 0 / 355.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=13): time 0.0009114/0.1243, allocations: 488 kB / 355.9 MB, free: 13.87 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000104/0.1245, allocations: 170.2 kB / 356.1 MB, free: 13.66 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007527/0.1252, allocations: 0.5052 MB / 356.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.817e-05/0.1253, allocations: 33.7 kB / 356.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.633e-05/0.1254, allocations: 101 kB / 356.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.445e-05/0.1254, allocations: 31.64 kB / 356.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001323/0.1256, allocations: 89.41 kB / 356.8 MB, free: 12.89 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001246/0.1257, allocations: 326.8 kB / 357.1 MB, free: 12.56 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000146/0.1259, allocations: 55.97 kB / 357.2 MB, free: 12.5 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001428/0.126, allocations: 77.62 kB / 357.3 MB, free: 12.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003393/0.1264, allocations: 342.3 kB / 357.6 MB, free: 12.04 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.1264, allocations: 3.984 kB / 357.6 MB, free: 12.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0005617/0.1269, allocations: 388.3 kB / 358 MB, free: 11.62 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001111/0.1271, allocations: 118.8 kB / 358.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.1271, allocations: 4 kB / 358.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.799e-05/0.1271, allocations: 4.031 kB / 358.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.399e-05/0.1271, allocations: 0 / 358.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.1272, allocations: 3.984 kB / 358.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.1274, allocations: 15.91 kB / 358.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-05/0.1275, allocations: 55.94 kB / 358.2 MB, free: 11.4 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.000424/0.1279, allocations: 362.7 kB / 358.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.612e-05/0.128, allocations: 35.62 kB / 358.6 MB, free: 10.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.1281, allocations: 67.14 kB / 358.6 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.1281, allocations: 8.125 kB / 358.6 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.647e-06/0.1281, allocations: 4 kB / 358.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.087e-06/0.1281, allocations: 3.938 kB / 358.7 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001156/0.1293, allocations: 0.8213 MB / 359.5 MB, free: 9.984 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.1293, allocations: 7.938 kB / 359.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.626e-06/0.1293, allocations: 0 / 359.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.267e-06/0.1293, allocations: 0 / 359.5 MB, free: 9.977 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.1294, allocations: 15.98 kB / 359.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.836e-06/0.1294, allocations: 0 / 359.5 MB, free: 9.961 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.297e-06/0.1294, allocations: 7.875 kB / 359.5 MB, free: 9.953 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007325/0.1301, allocations: 0.5407 MB / 360 MB, free: 9.371 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003601/0.1305, allocations: 244.4 kB / 360.3 MB, free: 9.113 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.624e-05/0.1306, allocations: 12 kB / 360.3 MB, free: 9.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.1307, allocations: 8 kB / 360.3 MB, free: 9.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001215/0.1309, allocations: 31.91 kB / 360.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.627e-05/0.1309, allocations: 55.98 kB / 360.4 MB, free: 9.008 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005572/0.1315, allocations: 390.9 kB / 360.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.11e-07/0.1315, allocations: 0 / 360.8 MB, free: 8.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003289/0.1319, allocations: 47.94 kB / 360.8 MB, free: 8.578 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.001156/0.133, allocations: 1.097 MB / 361.9 MB, free: 7.434 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006127/0.1336, allocations: 437.5 kB / 362.3 MB, free: 6.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.367e-06/0.1337, allocations: 4.062 kB / 362.3 MB, free: 6.953 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003699/0.134, allocations: 377.6 kB / 362.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006866/0.1347, allocations: 113 kB / 362.8 MB, free: 6.426 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004029/0.1388, allocations: 2.809 MB / 365.6 MB, free: 3.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.1393, allocations: 0.7946 MB / 366.4 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.739e-05/0.1394, allocations: 12.64 kB / 366.4 MB, free: 2.676 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.842e-05/0.1394, allocations: 31.42 kB / 366.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.1394, allocations: 4 kB / 366.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2042/0.3436, allocations: 5.596 MB / 372.1 MB, free: 25.53 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001775/0.3438, allocations: 195.1 kB / 372.3 MB, free: 25.28 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.311, allocations: 0 / 372.3 MB, free: 25.28 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